Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › PHP: CGI application vs Apache Module
- This topic has 7 replies, 2 voices, and was last updated 15 years ago by Richins. 
- 
		AuthorPosts
- 
		
			
				
October 19, 2010 at 6:50 pm #2063Richins MemberI’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? October 20, 2010 at 12:09 am #25602amin007 ParticipantI 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? October 20, 2010 at 12:40 pm #25603Richins MemberPayPal October 21, 2010 at 12:53 am #25604amin007 ParticipantLets 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. October 21, 2010 at 3:53 pm #25605Richins MemberHmmm. 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. October 22, 2010 at 12:27 am #25606amin007 ParticipantI 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. October 25, 2010 at 1:44 pm #25607Richins Memberyeah…failed the test. October 25, 2010 at 2:06 pm #25608Richins MemberI think I’ll just use Apache module. I don’t know what’s wrong with my php settings in CGI. 
- 
		AuthorPosts
- You must be logged in to reply to this topic.