OpenCart and outages
500 error in OpenCart: logs, modules, OCMOD and PHP without making the outage worse.
A 500 code signals a server-side problem, but doesn’t point to the source. The most valuable thing is the first error matching the time of the outage, set against the latest change and the scope of unavailability.
Next step
Record the time, the URL, the user and the latest change. Don’t turn on public error display, and don’t delete logs before securing them.
01
Establish the scope
Check the home page, a category, a product, the cart, checkout, the admin panel, the API and cron. An error in one controller or module needs a different order than an entirely unavailable bootstrap.
02
Correlate with the latest change
Record any change to PHP, a module, Journal, OCMOD, files, permissions, the certificate, the database or hosting made before the outage. Matching timing identifies the part of the log, but isn’t yet proof of the cause.
03
Read the first fatal error
Check the application, PHP-FPM and web server logs. The first exception with a full path and stack trace is usually worth more than the warnings that follow as a result.
04
Modules, Journal and modifications
Bad syntax, an incompatible method, an encoded module or a modification conflict can stop the request. Don’t refresh the whole OCMOD cache without a backup and a list of changes.
05
PHP, the database and permissions
Compare the runtime, extensions, limits, database driver, connection, disk and file owners. Simply increasing memory can hide a loop or a heavy query.
06
Minimal fix
Reproduce the error on a copy and remove the confirmed cause. Don’t combine an urgent repair with a broad update if there’s no time for full regression testing.
07
Acceptance of the sales process
After the site is restored, go through the catalogue, account, cart, shipping, payment, callback, status, email, stock, admin panel and integrations. No 500 code doesn’t yet mean sales are working correctly.
Related materials and sources
Is a 500 error blocking the store or the admin panel?
Give the OpenCart and PHP versions, the time, the latest change and the first error, without secrets or customer data.
Only 3 required fields · reply within 1 business day · no obligation
