WordPress Robin theme bug record

More classified articles:

Website Construction | Python | Linux | Big Data | Database | Git | Nodejs | Golang | Computer Skills | Computer Technology

1. Home slide problem

The following problems occur when opening the homepage of the website, all thumbnails are not displayed, and some page effects are invalid, as shown below.

 

WordPress Robin theme bug record

Check browser errors:

 

WordPress Robin theme bug record

Related topics under owl.js

err shows that the last line is positioned on the homepage slide, and it is normal after closing the slide.

After checking, it was found that a picture added by a slide was missing. . This is an error, because the theme must require more than two slides to avoid errors.

2.GET 404 problem

The error is as follows

 

WordPress Robin theme bug record

It should be a reference to the external chain, but the external chain domain name has not been added to the timthumb-config.php under the subject directory of /www/....../begin

// 添加外链图片地址域名
if(! isset($ALLOWED_SITES)){
	$ALLOWED_SITES = array (
		's0.wordpress.com',
		'ww1.sinaimg.cn',
		'ww2.sinaimg.cn',
		'ww3.sinaimg.cn',
		'ww4.sinaimg.cn',
		'wx1.sinaimg.cn',
		'wx2.sinaimg.cn',
		'wx3.sinaimg.cn',
		'wx4.sinaimg.cn',
		'n.sinaimg.cn',
		's2.ax1x.com',
		'wx2.sbimg.cn',
		'wx1.sbimg.cn',
		'xxxxxxxxxxx',
	);
}

According to the display size, it should be a classified cover picture. Go to "Theme Settings" and turn off "Classified Cover" to solve it.

3.post 500 problem

jquery.min.js?ver=1.10.1:4 POST https://xxx/wp-admin/admin-ajax.php 500

 

WordPress Robin theme bug record

Check the nginx error log: /www/wwwlogs path, the error is as follows.

PHP message: PHP Fatal error: Uncaught Error: Call to undefined function cat_cover_url

2020/09/10 18:05:56 [error] 20136#0: *32900 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function cat_cover_url() in /www/....../begin/inc/section.php:583
Stack trace:
#0 /www/....../begin/inc/shortcode.php(543): nav_cat()
#1 /www/....../wp-includes/shortcodes.php(343): nav_cat_shortcode()
  thrown in /www/....../begin/inc/section.php on line 583" while reading response header from upstream, client: 128.71.31.126, server: wanghaoyi.com, request: "POST /wp-admin/admin-ajax.php HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-74.sock:", host: "wanghaoyi.com"

Solution: Turn off the unused "Menu Graphic" and "Menu Classification" functions in the background.

Deprecated: Array and string offset access syntax with curly braces is deprecated

Open the debug mode of wordpress and see the following error:

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/www.wanghaoyi.com/wp-content/themes/begin/inc/letter-series.php on line 9
 
Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/www.wanghaoyi.com/wp-content/themes/begin/inc/letter-series.php on line 9
 
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /www/wwwroot/www.wanghaoyi.com/wp-content/plugins/crayon-syntax-highlighter-2.8.6/util/crayon_util.class.php on line 73
Notice: Undefined index: night in /www/wwwroot/www.wanghaoyi.com/wp-content/themes/begin/inc/inc.php on line 1437
class="home blog logged-in " ontouchstart="">

This is because PHP7.4 no longer supports the use of curly braces to access arrays and string offsets, that is, PHP7.4 does not support array {} writing, unified as array [].


Original link: BUG record of wordpress robin theme

Guess you like

Origin blog.csdn.net/JonasErosonAtsea/article/details/109236226