[EventCalendar] Event Calendar PHP ERROR Warning: Parameter 1 to ec3_filter_posts_where()

Chris Janton face at CentosPrime.COM
Wed May 5 13:54:45 BST 2010


On 2010-05-04 , at 20:28 , Juan Pablo wrote:
> 
> Warning: Parameter 1 to ec3_filter_posts_fields() expected to be a
> reference, value given in www\wp-includes\plugin.php on line 166
> 
> 
> How can I fix this?

running PHP 5.3

In eventcalendar3.php change all of the "filter" function definitions to not declare "pass by reference". Make them look like the lines with "+" in front of them.

-function ec3_filter_getarchives_where(&$where)
+function ec3_filter_getarchives_where($where)

-function ec3_filter_getarchives_join(&$join)
+function ec3_filter_getarchives_join($join)

-function ec3_filter_get_archives_link(&$link_html)
+function ec3_filter_get_archives_link($link_html)

-function ec3_filter_posts_where(&$where)
+function ec3_filter_posts_where($where)

-function ec3_filter_posts_join(&$join)
+function ec3_filter_posts_join($join)

-function ec3_filter_posts_orderby(&$orderby)
+function ec3_filter_posts_orderby($orderby)

-function ec3_filter_posts_groupby(&$groupby)
+function ec3_filter_posts_groupby($groupby)

-function ec3_filter_posts_fields(&$fields)
+function ec3_filter_posts_fields($fields)

-function ec3_filter_post_limits(&$limits)
+function ec3_filter_post_limits($limits)

-function ec3_filter_the_content(&$post_content)
+function ec3_filter_the_content($post_content)

-function ec3_filter_the_content_bigcal(&$post_content)
+function ec3_filter_the_content_bigcal($post_content)

8)
----------------------------------
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM





More information about the EventCalendar mailing list