相关疑难解决方法(0)

来自WPEngine备份的WordPress项目中的PHP解析错误

我继承了一个Wordpress项目,我正在尝试设置它.我没有Wordpress的经验,也可能说我没有PHP经验.到目前为止,我已经设法在我的本地机器上设置了环境,但是我仍然遇到PHP解析错误,我无法通过Google搜索找到解决方案.我想至少让我的机器上运行现有的项目.

当我在本地打开我的网站时,我被重定向到$ ROOT/wp-admin/install.php,我在apache error_log中收到此错误:

[Wed Oct 22 22:32:42 2014] [error] [client ::1] PHP Parse error:  parse error in /path/to/project/wp-content/mu-plugins/wpengine-common/plugin.php on line 788
Run Code Online (Sandbox Code Playgroud)

788号线是

    public function disable_indiv_plugin_update_notices( $value ) {
Run Code Online (Sandbox Code Playgroud)

而周围的代码是

function wpengine_credits() {

        if ( get_option( 'stylesheet' ) != 'twentyeleven' && get_option( 'template' ) != 'twentyeleven' )
        return false;

    if ( !defined('WPE_FOOTER_HTML') OR !WPE_FOOTER_HTML OR $this->already_emitted_powered_by == true )
        return false;

    //to prevent repeating
    $this->already_emitted_powered_by = true; ?>
        <div id="site-host">
                WP Engine <a href="http://wpengine.com" title="<?php esc_attr_e( 'Managed WordPress Hosting', 'wpengine' …
Run Code Online (Sandbox Code Playgroud)

php wordpress

3
推荐指数
1
解决办法
2265
查看次数

标签 统计

php ×1

wordpress ×1