Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

theUnforgiven's avatar

Weird error in Forge [URGENT HELP]

Getting these errors all the time and don't know why:

Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
Warning: Ambiguous class resolution, "Table_Row_Group_Frame_Reflower" was found in both "/home/forge/domain.com/vendor/dompdf/dompdf/include/table_row_group_frame_reflower.cls.php" and "/home/forge/domain.com/vendor/dompdf/dompdf/include/include/table_row_group_frame_reflower.cls.php", the first will be used.
Warning: Ambiguous class resolution, "Block_Renderer" was found in both "/home/forge/domain.com/vendor/dompdf/dompdf/include/block_renderer.cls.php" and "/home/forge/domain.com/vendor/dompdf/dompdf/include/include/block_renderer.cls.php", the first will be used.
Warning: Ambiguous class resolution, "Stylesheet" was found in both "/home/forge/domain.com/vendor/dompdf/dompdf/include/stylesheet.cls.php" and "/home/forge/domain.com/vendor/dompdf/dompdf/include/include/stylesheet.cls.php", the first will be used.
Warning: Ambiguous class resolution, "Line_Box" was found in both "/home/forge/domain.com/vendor/dompdf/dompdf/include/line_box.cls.php" and "/home/forge/domain.com/vendor/dompdf/dompdf/include/include/line_box.cls.php", the first will be used.
Warning: Ambiguous class resolution, "Text_Frame_Decorator" was found in both "/home/forge/domain.com/vendor/dompdf/dompdf/include/text_frame_decorator.cls.php" and "/home/forge/domain.com/vendor/dompdf/dompdf/include/include/text_frame_decorator.cls.php", the first will be used.
Warning: Ambiguous class resolution, "Table_Cell_Frame_Decorator" was found in both "/home/forge/domain.com/vendor/dompdf/dompdf/include/table_cell_frame_decorator.cls.php" and "/home/forge/domain.com/vendor/dompdf/dompdf/include/include/table_cell_frame_decorator.cls.php", the first will be used.

Obviously something relating to DOMPDF but not sure what it is, anyone encountered this?

0 likes
3 replies
ltrain's avatar

It means the same class is being defined in multiple files so the autoload is throwing a warning and just using the first one (first class defined over the next occurances) which may or may not be what you want. Did you make any modifications to the DOMPDF package? If not I would either try deleting the vendor folder and running composer install again, or contacting the creator of DOMPDF and seeing if there were any updates that may cause that error.

1 like
ltrain's avatar

Your welcome - curious to know if that worked or not.

Please or to participate in this conversation.