首页 文章

警告:mysql_real_escape_string():对第152行的easy-contact-forms-database.php中的用户'root' @ 'localhost'(使用密码:NO)拒绝访问

提问于
浏览
3

我正在使用wordpress插件名称Easy Contact Forms . 问题是它显示警告,因为我无法登录我的管理面板 . 警告是:

Warning: mysql_real_escape_string(): Access denied for user 'root'@'localhost' (using password: NO) in /public_html/new/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152


Warning: mysql_real_escape_string(): A link to the server could not be established in /public_html/new/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

我搜索了这个问题,但没有找到任何解决方案 .

我希望你们能帮我解决这个问题 .

谢谢

1 回答

  • 1

    我遇到了类似的问题 . 我无法确定问题,但我能够将其缩小到我目前的主题和Easy Contact Form插件 . 这就是我所做的,它帮助了我:

    A)使用FTP访问您的服务器 . 找到安装wordpress的目录 . 如果您使用共享主机,很可能是在public_html / yoursite文件夹中

    B)转到wp-content / themes文件夹 . 将当前活动主题重命名为其他内容,例如“theme-backup-date” .

    C)转到wp-content / plugins /文件夹并将Easy contact Form Plugin重命名为其他内容 .

    D)转到yoursite / wp-admin / themes.php这将使网站恢复为默认主题,并至少省略与主题相关的错误 .

    E)现在您将能够登录您的wordpress管理面板 . 登录,然后删除不可用的插件(刚刚重命名的插件) .

    F)返回上面提到的主题文件夹(再次使用您的ftp客户端)并将其重命名为之前的版本 .

    C)如果仍然需要,请重新安装Contact Forms插件 .

相关问题