How can I fix: “Notice: Undefined offset: 0”?


I’m Starting a WordPress website and I’m having a problem with some of my posts.

This issue is only affecting 2 out of 4 articles and after investigating I cannot think on a reason for that.

This error message appears right below comments section:

Notice: Undefined offset: 0 in
/home/***/public_html/wp-includes/class-wp-query.php on line 3152

When I search for that line, I find this function:

enter image description here

I have search for this function in my WordPress code and I only found a few matches:

grep -r rewind_posts *
wp-content/themes/magazine/themify/themify-wp-filters.php:              rewind_posts();
wp-includes/class-wp-query.php:                 $this->rewind_posts();
wp-includes/class-wp-query.php: public function rewind_posts() {
wp-includes/feed-rdf.php:<?php rewind_posts(); while (have_posts()): the_post(); ?>
wp-includes/query.php:function rewind_posts() {
wp-includes/query.php:  $wp_query->rewind_posts();

Regarding these results, there are two different implementations of this rewind_post function in query.php and class-wp-query.php.

There are only two places where this function is invoked. I focus on the one related to the theme that is being used, themify-wp-filters.php, It is called from this function: function themify_404_template This does not say a lot, because I’m not viewing a 404 page.

I’m currently using Super Socializer plugin but I have not enabled the social commenting feature.

Any ideas?

, WarioNeila86 4 years 2020-03-25T12:51:04-05:00 0 Answers 185 views 0

Leave an answer