- This topic has 7 replies, 2 voices, and was last updated 14 years, 2 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › PHP: CGI application vs Apache Module
I’m using the eStore plugin for digital downloads. It works great when I run PHP as an Apache module. But I would prefer to use CGI application, because with the Apache module other functions quit working. With CGI, eStore gives me an error message upon checkout (empty cart). Any suggestions on how I can tweak my server settings so this works with CGI application?
I am not a big fan of CGI but lets try to do some tweaks on the plugin first
Can you please tell me what payment gateway you are using?
PayPal
Lets try two small tweaks to see if we get any positive result.
Open the “eStore_payment_submission.php” file and look for the following big of code:
// Lets clear the cart
reset_eStore_cart();
// submit the payment!
$myPaypal->submitPayment2(WP_ESTORE_CLICK_HERE);
Once you find it replace it with the following:
// submit the payment!
$myPaypal->submitPayment2(WP_ESTORE_CLICK_HERE);
// Lets clear the cart
reset_eStore_cart();
Now give it a test run and see if you get the same issue.
If the above doesn’t do anything then try the following:
Get rid of the following lines from the piece of code that we are tweaking:
// Lets clear the cart
reset_eStore_cart();
Let me know what result you get.
Hmmm. That didn’t seem to do anything. I noticed that in CGI it will only let me have one item in the cart at a time, so maybe the problem is not with checkout.
I see.. thanks for mentioning that. It indicates you have a PHP session issue. Please do this test mentioned on this post (How To Find Out If You Are Having a PHP Session Issue):
Let me know your result.
yeah…failed the test.
I think I’ll just use Apache module. I don’t know what’s wrong with my php settings in CGI.