Getting the following error after upgrading to 1.5.3 see http://www.icologie.com/events/ for example
Got that same thing: "Warning: Creating default object from empty value in /homepages/16/d24182738/htdocs/wp-content/plugins/wp-calendar/fsCalendarEvent.php on line 69"
WP Calender 1.5.3
I also get this at the top of the calendar page
Warning: Creating default object from empty value in /homepages/32/d67215390/htdocs/icologie/wordpress/wp-content/plugins/wp-calendar/fsCalendarAdmin.php on line 367
WP Calendar 1.5.3
Would you have any advice on this. I'm going to have to go back to 1.4.
This is happening for me, too. The error is because $evt is expected to be an object, and my environment has php set "strict"
In fsCalendarEvent.php at line 69 is
$evt->eventid = 0;
I inserted a line above it to instantiate $evt as a class to fix it.
$evt = new stdClass(); $evt->eventid = 0;
It seems to work for me.
That got rid of the first error. But there still appears to be an error in fsCalendar.php.
Warning: date() expects parameter 2 to be long, string given in .../wordpress/wp-content/plugins/wp-calendar/fsCalendar.php on line 1291
Thank you for you help
Thanks wmgtam that line
$evt = new stdClass();
seemed to fix my problem with fsCalendarAdmin.php too.
it worked for me too.
I got the same problem after updating the PHP to 5.4 on the server
1and 1 fixed it I was referencing the php wrong in the .htaccess file posted code in other thread
Hi wmgtam, hi dsg257
at first, the definition of the new class $evt worked for me, too.
But as I also use the provider 1und1, I tried dsg257's solution thereafter.
The upgrade from PHP 5.2 to PHP 5.4 had obviously been the reason for WPcalendars misbehaviour.
You must log in to post.