Error: [May 31 12:54:11] Undefined offset: 7 (8) File: /home/…/wp-content/plugins/wordfence/lib/wordfenceScanner.php Line: 400
PHP ver. 7.4.33
]]>-1 in /home/avsaimin/public_html/wp-content/plugins/wp- fastest-cache/inc/js-utilities.php on line 67”
Is it known error or special for me? Any fix recomendation will be appreciated. Best regards!
]]>Notice – Notice: Undefined offset: 0 in /home/propeykb/public_html/wp-content/plugins/wpvr/wpvr.php on line 576
]]>Screenshot path : https://prntscr.com/21huy6i
How to resolve the above notice in WordPress? please help me.
If I remove this filter hook it does not display any notice.
add_filter('get_post_metadata', array(WPKWP::CLASS_NAME, 'get_post_metadata'), 0, 4);
Error message 1)
PHP Notice: Undefined offset: 1 in /www/htdocs/{…}/wp-content/plugins/ideapush/inc/functions/single-idea.php on line 208
Error message 2)
PHP Notice: Undefined offset: 1 in /www/htdocs/{…}/wp-content/plugins/ideapush/inc/shortcode/idea-list-items.php on line 43
Please support/provide a fix, many thanks in advance!
]]>When I have WP Debug on and review the debug.log, I found this.
PHP Notice: Undefined offset: 1 in /plugins/auction-nudge/inc/parameters.php on line 114
Maybe prior to that try to test
if (is_array($request_explode)) {...
Since updating to version 1.0.6, my wp-debug.log file is flooded with the following error:
PHP Notice: Undefined offset: 1 in /wp-content/plugins/remove-footer-credit/remove-footer-credit.php on line 214
I’m getting this error in one of my sites on a multi site.
Notice: Undefined offset: 0 in /eatsmart/wp-content/plugins/simple-custom-post-order/simple-custom-post-order.php on line 292
What could be causing it?
]]>Undefined offset: 3 in […]wordpress/wp-content/plugins/wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php on line 143
It seems that the problem is related to MySQL 8 and this query:
$sql = "
SELECT post_modified_gmt
FROM ( SELECT @rownum:=0 ) init
JOIN {$wpdb->posts} USE INDEX( type_status_date )
WHERE post_status IN ('" . implode( "','", $post_statuses ) . "')
AND post_type = %s
AND ( @rownum:=@rownum+1 ) %% %d = 0
ORDER BY post_modified_gmt ASC
";
MySQL is dropping a warning about it:
Warning: #1287 Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: ‘SET variable=expression, …’, or ‘SELECT expression(s) INTO variables(s)’.
This query does not work on MySQL 8 and should be probably be rewritten to something like this:
SET @row_number = 0;
SELECT post_modified_gmt FROM wp_2_posts WHERE post_status IN ('publish') AND post_type = 'page' AND ( @row_number:=@row_number+1) % 1000 = 0 ORDER BY post_modified_gmt ASC
Or consider rewriting it to using ROW_NUMBER() function on MySQL 8.
The result of this error is lack of last modified date next to the sitemap file, which negatively affects SEO, so this bug should be considered important. See screenshot here:
https://ibb.co/VSTybRL
Notice: Undefined index: required in /public_html/wp-content/plugins/codeless-framework/include/redux/loader/extensions/metaboxes/extension_metaboxes.php on line 309
Notice: Undefined index: single_portfolio_media in /public_html/wp-content/plugins/codeless-framework/include/redux/loader/extensions/metaboxes/extension_metaboxes.php on line 321
Notice: Undefined index: layout in /public_html/wp-content/plugins/codeless-framework/include/redux/loader/extensions/metaboxes/extension_metaboxes.php on line 321
Notice: Undefined offset: 2 in /public_html/wp-content/plugins/codeless-framework/include/redux/loader/extensions/metaboxes/extension_metaboxes.php on line 313
Could you help with some way,
send a rigth code to change or release a new version of plugin?
Best Regards
]]>