Support

Home Forums Events Calendar Add-on Calendar disappeared on our homepage

Calendar disappeared on our homepage

Posted: January 9, 2014 at 10:53 am

Viewing 5 reply threads


Chris

January 9, 2014 at 10:53 am

Our calendar has been running on the homepage for nearly a year now. Today out of the blue it has disappeared. We did update two plugins yesterday and to rule those out I deactivated them. Neither proved to be the issue. The calendar is being called using do shortcode in the theme file. I did try and place it into one of the editable wysiwyg areas on the homepage and it didn’t work. The calendar shortcode does work on inside pages.

Other things I have tried are setting the show expired events to false and removed the show expired events portion all together. I also updated both event espresso and the event calendar plugins. Then deleted the event calendar plugin and redownloaded it from this site and uploaded it.

Please help. I’m not sure why it stopped working.

http://aiec.coop

I am also getting this error in my debug.log if it helps.

PHP Strict Standards: Only variables should be passed by reference in …/public_html/wp-content/plugins/espresso-calendar/espresso-calendar.php on line 703


Dean

January 9, 2014 at 11:30 am

Hi Chris,

Since we updated the calendar recently it has affected the use of the do_shortcode for the calendar in certain themes.

If you check out this documentation it explains what you will need to do (just a copy and paste of some code into the template) – https://eventespresso.com/wiki/calendar/#shortcode-page-template

If you need any further help, just let me know!


Chris

January 9, 2014 at 11:47 am

Thanks for the quick response Dean.
I copied and pasted

<code>&lt;?php
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
?&gt;</code>

just above my do_shortcode but it still isn’t working. When I view source I still just get:

<code>&lt;div id=&quot;espresso_calendar&quot; class=&quot;calendar_fullsize&quot;&gt;
		&lt;div id=&quot;ee-calendar-ajax-loader-dv&quot;&gt;
			&lt;img id=&quot;ee-calendar-ajax-loader-img&quot; class=&quot;ee-ajax-loader-img&quot; style=&quot;display:none;&quot; src=&quot;http://aiec.coop/wp-content/plugins/event-espresso/images/ajax-loader-large.gif&quot;&gt;
		&lt;/div&gt;
	&lt;/div&gt;
	&lt;div style=&quot;clear:both;&quot; &gt;&lt;/div&gt;
	&lt;div id=&quot;espresso_calendar_images&quot; &gt;&lt;/div&gt;        &lt;/div&gt;
    &lt;/div&gt;</code>


Chris

January 9, 2014 at 11:50 am

Sorry hopefully this code is readable

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
?>

<pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><div id="espresso_calendar" class="calendar_fullsize">
<div id="ee-calendar-ajax-loader-dv">

</div>
</div>
<div style="clear:both;" ></div>
<div id="espresso_calendar_images" ></div> </div>
</div>


Dean

January 9, 2014 at 11:56 am

Sorry, can you try adding the code snippet to above the get_header() function in the page template and see if that works?

That was mentioned in our internal ticket, so if that works I’ll get that document updated.


Chris

January 9, 2014 at 12:18 pm

Awesome that did it. Thank you so much for your quick and helpful response.

Viewing 5 reply threads

The support post ‘Calendar disappeared on our homepage’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso