Woocommerce can't remove item in cart

Hi,

I have problem when i try to remove item from the cart. I did remove all plugin except woocommerce same result.
i believe it’s just a question of rewrite, but i’m to newbie in caddy webserver.
Wordpress work fine.

thanks for help me.

David

for those who expect the same error, i found the fix here : examples/Caddyfile at master · caddyserver/examples · GitHub

change _url={uri} to {query}
reload caddy.service

    root /var/www/wordpress
    gzip
    fastcgi / /run/php/php7.0-fpm.sock php
    rewrite {
        if {path} not_match ^\/wp-admin
        to {path} {path}/ /index.php?{query}
        # to {path} {path}/ /index.php?_url={uri}
    }
}
1 Like

Yep. Not sure where the ?_url={uri} query structure originally came from (it was added to that examples repo two years ago apparently) but I never could find any documentation to support its use. The rewrite you’ve updated to is the correct way to do it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.