Woocommerce can't remove item in cart


(David Raymond) #1

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


(David Raymond) #2

for those who expect the same error, i found the fix here : https://github.com/caddyserver/examples/blob/master/wordpress/Caddyfile

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}
    }
}

(Matthew Fay) #3

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.


(system) #4

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