Jump to content

Paypal does not work


sewer
 Share

Recommended Posts

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.

 

 

 

Link to comment
Share on other sites

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 by keat
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...