简体   繁体   English

Joomla “致命错误:无法在第 0 行重新声明 jblogerror()”

[英]Joomla "Fatal error: Cannot redeclare jblogerror() in on line 0"

Here is a weird problem i'm facing;这是我面临的一个奇怪的问题; after updating Joomla to the latest version, website failed to up load but, as i've made a backup manually from these folders: administrator bin cli components includes layouts libraries modules plugins yt-assets and all the root files, after restoring the backup still the website is not loading and just says "Fatal error: Cannot redeclare jblogerror() in on line 0" !将 Joomla 更新到最新版本后,网站无法加载,但是,因为我已经从这些文件夹手动进行了备份:管理员 bin cli 组件包括布局库模块插件 yt-assets 和所有根文件,恢复备份后仍然该网站没有加载,只是说“致命错误:无法在第 0 行重新声明 jblogerror()”!

Any suggestion?有什么建议吗? Thank you.谢谢你。

Apparently, the version of jBlog you are using is loading its attempting to load its own classes twice.显然,您正在使用的 jBlog 版本正在加载它试图加载它自己的类两次。

Let's assume the jBlog developers already fixed it and you carelessly ignored the warning to ensure all your extensions are compatible before updating.让我们假设 jBlog 开发人员已经修复了它,并且您不小心忽略了警告,以确保在更新之前您的所有扩展都是兼容的。

Are you able to access administrator?你能访问管理员吗? Simply go there and upgrade jBlog including any modules.只需 go 并升级 jBlog 包括任何模块。

Else, the issue lies within a plugin.否则,问题出在插件中。 In order to access the administrator and perform the update, you will need to manually disable the offending plugin.为了访问管理员并执行更新,您需要手动禁用有问题的插件。

A simple way is to rename its folder: start from plugins/system then plugins/content hopefully you'll have spotted it by then.一个简单的方法是重命名它的文件夹:从 plugins/system 开始,然后是 plugins/content,希望到那时你会发现它。 Look into the subfolders of each and spot any that may be relevant to jBlog (or grep through the folder to locate the specific string)查看每个子文件夹并找出任何可能与 jBlog 相关的内容(或通过文件夹找到特定字符串的 grep)

If you have console access, simply run如果您有控制台访问权限,只需运行

# grep -rl jblogerror plugins/system

and you should see all the files that include such string, just rename their main plugin folder.您应该会看到所有包含此类字符串的文件,只需重命名它们的主插件文件夹即可。 But you could also do all this through ftp and guessing.但是你也可以通过 ftp 和猜测来完成所有这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM