So the other day I started seeing a blank white screen when I either try to view orders for the day or even if I just log in. Refreshing the page does nothing but if I hit the back button and do the task again it normally fixes the issue.
No recent updates to the site and have not changed any PHP settings (though I am still running 7.3 since my cart is old and too many mods to upgrade it).
At first, try to check server error logs
1 Like
Nothing in my error logs but in the admin logs I see:
**URL:**eCommerce marketplace software to grow your business - CS-Cart is accessed.
Request: 'dispatch=product_updates.check_available&request=%3C%3Fxml+version%3D%221.0%22+enc…
Response: <?xml version="1.0" encoding="UTF-8"?>ACTIVEAVAILABLE1
Not sure if anything there is unusual but that is the only thing I am seeing in my logs when I sign in. Simply hitting the back button on my browser makes things appear normal.
I should note this is happening on two different computers. Firefox shows a blank screen but chrome shows:
This page isn’t working
mysite.com is currently unable to handle this request.
HTTP ERROR 500
Where exactly would this error be logged because I’m not seeing it anywhere?
If there are no entries in the error_logs journal, try checking the system log; this issue could be related to a segmentation fault in the PHP/Apache process, for example.
Okay, finally found a system log that I think is showing the error caused by an old addon that I’m not sure what it was used for. Disabled and I “think” it fixed it as testing quit causing the issue. But…
My original error log was 4.7GB so I deleted to see what all is happening. Seeing this error occur over and over about every 30 seconds:
[06-Nov-2024 12:25:44 America/Chicago] PHP Warning: Use of undefined constant CART_LANGUAGE - assumed 'CART_LANGUAGE' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/functions/fn.common.php on line 5776
[06-Nov-2024 12:25:44 America/Chicago] PHP Notice: Undefined index: dispatch in /home/fastdeca/public_html/shop/app/Tygh/Registry.php on line 552
[06-Nov-2024 12:25:44 America/Chicago] PHP Warning: Use of undefined constant CART_LANGUAGE - assumed 'CART_LANGUAGE' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/Tygh/Registry.php on line 554
[06-Nov-2024 12:25:44 America/Chicago] PHP Warning: Use of undefined constant CART_SECONDARY_CURRENCY - assumed 'CART_SECONDARY_CURRENCY' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/Tygh/Registry.php on line 554
[06-Nov-2024 12:25:44 America/Chicago] PHP Warning: Use of undefined constant CART_LANGUAGE - assumed 'CART_LANGUAGE' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/functions/fn.common.php on line 5776
[06-Nov-2024 12:25:45 America/Chicago] PHP Warning: Use of undefined constant CART_LANGUAGE - assumed 'CART_LANGUAGE' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/functions/fn.common.php on line 5776
[06-Nov-2024 12:25:45 America/Chicago] PHP Notice: Undefined index: dispatch in /home/fastdeca/public_html/shop/app/Tygh/Registry.php on line 552
[06-Nov-2024 12:25:45 America/Chicago] PHP Warning: Use of undefined constant CART_LANGUAGE - assumed 'CART_LANGUAGE' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/Tygh/Registry.php on line 554
[06-Nov-2024 12:25:45 America/Chicago] PHP Warning: Use of undefined constant CART_SECONDARY_CURRENCY - assumed 'CART_SECONDARY_CURRENCY' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/Tygh/Registry.php on line 554
[06-Nov-2024 12:25:45 America/Chicago] PHP Warning: Use of undefined constant CART_LANGUAGE - assumed 'CART_LANGUAGE' (this will throw an Error in a future version of PHP) in /home/fastdeca/public_html/shop/app/functions/fn.common.php on line 5776
Any idea of what could be causing this or how to fix?
1 Like
Please make sure that the server configuration meets your CS-Cart version (especially PHP version)
The error entries listed ( Warnings and Notices ) should not cause a 500 error.
I’m afraid there are too many possible variants (and most of them are related to third-party add-ons) that can cause these error entries to appear. Fixing them requires knowledge of debugging and knowledge of PHP in general. So I’m afraid there won’t be a simple solution for these errors.