Jump to content

Error code 500, Backoffice login missing


ROE

Recommended Posts

Hi there,

After a failed update and restoring my shop and database from backups I am now unable to login to Backoffice. Front-end seems fine, but when I go to my backoffice-URL i get the Internal server Error 500 code and no login window.

In debug mode I get the message below. Tried to locate the file, but it seems to be missing from both my manual backup and the one created by Prestashop before the update. I am a bit stuck here and any help is appriciated.

Prestashop version 1.7.1.2

 

RuntimeException in DebugClassLoader.php line 258:The autoloader expected class "Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass" to be defined in file "/var/www/headbangers.dk/public_html/vendor/composer/../symfony/symfony/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php". The file was found but the class was not in it, the class name or namespace probably has a typo.

  1. in DebugClassLoader.php line 258
  2. at DebugClassLoader->loadClass('Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass')
  3. at spl_autoload_call('Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass') in FrameworkBundle.php line 80
  4. at FrameworkBundle->build(object(ContainerBuilder)) in bootstrap.php.cache line 2824
  5. at Kernel->prepareContainer(object(ContainerBuilder)) in bootstrap.php.cache line 2803
  6. at Kernel->buildContainer() in bootstrap.php.cache line 2753
  7. at Kernel->initializeContainer() in bootstrap.php.cache line 2529
  8. at Kernel->boot() in bootstrap.php.cache line 2560
  9. at Kernel->handle(object(Request), '1', false) in index.php line 86
Link to comment
Share on other sites

Note: Before do anything please get a full backup as well. 

What an idea to download  1.7.1.2 files and override them via FTP ?  If your database is ok replacing the files will be enough to fix it. 

Otherwise you should have all files and database export of previous version (the best solution would be a serverside backup if you have)  and reinstall them. Then request a help for your second try to upgrade. 

Note: again, getting a full backup is strongly important before do anything on your files or database

 

 

Link to comment
Share on other sites

File is in my 1.7.2 in /vendor/symfony/symfony/src/symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php

As Mahmut suggests you can try to override it with a copy from a fresh PS installation of the same version. 

It happens sometimes that files are cut to length 0. You can check for that.

Link to comment
Share on other sites

Hi guys. Thanks for helping out. I did as Mahmut suggested: Installed the complete backup, downloaded a fresh install and copied the "fresh" file via FTP. Several other files came up missing (I guess there were some problems in the backup) and I ended up uploading the entire install, with the "fresh" files via FTP. Luckily there were no problems in my database backup and guess what; now everything works perfectly again :-) The only thing not working is the built-in Custom Text Block module, but it seems a lot of people are having trouble with this module...

Thanks again. You just saved me a couple of weeks work, rebuilding my shop.

//ROE

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...