sewer Posted September 21, 2017 Share Posted September 21, 2017 I know very little about cubecart and upgraded in May 2017 and have not had a sale since (I didn't really have a busy store anyway). But today a customer alerted me to an issue with connecting to paypal. Having tried to check out my self I keep getting an error message: www.sewmaterialistic.com.au is currently unable to handle this request. HTTP ERROR 500 I know this is a vague error but hoping someone can help as I'm not really in a position to pay for help. I have tried upgrading the paypal extension which has been successful but it has not fixed the check out problem. I'm so lost. Quote Link to comment Share on other sites More sharing options...
Noodleman Posted September 21, 2017 Share Posted September 21, 2017 Check all of the module configuration, ensure it's correct, if it is check your PHP error logs on your server, error 500 should have recorded something.. Quote Link to comment Share on other sites More sharing options...
sewer Posted September 21, 2017 Author Share Posted September 21, 2017 Where do I find this? the PHP error logs? The module confirguration is correct Quote Link to comment Share on other sites More sharing options...
keat Posted September 21, 2017 Share Posted September 21, 2017 (edited) Are you sure the PayPal module is live and not sandbox ?? Under store settings - advanced. Enable debugging and then place a dummy order. At the very bottom of your page should be a debug output. Lets see if there are any errors in there. Failing that, if you create and uplaod a new file called ini-custom.inc.php to the root of your store. Inside this file add the following PHP script. <?php # Custom initialization commands # Filename: ini-custom.inc.php # File location: main CubeCart folder ini_set('memory_limit', '256M'); ini_set('max_execution_time', '60'); ini_set('error_log', 'error_log'); ini_set('log_errors', 'on'); ?> This should create an error log in the root of your store which may reveal a few clues. Edited September 21, 2017 by keat Quote Link to comment Share on other sites More sharing options...
sewer Posted September 21, 2017 Author Share Posted September 21, 2017 ok. So it is in Live, not Sandbox mode. I tried the next step you suggested but I have no idea how to interpret the code it's output - and there's a lot of it. Do you want me to post here? Quote Link to comment Share on other sites More sharing options...
sewer Posted September 21, 2017 Author Share Posted September 21, 2017 y Does this mean anything? [21-Sep-2017 09:20:37 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 09:20:40 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 09:20:41 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 09:20:51 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 09:26:31 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 09:33:49 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 09:46:32 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 10:02:27 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 10:08:13 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 10:12:56 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 10:17:57 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 10:42:44 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 10:48:54 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:19:10 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:21:56 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:23:55 UTC] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 [21-Sep-2017 11:25:55 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:32:06 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:32:38 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:40:35 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:45:49 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 [21-Sep-2017 11:45:59 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 Quote Link to comment Share on other sites More sharing options...
keat Posted September 21, 2017 Share Posted September 21, 2017 did you spot any red errors actually, i just put a test order on www.sewmaterialistic.com.au and was transferred straight to PayPal.com i didn't complete they payment though. Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 21, 2017 Share Posted September 21, 2017 This error: [21-Sep-2017 09:46:32 UTC] PHP Fatal error: require_once(): Failed opening required '/home4/material/public_html/staging2/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/php56/lib/php') in /home4/material/public_html/cache/skin/0735e5b49cfaaa2c776820e2ae57a6b8fa455d99_0.string.php on line 18 Note how 'staging2' is part of the path being looked at, from code in a path that does not include 'staging2'. A Fatal Error is when PHP crashes. Depending how PHP is configured, PHP will either send the actual error message to the customer's web browser (not a good idea on a production machine), or tell the web server to send a 500ISE to the customer's browser. This suggests to me that you moved this CubeCart installation from the folder 'staging2' to its parent, including all of the files in the /cache/ folder. We recommend that all files in the /cache/ folder (except .htaccess) be deleted prior to the move. Please manually delete the contents (except .htaccess) of /cache/ now. These errors: [21-Sep-2017 10:02:27 UTC] PHP Warning: Invalid Security Token in /home4/material/public_html/classes/sanitize.class.php on line 143 are when more than one CubeCart page is open, one page has had a form submitted, and then a second page submits its form. Once a POSTing has been made, the security token changes, and pages already open will still have the now obsolete token. The browser's Back button will also cause this. Quote Link to comment Share on other sites More sharing options...
sewer Posted September 22, 2017 Author Share Posted September 22, 2017 Hi Keat and BSmither, That's weird that it worked for you. I just tried it and it worked for me too!! What a relief! I guess I don't need to do anything about the errors now then. Interestingly I had Cubecart Support install the upgrade to V6 and I do recall Al mentioning something about staging - anyhow, I guess I don't need to worry for now. Best I check it on a regular basis though. I appreciate your help - both of you. Sarah 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.