Jump to content

Fatal error front end & back end in "ClassLoader.php". Need help!


Recommended Posts

Hello,

 

I have another problem with my prestashop and i don't know where to start with this. I am close to finish with my website, but all of a sudden I get a really nasty error both on the front end and the back end. I get the following error (shortened the paths for better readability):

 

Warning: include([..]httpdocs/src/Core/ContainerBuilder.php): failed to open stream: No such file or directory in [..]/httpdocs/vendor/composer/ClassLoader.php on line 440

Warning: include([..]/httpdocs/src/Core/ContainerBuilder.php): failed to open stream: No such file or directory in [..]/httpdocs/vendor/composer/ClassLoader.php on line 440

Warning: include(): Failed opening '[..]/httpdocs/src/Core/ContainerBuilder.php' for inclusion (include_path='[..]/httpdocs/vendor/pear/pear_exception:[..]/httpdocs/vendor/pear/console_getopt:[..]/httpdocs/vendor/pear/pear-core-minimal/src:[..]/httpdocs/vendor/pear/archive_tar:.:/usr/share/pear:/usr/share/php') in [..]/httpdocs/vendor/composer/ClassLoader.php on line 440

Fatal error: Class 'PrestaShop\PrestaShop\Core\ContainerBuilder' not found in[..]/httpdocs/config/bootstrap.php on line 34

 

The only thing I did prior to getting this error was to add a class to my theme.css and added the new class section to an element in one of my frontend modules. I have since reverted to how it was before, but the error is still there.

 

I don't even know how to begin to debug an error like this. Could you please help me with this?

 

Cheers,

Otmar

Link to comment
Share on other sites

Look guys, I don't even have a single clue where to start debugging something like this. If you don't know either, maybe you could point me to a different place where I can get some help with this.

 

Cheers,

Otmar

Link to comment
Share on other sites

The messages complain about several missing files. Did you check they exist?

 

Use FTP or SSH an log into your server. check all above mentioned path and the corresponding files.

 

For me it looks like an improper installation. However my knowledge is primarily up to PS 1.6.

Link to comment
Share on other sites

Hey Scully, thanks for your input. All the files in the error message are there. I actually reinstalled them just to make sure. Everything was working fine before, I don't think it can be an installation error.

Link to comment
Share on other sites

Oh my god! You saved my day!

I logged into my ftp to check the file. Turns out that the the src folder was missing. I must've accidentally moved it, because I found it nested in the Themes folder. I feel so stupid to not have seen this before. Thank you so much for pushing me in the right direction! B)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...