autoload.php error
4 years ago
4 years ago
#1
Hello friends! I've just downloaded a working Trongate website from the server and, when I try to run it through localhost I get this error If I try to run it from localhost/ibanez-elserver-10-22/ It goes directly to http://www.localhost/dashboard/ Apache friends page But if instead of I run it through http://www.localhost/ibanez-elserver-10-22/ I get this error Warning: require_once(../vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\ibanez-elserver-10-22\public\index.php on line 2 Fatal error: Uncaught Error: Failed opening required '../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\ibanez-elserver-10-22\public\index.php:2 Stack trace: #0 {main} thrown in C:\xampp\htdocs\ibanez-elserver-10-22\public\index.php on line 2 If any of you could help I really will apprecciate it! Cheers Claudia
4 years ago
#2
Hi Claudia, I Hope you are well. Just trying to make some sense of your post... So you downloaded a working copy from the server to your local computer, and tried to run it via localhost. did you change the BASE_URL in config.php back to also if you still get this error, check the path defined in 'vendor/autoload' is correct.
4 years ago
#3
Hey Simon! I could make it through this route [" $http = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https://' : 'http://'; $bu = $http; $bu.= $_SERVER['SERVER_NAME']; define('BASE_URL', $bu.'/page-name/'); "] Thank You!! The extrange thing is that I can only get the page through http://www.localhost/ibanez-elserver-10-22/ because if I go to only http://localhost/ibanez-elserver-10-22/ I get this http://www.localhost/dashboard/ How do I close the thread? And how do you make the spaces and write the code? I cant find the way to Cheers Claudia