简体   繁体   English

这是PHP问题吗? 未定义的变量:WP迁移时出现rawHTML错误

[英]Is this a PHP issue? Undefined variable: rawHTML error on WP migration

I get a TON of these errors when I migrated my WP to a VirtualBox Centos machine: 当我将WP迁移到VirtualBox Centos机器时,我收到了一些TON错误:

Undefined variable: rawHTML 未定义的变量:rawHTML

Is my PHP not set up correctly? 我的PHP设置不正确吗? How can I tell? 我该怎么说? I'm quite lost because most of the site appears to be normal. 我很迷茫,因为大多数站点看起来都很正常。

I'm migrating from a PHP 5.2 to a 5.3 Centos server. 我正在从PHP 5.2迁移到5.3 Centos服务器。

Additional errors include: 其他错误包括:

Notice: has_cap was called with an argument that is deprecated since version 2.0! 注意:has_cap已使用自版本2.0起已弃用的参数调用!

and

Notice: wp_register_script was called incorrectly. 注意:wp_register_script被错误地调用。 Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. 在wp_enqueue_scripts,admin_enqueue_scripts或init挂钩之前,不应注册或加入脚本和样式。

Any help is greatly appreciated 任何帮助是极大的赞赏

Possibly that error has always been there, but PHP on the old machine was set to not show errors at Notice level. 可能该错误一直存在,但旧机器上的PHP设置为不在通知级别显示错误。 Compare the values for error_reporting in php.ini on the two machines. 比较两台机器上php.ini中error_reporting的值。

It may also be that now you have display_errors set to on, whereas the old machine sent the to the log file, or didn't report them. 也可能是现在你将display_errors设置为on,而旧机器发送到日志文件,或者没有报告它们。

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

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