[EventCalendar] problem using plug-in with Thesis

Doug Reese doug at prodevhost.com
Tue Oct 5 02:27:27 BST 2010


In current versions of PHP all variables are passed by reference by default.
 They were not in older versions of PHP, and explicitly passing variable by
reference can be desirable for a couple different reasons.  It was very
common to explicitly pass values by reference in the "old days," but that
syntax is now invalid.

Doug

On Mon, Oct 4, 2010 at 4:32 PM, Rebecca Carrer <rebecca at carreroffice.com>wrote:

> Thank you Psyko Duck for pointing me to the solution. It's simple and it
> works. Would like to understand why EC used reference variables for those
> filters, and why it's a problem with PHP 5.3.3... so if anyone has anymore
> insight...
>
> Hi Robin. I'm new to Thesis too.
>
>
> -----Original Message-----
> From: eventcalendar-bounces at firetree.net
> [mailto:eventcalendar-bounces at firetree.net] On Behalf Of
> eventcalendar-request at firetree.net
> Sent: Monday, October 04, 2010 12:46 PM
> To: eventcalendar at firetree.net
> Subject: EventCalendar Digest, Vol 59, Issue 2
>
> Send EventCalendar mailing list submissions to
>        eventcalendar at firetree.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
> or, via email, send a message with subject or body 'help' to
>        eventcalendar-request at firetree.net
>
> You can reach the person managing the list at
>        eventcalendar-owner at firetree.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of EventCalendar digest..."
>
>
> Today's Topics:
>
>   1. Re: problem using plug-in with Thesis (Psyko Duck)
>   2. Re: problem using plug-in with Thesis (Robin Hill)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 4 Oct 2010 14:15:51 +0200
> From: Psyko Duck <juliensagne at hotmail.com>
> Subject: Re: [EventCalendar] problem using plug-in with Thesis
> To: <eventcalendar at firetree.net>
> Message-ID: <SNT139-w383ABD7A79E0D4FC948426A06C0 at phx.gbl>
> Content-Type: text/plain; charset="windows-1252"
>
>
> Hi !
> Check this :
> http://wordpress.org/support/topic/php53-and-fastcgi-on-iis-with-wordpress
>
>
> From: rebecca at carreroffice.com
> To: eventcalendar at firetree.net
> Date: Sat, 2 Oct 2010 13:27:38 -0700
> Subject: [EventCalendar] problem using plug-in with Thesis
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi.
>
> Sorry if this is a repeat. I noticed a similar post from
> Jonathan Mao, but couldn't see if there had been any reply.
>
> (Note, I'm using the most recent versions of Thesis,
> Wordpress and WAMP Server. Am not a programmer, but have some PHP
> experience.
> New to applying it to Wordpress/Thesis customization.)
>
> Getting error messages about args when I activate this
> plug-in.
>
> Warning: Parameter 1 to
> ec3_filter_posts_where() expected to be a reference, value given in
> C:\wamp\www\jtBlog\wp-includes\plugin.php
> on line 220
>
>
>
> Warning: Parameter 1 to ec3_filter_posts_join() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
>
>
> Warning: Parameter 1 to ec3_filter_posts_groupby() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
>
>
> Warning: Parameter 1 to ec3_filter_posts_fields() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
>
>
> This is line 220 in the Thesis plugin.php file, which I have
> not altered.
>
> $args[0] =
> call_user_func_array($the_['function'], array_slice($args, 0, (int)
> $the_['accepted_args']));
>
>
>
> In addition, after activation, I can't open up my Pages
> panel anymore.
>
>
>
> What I'm trying to do is use a Thesis custom template for an
> Events page, which would contain an EventsCalendar-generated listing of
> events
> in the main content and a 3-month EventsCalendar Widget in the sidebar. I
> tried
> removing the <div class="post_box top" id="post-3494">
> from the code below (3494 is the page ID generated by Thesis for my About
> page), but that doesn't seem to make a difference. Obviously there's
> something
> I don't understand about how the pages and posts are interacting with
> EventsCalendar. In fact, I'm confused by what the role of your Event
> category setting is ("Event
> posts are put into this category for you. Don?t make this your default
> post category."). On my Events Page I want a list of only posts from the
> Posts
> category Event; On the Home Page want Events Posts to appear along with all
> the
> other posts in the normal chronological manner.
>
>
>
> Here's the template I've written:
>
>
>
> function events_custom_template()
>
> {
>
>               if(is_page('Events'))
>
>               {
>
>               ?>
>
>                              <div
> id="content">
>
>                              <div
> class="post_box top" id="post-3494">
>
>                              <div
> class="headline_area">
>
>                              <h1
> class="pagetitle"><?php the_title() ?></h1>
>
>                              </div>
>
>                              <div
> class="format_text">
>
>                              <?php
> the_content() ?>
>
>                              </div>
>
>                              </div>
>
>                              </div>
>
>                              <div
> id="sidebars">
>
>                              <div
> id="sidebar_5" class="sidebar">
>
>                              <ul
> class="sidebar_list">
>
>                              <?php
> thesis_default_widget(5); ?>
>
>                              </ul>
>
>                              </div>
>
>                              </div>
>
>                              <?php
>
>                              }
>
> }
>
>
>
> Thanks for any help you can provide.
>
> /becca
>
>
>
>
>
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <
> http://penguin.firetree.net/pipermail/eventcalendar/attachments/20101004/79
> 055a2d/attachment-0001.htm>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 4 Oct 2010 13:45:35 -0600
> From: "Robin Hill" <rhill at project127.com>
> Subject: Re: [EventCalendar] problem using plug-in with Thesis
> To: "Support for EventCalendar plugin" <eventcalendar at firetree.net>
> Message-ID:
>
> <9D6AF7E1C4DE614B978C40689EC34DF502871FC7 at webmail.coloradocommunity.org>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Rebecca!
>
>
>
> I am new to EventCalendar, so I am unable to assist.
>
>
>
> Robin
>
>
>
> From: eventcalendar-bounces at firetree.net
> [mailto:eventcalendar-bounces at firetree.net] On Behalf Of Rebecca Carrer
> Sent: Saturday, October 02, 2010 2:28 PM
> To: eventcalendar at firetree.net
> Subject: [EventCalendar] problem using plug-in with Thesis
>
>
>
> Hi.
>
> Sorry if this is a repeat. I noticed a similar post from Jonathan Mao,
> but couldn't see if there had been any reply.
>
> (Note, I'm using the most recent versions of Thesis, Wordpress and WAMP
> Server. Am not a programmer, but have some PHP experience. New to
> applying it to Wordpress/Thesis customization.)
>
> Getting error messages about args when I activate this plug-in.
>
> Warning: Parameter 1 to ec3_filter_posts_where() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
> Warning: Parameter 1 to ec3_filter_posts_join() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
> Warning: Parameter 1 to ec3_filter_posts_groupby() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
> Warning: Parameter 1 to ec3_filter_posts_fields() expected to be a
> reference, value given in C:\wamp\www\jtBlog\wp-includes\plugin.php on
> line 220
>
>
>
> This is line 220 in the Thesis plugin.php file, which I have not
> altered.
>
> $args[0] = call_user_func_array($the_['function'], array_slice($args, 0,
> (int) $the_['accepted_args']));
>
>
>
> In addition, after activation, I can't open up my Pages panel anymore.
>
>
>
> What I'm trying to do is use a Thesis custom template for an Events
> page, which would contain an EventsCalendar-generated listing of events
> in the main content and a 3-month EventsCalendar Widget in the sidebar.
> I tried removing the <div class="post_box top" id="post-3494"> from the
> code below (3494 is the page ID generated by Thesis for my About page),
> but that doesn't seem to make a difference. Obviously there's something
> I don't understand about how the pages and posts are interacting with
> EventsCalendar. In fact, I'm confused by what the role of your Event
> category setting is ("Event posts are put into this category for you.
> Don't make this your default post category."). On my Events Page I want
> a list of only posts from the Posts category Event; On the Home Page
> want Events Posts to appear along with all the other posts in the normal
> chronological manner.
>
>
>
> Here's the template I've written:
>
>
>
> function events_custom_template()
>
> {
>
>               if(is_page('Events'))
>
>               {
>
>               ?>
>
>                              <div id="content">
>
>                              <div class="post_box top" id="post-3494">
>
>                              <div class="headline_area">
>
>                              <h1 class="pagetitle"><?php the_title()
> ?></h1>
>
>                              </div>
>
>                              <div class="format_text">
>
>                              <?php the_content() ?>
>
>                              </div>
>
>                              </div>
>
>                              </div>
>
>                              <div id="sidebars">
>
>                              <div id="sidebar_5" class="sidebar">
>
>                              <ul class="sidebar_list">
>
>                              <?php thesis_default_widget(5); ?>
>
>                              </ul>
>
>                              </div>
>
>                              </div>
>
>                              <?php
>
>                              }
>
> }
>
>
> Thanks for any help you can provide.
>
> /becca
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <
> http://penguin.firetree.net/pipermail/eventcalendar/attachments/20101004/73
> 157f07/attachment.htm>
>
> ------------------------------
>
> _______________________________________________
> EventCalendar mailing list
> EventCalendar at firetree.net
> http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
>
>
> End of EventCalendar Digest, Vol 59, Issue 2
> ********************************************
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://penguin.firetree.net/pipermail/eventcalendar/attachments/20101004/66d59665/attachment-0001.htm>


More information about the EventCalendar mailing list