MAMP + Wordpress - 无法让本地网站正常运行

时间:2016-01-16 11:32:54

标签: php mysql wordpress localhost mamp

我已经安装了MAMP,并且正在尝试在我的计算机上运行Wordpress站点的本地开发版本。

我已经阅读了许多教程,解释了我需要在wp-config.php和数据库中进行更改但我无法让页面正常运行。

siteurl&数据库中的home字段已更新为http://localhost/,并且我已更新wp-config.php以用于db username&密码为root

我已设置WP_DEBUG: true以便我得到一些关于可能导致错误的内容的反馈,以下是我在尝试转到http://localhost/时得到的内容:< / p>

Fatal error: 
Uncaught Error: 
Call to undefined function mysql_error() in /Users/oldo/Desktop/Website Development/Clean Cut Concrete/mirror/public_html/cleancutconcrete.com/wp-content/plugins/revslider/inc_php/framework/db.class.php:29 
Stack trace: 
#0 /Users/oldo/Desktop/Website Development/Clean Cut Concrete/mirror/public_html/cleancutconcrete.com/wp-content/plugins/revslider/inc_php/framework/db.class.php(127): UniteDBRev->checkForErrors('fetch') 
#1 /Users/oldo/Desktop/Website Development/Clean Cut Concrete/mirror/public_html/cleancutconcrete.com/wp-content/plugins/revslider/inc_php/revslider_params.class.php(42): UniteDBRev->fetch('wp_revslider_se...') 
#2 /Users/oldo/Desktop/Website Development/Clean Cut Concrete/mirror/public_html/cleancutconcrete.com/wp-content/plugins/revslider/inc_php/revslider_operations.class.php(1275): RevSliderParams->getFieldFromDB('general') 
#3 /Users/oldo/Desktop/Website Development/Clean Cut Concrete/mirror/public_html/cleancutconcrete.com/wp-content/plugins/revslider/revslider_front.php(42) in /Users/oldo/Desktop/Website Development/Clean Cut Concrete/mirror/public_html/cleancutconcrete.com/wp-content/plugins/revslider/inc_php/framework/db.class.php on line 29

有人会就如何解决此问题提出建议吗?

1 个答案:

答案 0 :(得分:0)

Saqib Amin在上面的评论中回答了这个问题,但我想我也会在这里发布答案,以便明白这一点。正如我所指出的,{7}中删除了mysql_*函数,因此我将MAMP更改为使用PHP 5.6.10并且它现在正在工作。