Jump to content
Demuth

["Solved"] HTTP ERROR 500 - Backend / Admin

Recommended Posts

Posted (edited)

Okay, so I 've got around 1200+ views on my original post in danish, but no one has even answered.
So I'll try asking here, hopefully with more luck.

I have been locked out of my backend once again, all I did was disabling the module ps_contactinfo, and now I got this error message: https://pastebin.com/2CAYScbF

Last time I got locked out, I was able to reset the module ps_linklist and everything has worked since then.
So obviously I tried that again, but I cannot get access to anything this time, front end works just fine.. But the shop is useless without a proper backend.

So quick question, how do one fix this ?

 

Original post in danish can be found here: 

 

 

Thank you for reading and hopefully someone can help me sort this one out.

Edited by Demuth
Solved by reinstalling (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

So I downgraded the php version to 7.2 got access to some new debug panels, I've never seen before.

So I found this one error I guess is the cause, but I can't decode it.
I hope someone have an idea

Entities Mapping

Class Mapping errors
PrestaShopBundle\Entity\Tab
  • The association PrestaShopBundle\Entity\Tab#tabLangs refers to the owning side field PrestaShopBundle\Entity\TabLang#tab which does not exist.

 

Edit: and now I'm able to find some more information for you:

Serverinformation

Serverinformation Linux #1 SMP Fri Aug 24 08:00:15 UTC 2018 x86_64

Serversoftwarens version: Apache

PHP-version: 7.2.16

Memorylimit: 536870912

Max responsetime: 50

Upload max filesize: 96M

Edited by Demuth
More debug info (see edit history)

Share this post


Link to post
Share on other sites

Update: 

So now I have managed to unlock the control panel, I can do everything it seems like.
But.. Only when debug mode is activated, the moment I disable debug mode, I get the HTTP ERROR 500 again, any solution  to this issue ?

Share this post


Link to post
Share on other sites

hi i have fixed this by changing database username and password and enabling debug mode to true ..

Share this post


Link to post
Share on other sites

Sorry for the late answer.

You did correctly by downgrading to PHP7.2 because the newer version is still not recommended by Prestashop. 

As for the error you get when not in debug mode. If it is the same as above, then go to ROOT_FOLDER/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php, search for the following code on lines: 2636, 2665.

continue;

and change it to:

continue 2;

This isn't really a Prestashop bug, but rather a vendor bug.

  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

Thank you for the response, I have changed those two lines.
The Entities Mapping error is now gone and shows no errors, thank you for that.

But I still can't get access to the backend site, unless I set _PS_MODE_DEV_ to true

In the debug log center I can only seem to find this error under Deprecations: 

Time Channel Message
23:43:46 - Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "Symfony\Component\Routing\Annotation\Route" annotation from Symfony itself.
[
  "exception" => SilencedErrorContext {#5288 }
]

 

Edited by Demuth (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

I am glad that at least we resolved one bug.

About the _PS_MODE_DEV_, could you please do the following:

  1. Disable debug mode.
  2. Enter BO to get an error.
  3. Locate PHP error log.
  4. Copy and paste the error onto here.

I think that your problem is a quick fix, we just need to find the problem. Meanwhile, I will look into your deprecation warning.

EDIT: You can easily remove sensio deprecation message.

  1. Go to ROOT_FOLDER/app/config/config.yml
  2. Place the following code after Doctrine Configuration (around line ~105)
# Sensio Configuration
sensio_framework_extra:
    router:
        annotations: false

NOTE: PrestaShop 1.7.6.x will most likely solve these issues so before upgrading make a backup.

Edited by OctagonMD
Grammar errors (see edit history)

Share this post


Link to post
Share on other sites

Thank you for the reply, I will do that.
Currently my hosting provider doesn't allow me to enable php logging, so I contacted their 2nd level technician in order to enable this.

So I will return with the log as soon as possible.

Share this post


Link to post
Share on other sites
Posted (edited)

Turns out the server host, doesn't have a clue how to enable php logs, or at least they won't share it with me, spoke with 6 different people now.

So I lost my patience and reinstalled everything instead.
Everything works just fine now, thank you and sorry I couldn't be of help solving whatever caused the issue.

Edited by Demuth
Updated (see edit history)

Share this post


Link to post
Share on other sites

I am glad you solved your problem.

I think it might've been something small like a wrong configuration. Either way, feel free to ask if any problems arise in the future.

  • Like 1

Share this post


Link to post
Share on other sites

Hi all.

I've the same problem of you.

Symfony send Deprecation "Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "Symfony\Component\Routing\Annotation\Route"

I disabled all external ps modules and now I'm running in debug mode. How to fix the problem? Help me thank you

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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