如何修复我在php 7更新wordpress时出现的问题

请帮助我修复。我已经将PHP 5.6更新为php7.3。但是WordPress网站无法正常运行。如你所见, 尽管有相同的代码和相同的数据库, 但新站点的以下页面仍无法正常工作。我已经根据StackOverflow的答案将”&new”替换为” new”。谢谢你给我答复。谢谢。


#1


Thanks.
I added some codes in the wp-config.php

ini_set('log_errors', 'On');
ini_set('display_errors', 'Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false); 
And I updated  the customLoop function in the PeThemeContent.php
public function customLoop($type, $count = 10, $tax = null, $custom = null, $paged = false) {
        $args = $this->getPostsQueryArgs($type, $count, $tax, $custom, $paged);
    if ($this->current) {
        $this->loops[] = $this->current;
    }
    $this->master->data->postSave();
    $this->current = new WP_Query($args);
    return $this->current->post_count > 0;
}

这样, 问题就解决了。

来源:

https://www.srcmini02.com/63320.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37649.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?