Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Invalid argument supplied – eStore_payment_submission.php
- This topic has 4 replies, 2 voices, and was last updated 14 years, 5 months ago by benb.
-
AuthorPosts
-
April 26, 2010 at 11:50 am #1135benbMember
The plugin is displaying the below error when passing info to PayPal:
Warning: Invalid argument supplied for foreach() in /home/weddingbootcamp/weddingbootcamps.com/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php on line 227
Here’s the page in question. Add something to the cart and try to go to PayPal to see the error – http://weddingbootcamp.com.au/wedding-school/wedding-planning-basics/
I consulted this page – https://support.tipsandtricks-hq.com/forums/topic/php-error-on-redirect-empty-cart-to-paypal
I ran the above link past the website host and this was their reply:
Session are implemented, and do work, on your account. There are many
coding issues that could cause this problem for you, but you will need to
work with the developer to sort them. Just as suggestion here – if this
plugin is writing session data outside your own filespace, such as to
/tmp, this is a poor practice, as data in /tmp can be deleted by our
system daemon at any time, and this *could* be, but may not be, what is
causing your trouble.
Using the eStore plugin. Latest version as I only just downloaded it a couple of days ago.
Plugin has not been modified in any way.
Any insight would be great.
April 26, 2010 at 1:13 pm #20107amin007ParticipantLOL… when you are having issues with my plugins first run it past me so I can tell you what the exact cause of the error is.
No disrespect but I don’t think a support personnel from a hosting company who is sending canned response is the right person to consult on this
Anyway, I had a quick look at your site and here is what I see.
1) The shopping cart is on a page at the following URL:
http://weddingbootcamp.com.au/wedding-school/wedding-planning-basics/
Notice that the domain is “http://weddingbootcamp.com.au”?
2) Now, when I click the checkout button I get the following(this is the page I get the error on):
Notice the domain now? “http://weddingaus.weddingbootcamps.com”
Can you see that the domains are not the same (one is a sub-domain of the other or something like that)?
Of course the sessions are not going to be the same as it is a security risk to let one domain use the session of another domain. Without going too much into details here you can read the post from “Matt Cutts” (he is the head of Google’s Webspam team) here which explains a bit on this:
So now my question to you is what kind of server setup do you have? where is your WordPress installed? What is the URL of your WordPress root?
April 27, 2010 at 1:54 am #20108benbMemberThanks for getting back to me.
Its a WordPress Mu install. More here – http://mu.wordpress.org/
That would explain the sub-domains. Is there a way to get the plugin working with Mu?
April 27, 2010 at 9:11 am #20109amin007ParticipantOkay cool.. yeah the eStore plugin works on WP MU.
I understand that on a MU installation each blog gets a sub-domain but what I can’t figure out is why the shopping cart is the main domain but when you checkout it goes to a sub-domain. The whole purchase should happen on the same domain where the plugin is installed.
I don’t know how you have setup your WP MU but there seems to be some sort of special redirection setup going on here.
Your top level domain name is “http://weddingbootcamp.com.au” (this is where you have the shopping cart)
When you checkout it goes to “http://weddingaus.weddingbootcamps.com” which is not right. I know the plugin gets the value or your WordPress install URL from the system so if it’s getting it wrong it is because some special setup has been performed here.
Can you please explain a bit on this so I can determine whats going on?
April 30, 2010 at 12:52 am #20110benbMemberThanks for your advice. Got it sorted now. Was a sub-domain issue as you pointed out.
-
AuthorPosts
- You must be logged in to reply to this topic.