Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › When I click on the add to cart it jumps to a page "error 404 Not Found"
Tagged: 404 error message, add to cart, digital products
- This topic has 13 replies, 3 voices, and was last updated 12 years, 1 month ago by chelsebenham.
-
AuthorPosts
-
October 4, 2012 at 11:43 pm #7566chelsebenhamMember
I have done the following on a PAGE within my site:
1. Used the [wp_eStore_fancy2 id=1] shortcode
2. Added the [wp_eStore_cart] shortcode
Both show up fine when I go to the website.
HOWEVER:
* When I click the “Add to Cart” button -> I’m thrown to a random nonexistent page on my site that reads “Error 404 Not Found”
NOTE: I am not using the widget (WP Cart for Digital Products) on my site (because I want the shopping cart to show up on specific pages within my site not on my entire site.)
Additional Test: I am selling digital products. However, even when I used the above mentioned widget to run a test for the shopping cart – I was still being thrown to above mentioned page and receiving the 404 Error message.
October 4, 2012 at 11:57 pm #50061chelsebenhamMemberAdding or removing items in the cart produces the same reaction – jumping to the page not found and 404 message. If I go back to the product page the correct listing is there.
My host provider is GoDaddy the page I’m referring to is [http://virtualmediamavens.com/tutorial-gallery/]
The message on the forum that slightly addresses this same issue in incomprehensible as to providing any kind of solution. Can’t make sense of it.
October 5, 2012 at 12:42 am #50062IvyMemberHi, Please see the following forum posts.
Are you using a caching plugin? if so which one?
Did you specify a “Button Redirect Target URL” for this product in the add/edit products settings?
October 5, 2012 at 3:03 pm #50063chelsebenhamMember1. I’ve already read that response and it does not provide an answer to my problem.
2. No, I’m not specifying a Button Redirect Target URL.
October 5, 2012 at 3:04 pm #50064chelsebenhamMemberI do not understand what “Cashing plugin” means
October 6, 2012 at 12:13 am #50065adminKeymasterBasically, HTTP POST on the same URI is not working correctly on your server. This is something your hosting provider need to fix in their server configuration somewhere. This issue could also come from an “htaccess” misconfiguration in your site too.
Lets try a workaround. Please do step 1-5 from the following post:
https://support.tipsandtricks-hq.com/forums/topic/how-to-create-a-specific-checkout-page-for-estore
Let me know when you have done that so I can go to your product page and see if that works.
October 6, 2012 at 3:35 pm #50066chelsebenhamMemberGotcha. Let me check out these things and return a response after that time. Thank you.
October 6, 2012 at 5:02 pm #50067chelsebenhamMemberIt works in one direction. The Checkout page is now the one redirected to when you “add to cart”,
HOWEVER,
if you want to remove an item from the cart it goes to the “404 Not Found page” again.
October 6, 2012 at 9:41 pm #50068chelsebenhamMemberI’ve copied my .htaccess code here in the hope that this might help:
rewriteengine on
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
rewriterule ^index.php$ – [L]
rewritecond %{REQUEST_FILENAME} !-f
rewritecond %{REQUEST_FILENAME} !-d
rewriterule . /index.php [L]
October 6, 2012 at 10:22 pm #50069chelsebenhamMemberHere is some additional information:
1. The URL where the “Error 404 Not Found” goes to this link:
[http://virtualmediamavens.com/cart-checkout/#wp_cart_anchor]
(It seems there is something not right with the wp_cart_anchor)
2. Interestingly enough, if you:
a. Click on the “(-) Remove item” you are redirected to the “Error 404 Not Found” page
HOWEVER
b. If you click on “Empty Cart” it goes to the Checkout page – This is correct
Conclusion is: There is something misconfigured around the “wp_cart_anchor”
I have tested this.
NOTE: I get this result (Error 404) REGARDLESS whether I have the “Allow Shopping Cart Anchor” checked on or off
October 6, 2012 at 10:48 pm #50070chelsebenhamMemberThe message in the URL bar (when I roll my mouse over the URL for the “Error 404 Not Found” page) reads the following:
– “This website does not supply identity information” –
as I continue to click the arrow back the URL “http://virtualmediamavens.com/cart-checkout/” the checkout page is there.
This issue is repeatable and you can test it at your end easily.
1. Visit this link http://virtualmediamavens.com/tutorial-gallery/
2. add something to the cart
3. and then remove the item.
You will be directed to the “Error 404 Not Found” every time.
Spoke to GoDaddy (my host provider) they said that .htaccess files come from the software provider and are NOT provided to the user from GoDaddy. “If the file is misconfigured, then it would be on the side of WP eStore to know how the .htaccess file should be configured.” Discussing this with GoDaddy proved unfruitful at determining the issue with the htaccess file.
October 7, 2012 at 12:27 am #50071chelsebenhamMemberHave tried adding “anchor” and adding “fancy redirection”. Neither resolve the issue.
Where are people directed when the remove_item action occurs?
Also of note: The address bar indicates “http://virtualmediamavens.com/cart-checkout/” after I attempt to remove item and I get the Error 404 message. HOWEVER, if I go to the address bar, put the cursor at the end of the address, and hit “Enter”, the page reloads and I get the cart checkout page, with item removed, and no 404 error. So I’m guessing there’s some hidden page in there somewhere that isn’t showing up in the address bar…?
Preferably, I’d like to find a way for this to work without the Workaround. I’d like people to be able to add items to their cart without having to be directed to the checkout each time they add a single item. But I’ll make do with that if I can get the other issues resolved…
October 7, 2012 at 12:31 am #50072adminKeymasterYour .htaccess file doesn’t look Good. Only keep the following which comes from WordPress (delete the rest from this file):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressFYI – My advice to you would be to move away from Godaddy hosting in the future. They upsell you the hosting when you go to buy a domain name but their shared hosting is not very good.
October 8, 2012 at 6:17 pm #50073chelsebenhamMemberGot everything sorted out. Turned out that this was a combination of the .htaccess issue and a conflict with another bad plugin that I installed earlier which was messing things up. The test mentioned in the following test helped me clean house:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
Thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.