dongxiaofa6359 2014-08-01 04:25
浏览 66

结帐时Woocommerce内部服务器错误

I am experiencing this weird problem with my htaccess file everytime I tried to checkout on my woocommerce site. This is the htaccess file I currently have..

# BEGIN REMOVE SLUG CUSTOM POST TYPE RULES
RewriteRule ^slider/(.+)/$ /$1 [R=301,L]
# END REMOVE SLUG CUSTOM POST TYPE RULES


# 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

but its strangely become like this after I checkout

# BEGIN REMOVE SLUG CUSTOM POST TYPE RULES
RewriteRule ^slider/(.+)/$ /$1 [R=301,L]
# END REMOVE SLUG CUSTOM POST TYPE RULES


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
Rewrit

and 500 server error prompt up instead of showing thank you page but its all working if I fixed the htaccess file manually and refresh the same page, thank you page will show and also order was recorded fine even if I don't fixed the htaccess file.

I created my own woocommerce child theme for this site and I am using only two plugins called "Remove slug from custom post type" and "SEO Ultimate" to make the product and category urls as I needed and both plugins seems to be changing htaccess on the fly, but I am not really sure why only on checkout it makes htaccess file cut off like that...? These are the url where I'am getting this error

http://mysite.dev/checkout/order-received/709?key=wc_order_53db13e068104

its redirect to this url after I correct htaccess manually. http://mysite.dev/checkout/order-received/709/?key=wc_order_53db13e068104

also this error doesn't occur all the time please help!

  • 写回答

1条回答 默认 最新

  • duankuaiwang2706 2016-04-14 04:49
    关注

    I got the same error then I just added the following line to my wp-config.php

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_LOG', true );
    

    This will turn on WordPress debugging feature and write the log into file instead of displaying it on your front-end.

    After that executing the webpage again. I got the exact function name causing error in my log file and I just resolved that function issue.

    评论

报告相同问题?

悬赏问题

  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办
  • ¥15 vue2登录调用后端接口如何实现