首页 > WordPress > 无法启用插件,因为它引起了一个致命错误(fatal error)。解决方法

无法启用插件,因为它引起了一个致命错误(fatal error)。解决方法

2011年12月21日 发表评论 阅读评论


最近VPS博客安装插件时候提示:无法启用插件,因为它引起了一个致命错误(fatal error)。Parse error: syntax error, unexpected $end in ,百思不得其解,后在网上查阅资料,终于找到解决方法,现在就来说一下这个错误的修改解决步骤和方法!

网上查阅资料如下:
In PHP 5, the following error may appears as an error entry in Apache error log or simply displays on PHP web page, even if calling to php scripts with php_info() works perfectly and successfully returns information on PHP configurations:
Parse Error: syntax error, unexpected $end in ….. scripts.php on line …
The error may caused by a missing curly bracket in PHP script coding. Beside, it may also caused by error in PHP coding in class definition, as in PHP, a class definition cannot be broke up and distributed into multiple files, or into multiple PHP blocks, unless the break is within a method declaration.
But more commonly, the error is often caused by the use of Short Open tags in PHP,
To use short open tags, it must be enabled in PHP.INI. Search for short_open_tag in PHP.INI, and change the value to On. The line should look line:
short_open_tag = On

大致就是php5程序使用了短标记,解决方法很简单,打开PHP.INI文件,然后修改short_open_tag = off这个项目,修改设置为short_open_tag = on 即可.

然后重启一下apache,即可解决无法启用插件,因为它引起了一个致命错误(fatal error)。Parse error: syntax error, unexpected $end in 这样的错误.

转载请注明: 转载自VPS博客 无法启用插件,因为它引起了一个致命错误(fatal error)。解决方法

本文链接地址: http://www.vpsboke.com/wordpress/wufaqiyongchajian-error/


分类: WordPress 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
😉 😐 😡 😈 🙂 😯 🙁 🙄 😛 😳 😮 mrgreen.png 😆 💡 😀 👿 😥 😎 ➡ 😕 ❓ ❗