Community Forums › Forums › Archived Forums › Design Tips and Tricks › Strange behaviour in WooCommerce – remove item from cart -> Server error
- This topic has 5 replies, 2 voices, and was last updated 6 years, 5 months ago by trash.
-
AuthorPosts
-
May 12, 2017 at 5:02 am #206312trashParticipant
Hello,
I experience a strange behaviour and need help.I run WP 4.7.4, WooCommerce 3.0.6 and Genesis 2.5.0. When I visit my cart page and click on the X for removing an item, I can see the following in the Browser inspect: http://d.pr/i/55jMO
So I get an 403 forbidden error, but the strange thing is, that my site is running at: domain.com/page/index.php -> and the removed item request goes to domain.com/?removed_item=1 - So it's missing the /page/.
In the .htaccess I can see this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /page/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /page/index.php [L] </IfModule> # END WordPress
And the weiderest thing is, that when I switch from Genesis 2.5.0 to TwentySeventeen it works fine.
The only thing I can see in the server logs are:
[Fri May 12 12:52:18 2017] [core:error] [pid 6421] [host domain.com] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Currently I do not know other steps I can take - does someone has an idea?
Thanks!
May 12, 2017 at 6:55 am #206317Victor FontModeratorDid you try re-saving the permalinks?
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?May 12, 2017 at 8:14 am #206327trashParticipantYep, several times.
November 15, 2017 at 12:17 pm #213599trashParticipantHello,
I still have this issue. It's weird, it happens when I use the Genesis Sample Child Theme as well.What I did notice now is that the referer is not set correctly.
When I use TwentySeventeen as a theme and I call the
remove_item
ajax action and I looked atpublic static function update_cart_action() {
inwoocommerce/includes/class-wc-form-handler.php
and did:var_dump(wp_get_referer());
I get something like this:
domain.com/project/cart
When I activate Genesis and remove something from the cart, I do get:
domain.com
Does anybody know why this happens? wp_get_referer() in my case works differently if I use TwentySeventeen in comparison to Genesis.
P.S: The server does tells me this:
[Wed Nov 15 18:56:55 2017] [autoindex:error] [pid 10676] [client ] AH01276: Cannot serve directory /is/htdocs/wp101_TWGAEPLQ0D/www/projekte/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.php5,index.wml,index.xml) found, and server-generated directory index forbidden by Options directive
November 16, 2017 at 1:59 am #213624trashParticipantI noticed that inside wp_get_referer the $_SERVER['HTTP_REFERER'] is different when I use TwentySeventeen instead of Genesis.
When using TwentySeventeen the $_SERVER['HTTP_REFERER'] returns domain.com/project/cart.
When I use Genesis I get a domain.com as referer.
How can that be? Nobody has an idea on this?
November 16, 2017 at 2:02 am #213625trashParticipantI did figure it out!
It's because of this meta tag:
<meta name="referrer" content="origin" />
-
AuthorPosts
- The topic ‘Strange behaviour in WooCommerce – remove item from cart -> Server error’ is closed to new replies.