Jump to content
gazy98

FatalErrorException in ErrorHandler.php line 47

Recommended Posts

Hallo people!

i have a Problem since i tried to change my thema to other one... I can enter my website but i cant get into my backend. Im always getting this message,

FatalErrorException in ErrorHandler.php line 47: Compile Error: Cannot declare class Symfony\Component\Debug\ErrorHandler, because the name is already in use

hope someone can help me!

my Version is 1.7.1 and debug mode is on

 

Thanks

Share this post


Link to post
Share on other sites

Hello ! 

 

I've got the same error on debug mode. When debug mode is "false" My front office work perfectly but my backoffice is on Error 500...

 

 

 

 

Share this post


Link to post
Share on other sites

Same here....

 

Sorry, have just found this post. I've already posted it therefore itself.

 

Apparently I'm not alone we are very curious about the solution :o

 

EDIT: just replaced both files with files from a functioning shop, without any result.

Edited by Ruup (see edit history)

Share this post


Link to post
Share on other sites

Hi,

 

just resolved te problem. Open the ErrorHandler.php file in: /vendor/symfony/symfony/src/Symfony/Component/Debug:

use Symfony\Component\Debug\Exception\FatalErrorException;

Line 17 remove ''use'' and save the file. Refresh your site and you''ll see a white screen.

Re-type ''use'' and save again. Refresh and you can access your BO again.

 

On my website it worked. Hopefully it will work for you too!

 

EDIT: With debug mode off the screen becomes blank again... :wacko:

post-1409054-0-96799500-1498144900_thumb.png

Edited by Ruup (see edit history)

Share this post


Link to post
Share on other sites

Hello,

I'm not a PrestaShop programmer but I came here because I had same problem in Symfony2 framework.

I solved the problem by removing my \cache\dev folder and reestarting apache and refreshing again.

 

Hope it helps!

  • Like 1

Share this post


Link to post
Share on other sites

Remove the classes.php and classes.map from the app/cache/dev app/cache/prod  folders

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More