Support Forum
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 |
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.
Visit Cruise Talk Central and Mr Papa's World
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...
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...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)