Support Forum

Error log filling up quickly

CH Charles
Charles
Member

I have a question about error log that has a lot of errors/warnings.

Here some that repeats often. How do I fix that? 

Thanks  Charles

October 12, 2012
5:01 am
php file: /simple-press/forum/database/sp-db-statistics.php
line: 163
function: sp_get_stats_counts
Warning | Creating default object from empty value
October 12, 2012
4:14 am
php file: /simple-press/forum/content/classes/sp-list-topic-class.php
line: 208
function: sp_listview_query
Warning | Creating default object from empty value

 

October 12, 2012
4:14 am
php file: /simple-press/forum/content/classes/sp-group-view-class.php
line: 314
function: sp_groupview_query
Warning | Creating default object from empty value
October 12, 2012
4:14 am
php file: /simple-press/forum/content/classes/sp-group-view-class.php
line: 268
function: sp_groupview_query
Warning | Creating default object from empty value
October 12, 2012
4:14 am
php file: /simple-press/forum/content/sp-common-view-functions.php
line: 417
function: sp_UserAvatar
Warning | Creating default object from empty value

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

Sorry, have responded to this numerous times elsewhere.

This is a new feature of php 5.4 that is generates the new warnings. They are NOT errors. PHP now wants new specific way of initializing objects. We are updating them as we go hoping to have them all updated in next release.

Key though is they are harmless.

JC Jean-Luc Castagner
Jean-Luc Castagner
Member

Hello,

These errors might be harmless but they show on the forum page. So it is not usable like this. What’s the fix for these warnings? 

Warning: Creating default object from empty value in C:xampphtdocso2-playerwp-contentpluginssimple-pressforumcontentsp-common-view-functions.phpon line 417

Warning: Creating default object from empty value in C:xampphtdocso2-playerwp-contentpluginssimple-pressforumcontentclassessp-group-view-class.phpon line 268

Warning: Creating default object from empty value in C:xampphtdocso2-playerwp-contentpluginssimple-pressforumcontentclassessp-group-view-class.phpon line 314

Thank you…

MP Mr Papa
Mr Papa
Member

only if you improperly have php warnings, notices and errors shown on production sites… definitely not recommend by php, security and other folks…

and as mentioned we are adjusting as we go to this new php 5.4 requirement…