Tried to search for a solution here and ended up down in 500+ rabbit holes ...
Can log into admin, but front page is blank: <head> and <body> empty.
In a nutshell:
1. Got unusual large number of customer's registrations with no details in DB.
2. Did a bit fiddling with >Modules >cookie notice by [...] - enabled/disabled
3. Changed >Customers >Custom Fields from tick to radio (to stop spam).
After this me website [...] went blank.
Got an old back up from May 23, but trying to avoid overwriting all files and losing changes, if possible?
And honestly not sure, if this is good decision?
Any insights or advice from community would be greatly appreciated? - Cheers
edit :: problem solved/ removed identifiable data
Dum spiro spero.
Temporary add this lines into your .htaccess code to display startup errors:
Code: Select all
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
HTTP 500 Internal Server Error is a generic error message indicating a server-side problem, and the cause can be various issues such as:
Server misconfigurations: Issues in your server configuration files.
Resource limitations: Insufficient memory or other resource limitations.
Faulty PHP code: Errors in the PHP scripts of your application.
File permissions: Incorrect permissions on PHP scripts or other required files.
PHP extensions: Missing or incompatible PHP extensions.
.htaccess issues: Incorrect or misconfigured .htaccess files.
And so on. Instead of simply reverting the changes, I recommend investigating the underlying issue that is causing the error. You can do this on your own or feel free to reach out to me via email or forum message for assistance.
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
IMO it's an php issue ...
My Error Log doesn't give much away, all I have is the following which occurred 3 days after error:500
2023-10-29 16:22:37 - PHP Unknown: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in ../system/storage/modification/catalog/model/catalog/product.php on line 56
Dum spiro spero.
Open the file from /system/storage/modification/catalog/model/catalog/product.php on line 56 and share here the block of code arround that line to understand why there is error.dragonfly-ie wrote: ↑Thu Nov 02, 2023 4:02 pm2023-10-29 16:22:37 - PHP Unknown: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in ../system/storage/modification/catalog/model/catalog/product.php on line 56
Also what the php version and OC version you were using?
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Wouldn't it be nice, if it were this easy ... lol. - No, I pay extra for v7.2 support.
But thanks, maybe it's time to upgrade my OC version.
Dum spiro spero.
Here's the line 56
'rating' => round($query->row['rating']),
but like I mentioned before this error happened long AFTER site crash...
Dum spiro spero.
For some reason $query->row['rating'] is null so perhaps your database isn't returning a row for rating?dragonfly-ie wrote: ↑Thu Nov 02, 2023 7:19 pmCode: Select all
'rating' => round($query->row['rating']),
You might need a developer to take a look really.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thanks, mate. This is what I get:halfhope wrote: ↑Thu Nov 02, 2023 5:37 amHi!
Temporary add this lines into your .htaccess code to display startup errors:Code: Select all
php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Dum spiro spero.
You should check it. Just upload via FTP a little phpinfo.php script containing this:dragonfly-ie wrote: ↑Thu Nov 02, 2023 7:09 pmWouldn't it be nice, if it were this easy ... lol. - No, I pay extra for v7.2 support.
But thanks, maybe it's time to upgrade my OC version.
Code: Select all
<?php phpinfo(); ?>
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
That obviously hasn't worked as intended because that's a generic server error, not the actual error.dragonfly-ie wrote: ↑Thu Nov 02, 2023 7:50 pmThanks, mate. This is what I get:halfhope wrote: ↑Thu Nov 02, 2023 5:37 amHi!
Temporary add this lines into your .htaccess code to display startup errors:Code: Select all
php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I would advise anybody to avoid this feature >Customers >Custom Fields
HTH.
Dum spiro spero.
How was your site attacked? Was it just a bot creating customer accounts or something else?dragonfly-ie wrote: ↑Sun Nov 05, 2023 6:18 pmMy OC 2.2.x running on php7.2.36 was hacked through Custom Fields despite enabled Captcha.
I would advise anybody to avoid this feature >Customers >Custom Fields
HTH.

Hard to say. Just an uneducated guess, because I disabled Custom Fields a couple of weeks ago, and still kept getting sign-ups with Custom Fields showing in registration, which was very strange , to say the least.
Dum spiro spero.
Users browsing this forum: No registered users and 11 guests