Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Forum doesn't work - "Creating default object from empty value in" warning with PHP 5.4 / WP 3.3.2
Avatar
Marcus Fleuti
Rookie
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 6:20 am

We're having the problem that simple:press throws a lot of warning messages (see screenshot). We're using PHP 5.4 with Wordpress 3.3.2.

The warning messages we can suppress by turning off the error reporting. But when we click on a forum to see its threads the following page is completly empty showing no error at all.

We already tried setting up Wordpress and the forum again from scratch with the same problems which leads to the assumption that the simple:press forum is not compatible with PHP 5.4?

Please community, help! 🙂

Best Regards
Marcus simplepress_error.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 9:00 am

Let's talk errors first. Do you have E_STRICT error reporting turned on. While I will not claim that there may be some things we ought to do for php5.4 - and I see some tickets raised on this issue against WP core as well - I was under the impression that those warnings would only be triggered if E_STRICT was turned on and if that is the case then it is never recommended for a production site.

Now as to why nothing displays then there could be various reasons for this but the most common is WP theme related where a theme is doing non-standard stuff or being 'clever'.

if you go to the forum admin > Integration > Page and Permalink panel there are some 'theme display' options for dealing with the WP loop and multiple display issues. Try turning those on one at a time to see if this brings up the display.

And I am looking into the need to declare an object to see if this is indeed standard php5.4 or just an E_STRICT issue.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Marcus Fleuti
Rookie
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 9:21 am

Hi Swordfish

Thank you very much for your swift reply on this. Actually I have enabled all errors using error_reporting(-1) to see if an error is thrown because no content is being generated when clicking on a forum.

Actually the theme we created ourselves and it works on our local host using PHP 5.2, WP 3.3.2 and the newest simple:press plugin.

We have setup yet another host with PHP 5.4 but we're running out of time today. We will try to setup it on this new host once more to see if we can make it work under 5.4. Also we'll try the tips you gave us. I'll report back tomorrow in the afternoon.

Thanks again!
Marcus 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 10:10 am

I will look forward to that. If those don't work at all then it is still usually something simple bit they are the best place to start.

andy-signature.png
YELLOW
SWORDFISH
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: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620