Jump to content

500 Server Error


Recommended Posts

Posted (edited)

Everything worked and suddenly .. 500 Server Error .. did not do any changes since 15. April 2025 .. last update vast 14. March from 8.1.5 to 8.2.1 .. I have only Cron tasks running several times a day to update products and prices. Tried manually clear cache .. nothing changed .. changed server PHP version ..  nothing changed ..

Log file shows an error ..    PHP Fatal error: Uncaught Error: Class "Context" not found in www/apache/domains/      htdocs/init.php:27

init.php has only this code in it and have not been changed since verison upgrade March 14th ..

if (isset(Context::getContext()->controller)) {
    $controller = Context::getContext()->controller;
} else {
    $controller = new FrontController();
    $controller->init();
}
 

Edited by Andres Kaev (see edit history)
Link to comment
Share on other sites

Hi there,

One possible cause—especially if the error appeared suddenly without any recent changes—is that your hosting provider may have automatically upgraded the PHP version. This can easily lead to compatibility issues if your current PrestaShop version doesn't fully support the new PHP level.

I recommend checking your hosting control panel or contacting your provider to confirm the current PHP version. Then cross-check it with the official PrestaShop PHP compatibility chart.

If there's a mismatch, downgrading to a supported PHP version or upgrading your PrestaShop installation (and all modules/themes) may resolve the issue.

Let me know what version you're running and I can point you to the right PHP level or update path.

Hope this helps!

Link to comment
Share on other sites

I was wondering the same .. that has to be some kind of hosting issue .. but hosting company said that on their side, everything is OK .. and they will not share company strategic information.

Website was running PHP 8.1 for a year and after the update 1.5 months ago .. hosting provider considers this obsolete and suggest to use at least PHP 8.3 .. tried today 8.2 and 8.3 versions .. nothing changed.

I was just finished with the design and everything was running smoothly for a month .. 8500+ products and tens of thousands pics and data .. approx 27GB all in all .. I'm not currently very keen to restart all over again.

There has to be some quicker fix than doing all over again and maybe then .. 1 month later there's the same error back again. 

Link to comment
Share on other sites

Yeah .. already did it (edited manually a config/defines.inc.php file and uploaded to a server, to get some answers) .. one shipping module (Omniva .. https://github.com/mijora/omniva-prestashop-1.6-1.7) just caused the issue (table ps_omniva_order_history did not exist) .. module worked well until 30.04.2025 and suddenly on the 1. of May 500 error .. had to remove it for now.

  • Like 1
Link to comment
Share on other sites

1 hour ago, Andres Kaev said:

Yeah .. already did it (edited manually a config/defines.inc.php file and uploaded to a server, to get some answers) .. one shipping module (Omniva .. https://github.com/mijora/omniva-prestashop-1.6-1.7) just caused the issue (table ps_omniva_order_history did not exist) .. module worked well until 30.04.2025 and suddenly on the 1. of May 500 error .. had to remove it for now.

that's great,  happy selling

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