admin管理员组文章数量:1130349
After installing PHP 7.2.10, the following error appeared:
PHP Error Backtrace Backtrace from warning 'Function create_function() is deprecated' at /var/www/site/data/www/site/wp-config.php 110:
/var/www/site/data/www/site/wp-load.php 37 calling require_once()
/var/www/site/data/www/site/wp-admin/admin.php 31 calling require_once()
/var/www/site/data/www/site/wp-admin/post.php 12 calling require_once()Total PHP Notices: 1 NOTICE: wp-config.php:110 - Function create_function() is deprecated
How can this problem be solved?
Perhaps this is due to the fact that create_function deprecated in php 7.2
Here is what I found in my topic:
public function __construct() {
$this->print_meta_box_content_callback = create_function( '$post,$args', 'echo $args["args"];' );
}
How do I fix my code so that it does not conflict with 7.2.0?
Thanks for your help
After installing PHP 7.2.10, the following error appeared:
PHP Error Backtrace Backtrace from warning 'Function create_function() is deprecated' at /var/www/site/data/www/site/wp-config.php 110:
/var/www/site/data/www/site/wp-load.php 37 calling require_once()
/var/www/site/data/www/site/wp-admin/admin.php 31 calling require_once()
/var/www/site/data/www/site/wp-admin/post.php 12 calling require_once()Total PHP Notices: 1 NOTICE: wp-config.php:110 - Function create_function() is deprecated
How can this problem be solved?
Perhaps this is due to the fact that create_function deprecated in php 7.2
Here is what I found in my topic:
public function __construct() {
$this->print_meta_box_content_callback = create_function( '$post,$args', 'echo $args["args"];' );
}
How do I fix my code so that it does not conflict with 7.2.0?
Thanks for your help
本文标签: PHP Error Backtracecreatefunction deprecated
版权声明:本文标题:PHP Error Backtracecreate_function deprecated 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749054584a2309143.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论