The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
High volume of PHP ...
 
Share:
Notifications
Clear all

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

3 Posts
2 Users
1 Reactions
199 Views
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lillywp)
New Member
Joined: 1 month ago
[#11122]

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: 8210
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

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


Reply
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lillywp)
New Member
Joined: 1 month 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: