WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Event Calendar 3] 2.9.1 Fix (3 posts)

  1. Rightintwo
    Member
    Posted 4 years ago #

    Here's how to make the plugin work with wordpress ver. 2.9.1 -

    - download/extract to plugins directory

    - open "plugins/events calendar" file

    - find/open "eventcalendar3.php" in a text editor

    - Search in the document for "function ec3_filter_post_limits(&$....)"

    - Go through the file and remove the "&"/ampersand from the filter code sections to give "function ec3_filter_post_limits($....)", and save!

    - Open up wordpress, add calendar to page and load in browser - Works!

    Hope this helps those who have had problems with this plugin.

    More info:

    http://wpcal-archive.firetree.net/2009-July/005565.html

    http://wordpress.org/extend/plugins/event-calendar/

  2. groovyKimo
    Member
    Posted 4 years ago #

    This fix worked for me after upgrading to php 5.3. I got the errors:

    Warning: Parameter 1 to ec3_filter_posts_where() expected to be a reference, value given in /home/klangart/public_html/wordpress/wp-includes/plugin.php  on line 166
    
    Warning: Parameter 1 to ec3_filter_posts_join() expected to be a reference, value given in /home/klangart/public_html/wordpress/wp-includes/plugin.php on line 166
    
    Warning: Parameter 1 to ec3_filter_posts_groupby() expected to be a reference, value given in /home/klangart/public_html/wordpress/wp-includes/plugin.php on line 166
    
    Warning: Parameter 1 to ec3_filter_posts_fields() expected to be a reference, value given in /home/klangart/public_html/wordpress/wp-includes/plugin.php on line 166

    But I had to remove the "&" at this functions:

    function ec3_filter_the_content($post_content)
    
    function ec3_filter_posts_where($where)
    
    function ec3_filter_posts_join($join)
    
    function ec3_filter_posts_orderby($orderby)
    
    function ec3_filter_posts_groupby($groupby)
    
    function ec3_filter_posts_fields($fields)

    There are other filter functions with the same syntax, which I didn't change, because it seems to work so far...

    Thanks Rightintwo for the hint. "function ec3_filter_post_limits" doesn't exist in my "eventcalendar3.php".

  3. vinnyred
    Member
    Posted 3 years ago #

    @rightintwo - thanks for this fix. I'm using php v5.3.0 and as soon as I activated thge plugin and went to my posts page - I received the error. Although I only removed the ampersand from the lines where I was getting the errors. When viewing the posts page it highlighted the portions of the php file that were having problems. Don't know if this helps with anyone else.

    thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic