Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build/run with non-relative paths giving errors #5

Closed
amritabithi opened this issue Sep 3, 2021 · 4 comments
Closed

Does not build/run with non-relative paths giving errors #5

amritabithi opened this issue Sep 3, 2021 · 4 comments

Comments

@amritabithi
Copy link

I would like to run this project but cannot get it to work, I got the composer part figured out but always get this error, and the files it is looking for in /vendor/ are not present after using composer to install the dependencies. Is there something I am missing installing?

PHP Fatal error: require(): Failed opening required '/home/myuser/omni-recovery-tool/bootstrap/../../../autoload.php' (include_path='.:/usr/share/php') in /home/myuser/omni-recovery-tool/bootstrap/autoload.php on line 22

@evias
Copy link
Owner

evias commented Sep 9, 2021

Have you tried composer install --prefer-dist ?

Also, are you using PHP7 ?

After installing dependencies, run php application list to view available commands.

@amritabithi
Copy link
Author

Thank you for the response, I tried a fresh download and used "composer install --prefer-dist" to get the dependencies and have the same error. I may not be familiar enough with composer or something though because I feel like I am just missing something obvious.

If I trace through the script starting at application, application requires() the file init.php, which then requires() the file autoload.php, and then inside of autoload.php it tries to include another autoload.php three directories above itself as the last command before it crashes, and so I wonder if the enivornment is different.

( Also I checked and I have PHP 7.4.3 (cli) and am using Ubuntu 20 )

@evias
Copy link
Owner

evias commented Sep 10, 2021

weirdly, maybe you would need composer dump-autoload after the install ; Seems like its not automatically being run.

@amritabithi
Copy link
Author

I tried the 'composer dump-autoload' command and while I still get the same errors as before there is a new error " Uncaught Error: Class 'LaravelZero\Framework\Application' not found". I also tried upgrading to composer version 2 but none of the installation commands given by the composer creators work or upgrade anything from version 1 which is all I can find available, it just says package not found etc.

Anyway I decided to use another library and I can use the logic and things from this as a guideline so that is useful, I can never get the composer projects to run for some reason. It is almost like the project was built in a directory that is a symbolic link because the paths as they are in the include files traverse up and out of the project folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants