Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Error log filling up quickly
Avatar
Charles
Member
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2012 - 3:41 pm

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
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2012 - 4:48 pm

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.

Avatar
Jean-Luc Castagner
Rookie
Free Members
sp_UserOfflineSmall Offline
Oct 13, 2012 - 8:47 am

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:\xampp\htdocs\o2-player\wp-content\plugins\simple-press\forum\content\sp-common-view-functions.phpon line 417

Warning: Creating default object from empty value in C:\xampp\htdocs\o2-player\wp-content\plugins\simple-press\forum\content\classes\sp-group-view-class.phpon line 268

Warning: Creating default object from empty value in C:\xampp\htdocs\o2-player\wp-content\plugins\simple-press\forum\content\classes\sp-group-view-class.phpon line 314

Thank you...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 13, 2012 - 9:38 am

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625