The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
High volume of PHP ...
 
Share:
Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!

Merry Christmas and Happy Holidays! πŸŽ„

Bug [Solved] High volume of PHP warnings from class.WpdiscuzCore.php on line 891

3 Posts
2 Users
1 Reactions
146 Views
Posts: 2
Topic starter
(@lillywp)
New Member
Joined: 3 weeks ago

Hello! We are observing a high volume of PHP warnings from wpDiscuz on a website that we support. Examples below:

 

PHP Warning: Undefined array key 38 in /srv/htdocs/wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php on line 891

PHP Warning: Undefined array key 11 in /srv/htdocs/wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php on line 891

PHP Warning: Undefined array key 122 in /srv/htdocs/wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php on line 891

 

The errors seem to be present on all posts that have comments. The more comments, the more warnings appear in the log. We did try using the Fix DB tables option as recommended in similar threads, to no avail.

We suspect this may be a problem with the way the plugin gets to the last comment on the list:

$commentListArgs["lastCommentIdInList"] = $commentList[$count - 1]->comment_ID;

 

It's assuming the total `$count` of comments `-1` will provide the ID of the last comment, but if a comment was deleted, the numbers will not match. Let us know if you observe the same.

Related, we noticed that `lastCommentIdInList` is used by the plugin to `setExtraCache()`. While we are not observing any significant performance issues on these pages, we question if performance may be impacted as a result of this.

Thanks, and let me know if we can provide any further details here.

Website URL

2 Replies
Asti
Posts: 8203
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Please update the wpDiscuz to the lates version and check again.


Reply
Posts: 2
Topic starter
(@lillywp)
New Member
Joined: 3 weeks ago

We have updated from 7.6.38 to 7.6.39 and that seems to have resolved it. We are no longer seeing the PHP warning messages in the logs. Thank you!


Reply
Share: