[EventCalendar] big calendar error

Matthew Middleton mailinglists at zzxc.net
Mon Dec 10 15:46:17 UTC 2007


Thanks for pointing this out - I need to do more
testing to make sure that my patch doesn't break
support on systems that the plugin supports. 
(Multiple PHP, MySQL, and WordPress versions)

I'm guessing the problem is that you are using PHP4,
which I haven't yet tested this patch with.  PHP4
handles objects and pointers differently than PHP5, so
I will need to correct this code so that it works in
both versions.

In this case, I am using a foreach statement to set
the address of a variable, in order to copy a defined
object.  To be compatible with PHP4, I should be using
a traditional loop rather than a foreach for this
purpose, avoiding the object copying completely.

Until I have time to update this patch, the best
workaround is to simply use PHP5, if you can.  PHP5
offers improved security, faster execution speeds, and
compatibility with future applications.  Support for
PHP4 will be dropped when PHP6 is released sometime in
2008, so most people should be upgraded to PHP5 by
then.

I am also working on recurring event support, which I
will hopefully have ready soon.  This will allow you
to set one event to repeat itself every week, for
example.

-Matthew Middleton


--- admin at vancouverfolk.com wrote:

> 
> i replaced my eventcalendar3 folder with the one in
> patch 5 and i got 
> the following error:
> 
> Parse error: syntax error, unexpected '&', expecting
> T_VARIABLE or 
> '$' in 
>
/home/site/public_html/folder/wp-content/plugins/eventcalendar3/eventcalendar3.php
> 
> on line 353
> 
> when i tried to open the URL.
> 
> i'm using WP 2.3.1 and EC 3.1.1._rc3
> 
> simon >
_______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe:
> http://penguin.firetree.net/eventcalendar
> 






More information about the EventCalendar mailing list