解析错误:Wordpress 中的语法错误 [英] Parse error: syntax error in Wordpress

查看:24
本文介绍了解析错误:Wordpress 中的语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解析错误:语法错误,第 991 行/home3/mathiasf/public_html/wp-content/themes/smartstart/functions/plugin-activation.php 中的意外 T_IF

Parse error: syntax error, unexpected T_IF in /home3/mathiasf/public_html/wp-content/themes/smartstart/functions/plugin-activation.php on line 991

这是我在第 991 行发现的

this is what i found in line 991

if ( ! class_exists( 'WP_List_Table' ) ) {

我该如何解决这个错误?

How can I solve this error?

这是完整的代码:http://pastebin.com/UB0EWK2A

推荐答案

您可能忘记了上一行的 ;,例如

You probably forgot a ; on the previous line, e.g.

echo 'foo'
if (...) { ... }

会触发错误.

这篇关于解析错误:Wordpress 中的语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆