AeroLogistica Posted January 27 Author Share Posted January 27 Now it went on blank screen mode and the latest error is [27-Jan-2023 19:09:33 UTC] PHP Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /home/at4gprieu0fh/public_html/loteriagringa.com/play/classes/request.class.php on line 92 Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 27 Share Posted January 27 You may have missed, or accidentally deleted, a closing parenthesis. Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted January 27 Author Share Posted January 27 Interesting. I logged out, then tried to log in, it gave me the 503 error again and added ?_g=phpinfo at the end and it by passes the error. So I guess the issue is somehow solved or at least bypassed. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 27 Share Posted January 27 Even with having fixed the error - possibly caused by a parenthesis - using the latest "Change to" code shown earlier? Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted January 27 Author Share Posted January 27 Exactly, it was a missing closing parenthesis, no blank screen now but the 503 error persists, I can log in only if I add ?_g=phpinfo to the end, it sort of bypasses the error. At least it work now, I can add a bookmark on my browser to always open the BO admin link with ?_g=phpinfo added at the end. Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted March 7 Author Share Posted March 7 So this issue continued but we pretty much just ignored by adding ?_g=phpinfo after https://www.loteriagringa.com/play/admin.php and then, only then we gain access to the dashboard. The front office never had an issue until now, we enabled the PayPal extension, front office still works fine but when we try to log in as a customer into cubecart, baaam, the ghost of the old 503 error attacks, this time the front office. When we disable the extension everything is back to normal but we cannot offer the PayPal option to our customers. Thanks in advance! regards, AJ Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 9 Share Posted March 9 Ask your hosting provider if there is any firewall preventing your host account from sending out any PHP-initiated requests for data. Such requests may be from www.cubecart.com, forums.cubecart.com, and www.google.com. Also, there must be a web server error log, somewhere. If the web server issues a 503, the reason for it will get logged. Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted March 9 Author Share Posted March 9 Will do boss, thanks! Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 9 Share Posted March 9 In the file /includes/functions.inc.php, there is the function offline(). In this function, HTTP headers are set for a 503 response, if the store is offline. Note that this function is only called when starting up the storefront - not the admin backend. We will make this check: From: header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); header('Retry-After: 3600'); To: header('HTTP/1.1 503 Our Store is temporarily unavailable'); header('Status: 503 Our Store is temporarily unavailable'); header('Retry-After: 3600'); Now, after logging in and, by default, wanting to show the dashboard, if the browser shows this changed message, we will start looking here. Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted March 10 Author Share Posted March 10 Thanks @bsmither, is there a similar way to troubleshoot admin - maintenance = 503 error. At the end I believe is all related. Thanks! Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 10 Share Posted March 10 If the error is from the web server, and is sent even before the web server starts running PHP to execute CubeCart, there is nothing that can be added to CubeCart to report any diagnostic data. There must be a web server error log somewhere. If it cannot be found in your hosted account's control panel, contact your hosting provider. Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted March 14 Author Share Posted March 14 I contacted them, will see what they said. Thanks again! regards, AJ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.