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

Question

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?

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/how-can-i-fix-notice-undefined-offset-0/">

How can I fix: "Notice: Undefined offset: 0"?</a>
0
, WarioNeila86 2 months 0 Answers 93 views 0

Leave an answer