Open tohuw opened 3 years ago
getting the same error
Maybe it has something to do with an error-msg while installing composer:
Class Exodus4D\Pathfinder\Controller\Controller located in ./app/Controller/Controllerr.php does not comply with psr-4 autoloading standard. Skipping. Class Exodus4D\Pathfinder\Db\Sql\Mysql\TableModifier located in ./app/Db/Sql/Mysql/tablemodifier.php does not comply with psr-4 autoloading standard. Skipping. Class Exodus4D\Pathfinder\Db\Sql\Mysql\Column located in ./app/Db/Sql/Mysql/tablemodifier.php does not comply with psr-4 autoloading standard. Skipping. Class Exodus4D\Pathfinder\Db\Sql\Mysql\Constraint located in ./app/Db/Sql/Mysql/tablemodifier.php does not comply with psr-4 autoloading standard. Skipping. Class Exodus4D\Pathfinder\Model\Universe\AbstractUniverseModel located in ./app/Model/Universe/abstractuniversemodel.php does not comply with psr-4 autoloading standard. Skipping. Class Exodus4D\Pathfinder\Model\Pathfinder\AbstractPathfinderModel located in ./app/Model/Pathfinder/AbstractPathfinderModell.php does not comply with psr-4 autoloading standard. Skipping. Class Exodus4D\Pathfinder\Model\AbstractModel located in ./app/Model/AbstractModell.php does not comply with psr-4 autoloading standard. Skipping.
In order to fix psr-4 errors, the namespace naming structure and the directory and file naming structure must be the same. Then you have to do composer dump-autoload in order to fix it. I will make notes with any changes I have to do to get the psr-4 structure corrected.
I have fixed the issue. Rename ./app/Db/Sql/Mysql/tablemodifier.php to TableModifier.php Rename ./app/Model/Universe/abstractuniversemodel.php to AbstractUniverseModel.php Rename ./app/Model/Pathfinder/AbstractPathfinderModell.php to AbstractPathfinderModel.php Rename ./app/Model/AbstractModell.php to AbstractModel.php
Then in the pathfinder directory run composer dump-autoload to reoptimize the files, and all should be good.
Nice! Thanks very much! That worked and solved the 500 internal Server Error on the Setup page!
There is another rename for Controller
Controllerr.php -> Controller.php
mv ./app/Controller/Controllerr.php ./app/Controller/Controller.php
mv ./app/Db/Sql/Mysql/tablemodifier.php ./app/Db/Sql/Mysql/TableModifier.php
mv ./app/Model/Universe/abstractuniversemodel.php ./app/Model/Universe/AbstractUniverseModel.php
mv ./app/Model/Pathfinder/AbstractPathfinderModell.php ./app/Model/Pathfinder/AbstractPathfinderModel.php
mv ./app/Model/AbstractModell.php ./app/Model/AbstractModel.php
composer dump-autoload
Installed Pathfinder on a new server (cloned from master). Requirements are installed and directory permissions are configured.