我有一个Wordpress网站,产生致命错误:
致命错误:不能重新声明register_new_user()在/home/krasy56g/public_html/kola-maska.bg/wp-content/themes/kola-maska2/library/includes/registration.php线路104上
有人可以帮我解决这个问题吗?
您在代码中重新声明了两次名为“register_new_user”的函数 . 这是一个WordPress原生函数;
http://codex.wordpress.org/Function_Reference/register_new_user
因此,您可以将 wp-content/themes/kola-maska2/library/includes/registration.php 处的函数名称修改为其他名称 .
wp-content/themes/kola-maska2/library/includes/registration.php
1 回答
您在代码中重新声明了两次名为“register_new_user”的函数 . 这是一个WordPress原生函数;
http://codex.wordpress.org/Function_Reference/register_new_user
因此,您可以将
wp-content/themes/kola-maska2/library/includes/registration.php
处的函数名称修改为其他名称 .