APACHE重写问题导致的服务器 500 错误解决方法

1.APACHE没开启rewrite模块。
解决办法:编辑apache的http.conf文件,找到#LoadModule rewrite_module modules/mod_rewrite.so,去掉前面的#,重启APACHE.
2 .htaccess文件有错误。通常是因为写入了不合语法的规则。
解决办法:删除该目录中的.htaccess即可。如果还是不行,再删除上级目录的.htacess,如此反复。

( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0000355064{main}( ).../index.php:0
20.0001355352require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.173010162440require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.174210233584include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.256410847408get_template_part( ).../single.php:5
60.256410847928locate_template( ).../general-template.php:167
70.256410848024load_template( ).../template.php:643
80.256410848408require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.261310833160cwppos_show_review( ).../content-single.php:29

1 评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注