Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 解码URL不适用于woocommerce API连接_Php_Wordpress_Api_Woocommerce_Decode - Fatal编程技术网

Php 解码URL不适用于woocommerce API连接

Php 解码URL不适用于woocommerce API连接,php,wordpress,api,woocommerce,decode,Php,Wordpress,Api,Woocommerce,Decode,场景:尝试使用woocmmerce API将我的一家店铺连接到外部服务,当点击approve按钮接受连接时,它所在的url为: xxx.com/wc-auth%2Fv1/access_granted/?app_name=xxxx&user_id=f07403abf98405677a5f19f658e9bf&return_url=https%3A%2F%2Fapp.xxx.com%2Fadd-a-store&callback_url=https%3A%2F%2Fapp.xx

场景:尝试使用woocmmerce API将我的一家店铺连接到外部服务,当点击approve按钮接受连接时,它所在的url为:

xxx.com/wc-auth%2Fv1/access_granted/?app_name=xxxx&user_id=f07403abf98405677a5f19f658e9bf&return_url=https%3A%2F%2Fapp.xxx.com%2Fadd-a-store&callback_url=https%3A%2F%2Fapp.xxx.com%2Fconnect%2Fincoming&scope=read_write&wc_auth_nonce=ff052c27f9
结果:然后站点抛出以下错误:“错误:缺少参数app\u name。”

问题:出于某种原因,我的woocommerce或wordpress(同一服务器上的其他站点执行相同的步骤工作正常)无法解码url并放入/而不是%2和a?而不是%3F。如果您使用解码工具,那么它会为您提供正确的URL,并且一切正常

我可以在这个位置看到这个文件/public_html/wp includes/pluggable.php,它必须进行正确的重定向,但显然没有这样做

谢谢
亲切问候

我发现这似乎是最新WPML更新中的一个bug。我已经在他们的支持论坛上报告了这个错误

谢谢 问候