Support

Home Forums Event Espresso Premium calendar not displaying

calendar not displaying

Posted: February 19, 2013 at 2:29 pm


christian nophsker

February 19, 2013 at 2:29 pm

Calendar is not displaying now for some reason:

http://www.corollawildhorses.com/test-tour-calendar/


Jonathan Wilson

February 19, 2013 at 3:04 pm

Hello Christian,

Can you make sure you are on current versions of the plugin and add-ons? Also, what changed since the calendar was working previously?


christian nophsker

February 19, 2013 at 3:15 pm

yes I am on current versions… I added additional events, deleted some old events …the calendar shortcode not displaying calendar now.. tried on several pages…


Jonathan Wilson

February 19, 2013 at 3:16 pm

You may have outdated template files in the wp-content/uploads/espresso/templates directory. You can test this by clicking the “Rename Templates Directory” button in Event Espresso > Template Settings. This can be undone via FTP is there is a problem.

You can start with fresh templates from the newer version. If you have made modifications to the earlier version’s templates, you can copy the modifications into the newer version’s templates. When you’re finished, you can copy the modified files into /wp-content/uploads/espresso/templates.

If you haven’t made any customizations, and you’re simply trying to update to the new version of Event Espresso, you can remove the templates from /wp-content/uploads/espresso/templates using FTP or your host’s control panel file manager.
Please see this article in the documentation for more info:

https://eventespresso.com/wiki/put-custom-templates/


christian nophsker

February 20, 2013 at 12:48 pm

1) I have not customized any templates.
2) – there is no button – “Rename Templates Directory”in Event Espresso > Template Settings
3) There are no files in my /wp-content/uploads/espresso/templates


Josh

  • Support Staff

February 21, 2013 at 8:12 am

Hi Christian,

It looks like the query limit is being hit for your server, it might be running out of memory too. This can happen if there are a large number of events.

Can you try changing the calendar shortcode to [ESPRESSO_CALENDAR show_expired=”false”]


christian nophsker

February 21, 2013 at 11:26 am

I adjusted the max php memory limit to 256mb … still not working.
This is frustrating. Is there an event limit?

Here is a copy of the system status:

Event Espresso version 3.1.30.7P
WordPress version WP 3.5.1
Installed plugins

Advanced Excerpt by Bas van Doren version 4.1.1,
Advanced Recent Posts Widget by Anthony Webbs version 1.1a,
BackupBuddy by Dustin Bolton version 3.1.8.2,
Display widgets by Strategy11 version 1.24,
Easy Theme and Plugin Upgrades by Chris Jean version 1.0.1,
Event Espresso - Calendar by Event Espresso version 2.0.4,
Event Espresso - Multi Event Registration by Seth Shoultes version 1.0.4,
Event Espresso - Recurring Events by Event Espresso version 1.1.7,
Event Espresso - Ticketing by Event Espresso version 2.0.9,
Event Espresso by Event Espresso version 3.1.30.7P,
The Events Calendar PRO by Modern Tribe, Inc. version 2.0.6,
Google Analytics for WordPress by Joost de Valk version 4.2.8,
LoopBuddy by iThemes version 1.3.10,
Network Publisher by linksalpha version 5.7.1,
NextGEN Gallery by Photocrati version 1.9.12,
Rotating Images by The PluginBuddy Team version 1.0.40,
SI CAPTCHA Anti-Spam by Mike Challis version 2.7.6.4,
iThemes Slideshow by iThemes version 2.0.7,
The Events Calendar by Modern Tribe, Inc. version 2.0.11,
White Label Branding for WordPress by Alberto Lau (RightHere LLC) version 3.0.5 rev26174,
WooCommerce by WooThemes version 1.6.6,
WordPress SEO by Joost de Valk version 1.3.4.4,
WP Google Fonts by Adrian Hanft, Aaron Brown version v3.0.1

Settings
Home URL http://www.corollawildhorses.com
Site URL http://www.corollawildhorses.com
Registration Pages
Event Page #772 – http://www.corollawildhorses.com/event-registration/
Payment/Thank You Page #773 – http://www.corollawildhorses.com/thank-you/
Transaction Notification Page #775 – http://www.corollawildhorses.com/transactions/
Cancel Return Page #774 – http://www.corollawildhorses.com/registration-cancelled/
Server Environment
PHP Version 5.2.17
Server Software Apache
WP Max Upload Size 64MB
Server upload_max_filesize 64MB
Server post_max_size 64MB
WP Memory Limit 256MB
WP Debug Mode No
Espresso Logging Log directory is writable.
PHP Sessions
Session save path /tmp is writable.
Session name PHPSESSID
Remote Posting/IPN
fsockopen/cURL Your server has fsockopen and cURL enabled.


Josh

  • Support Staff

February 21, 2013 at 11:47 am

Any limits would be set by your server. Have you tried changing the shortcode to:

[ESPRESSO_CALENDAR show_expired=”false”]


christian nophsker

February 25, 2013 at 10:37 am

  • Yes i treied the short code.

I have verified that it is not a memory issue or sql limit issue on the server.

No php error codes.

I have tried variations of the short code on this page and others.


Josh

  • Support Staff

February 25, 2013 at 10:48 am

Hi Christian,

If you set the WP memory limit to 256MB, your host’s setting will “win” if they’ve set it lower. It appears that this is happening because if you view the source of your calendar page you’ll see this information in the footer:

<!-- 839 queries in 1.982 seconds, using 63.62MB memory -->

We are working on adding a feature that will limit the number of queries that the calendar page uses. You could try this out on your site by changing the SQL on line 259 of the current calendar add-on’s espresso-calendar.php to:

$sql .= " GROUP BY e.id ORDER BY e.start_date = '0000-00-00' ASC LIMIT 100 ";

You might need to adjust the limit up or down.


christian nophsker

February 26, 2013 at 11:31 am

Hey Josh,

I bumped up the ASC and maxed out at 256 .. this will display the calendar but not all the events .

here is the footer query note:

!– 340 queries in 3.871 seconds, using 54.88MB memory –>

so currently I have 778 “events in the calendar… only 2/3 showing now…

Here is the deal… basically your “multiiple time” feature is not working as advertised and thus I have to create separate events for time slots to be albe to manage tickets properly…because the cart does not accurately deduct tickets.. so it is forcing me to rig up this mess creating all these extra events ..

see this topic for reference :
https://eventespresso.com/topic/tickets-not-deducting-from-time-slots-when-attendees-added/

Why am I paying for a premium plug-in and add-ons that don’t work ?

I do appreciate your help and would like to get this plug-in working the way it should be.


Sidney Harrell

February 26, 2013 at 3:37 pm

Are you using the color events on the calendar by categories feature?

If not, you can comment out from line 273 to 285 in espresso-calendar.php. That should greatly reduce the number of queries.


christian nophsker

February 27, 2013 at 10:32 am

I did that Sidney… it reduced query’s :

But still is not displaying my “1:00 Tour Times” event series


Josh

  • Support Staff

February 28, 2013 at 8:20 am

Hi Christian,

Have you tried raising the query limit on line 259 of espresso-calendar.php? You might even try reverting that back now that you’ve been able to reduce the queries with Sidney’s help.


christian nophsker

March 4, 2013 at 12:31 pm

Look , I have changed the asc limit whatever that is to :
$sql .= ” GROUP BY e.id ORDER BY e.start_date = ‘0000-00-00’ ASC LIMIT 256 “;
256 is the max I can set this at ..any higher and the calendar doesnt show, and if i set it lower it shows less events. It still isn’t showing all my events at the 256 .
Why is this so complicated? I am just trying to display 3 events , 6 days a week from MArch -Dec 2013?

How can this be so complicated?


Josh

  • Support Staff

March 4, 2013 at 1:30 pm

HI Christian,

From what I’m looking at, your server is hitting a limit when it tries to pull all the events in the system before it displays the calendar. So when it hits the limit, the calendar does not display.

By reducing the number of queries, we were able to help you make the calendar to display. Since you require to display more events than what appears to be within the limits of your server, I can recommend upgrading the server.

Alternatively, you could assign the afternoon events to a separate category and display only those events on a second calendar page by using the calendar’s category shortcode parameter like this:

[ESPRESSO_CALENDAR event_category_id=”afternoon_events_category_ID”]


christian nophsker

March 4, 2013 at 3:05 pm

I have now verified this 2 x’s .. THERE IS NO QUERY LIMIT ON MY SERVER! I have checked with my hosting company . There are no limits… no error messages.

the source code verifies it is only !– 78 queries in 3.757 seconds, using 57.44MB memory –> ….. so this does not add up. .

can you please provide a real solution.?


Josh

  • Support Staff

March 4, 2013 at 4:33 pm

Hi Christian,

Is there a memory limit on your server? This has come up before in this thread where you mentioned that you raised the WP memory limit to 256MB, but can you confirm that this is what you are actually getting? Is your host limiting the memory to 64MB? More queries will use more memory.

When you change line 259 of espresso-calendar.php to:

$sql .= " GROUP BY e.id ORDER BY date(start_date), id ASC";

what is the memory usage output in the footer’s source code? Is it above or below 64MB?


christian nophsker

March 5, 2013 at 9:20 am

below:
!– 78 queries in 46.357 seconds, using 57.44MB memory –>
the php.ini file =
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30
max_input_time = 60
memory_limit = 256M
–so i have confirmed that there is 256mb of memory …


christian nophsker

March 5, 2013 at 9:38 am

is there a way that i can have people register for events and select event dates/times without needing the calendar to display ?


Josh

  • Support Staff

March 5, 2013 at 10:50 am

Hi Christian,

The php.ini can be overridden by the host, just one thing to be aware of.

The [EVENT_LIST] shortcode will display a list of events that can be selected, as well as the shortcodes/table templates that are included with the custom files add-on.


christian nophsker

March 5, 2013 at 11:02 am

Josh, do i need to purchase premium support to get this working? I have confirmed the hosting requirements so this is not getting resolved .

I just want to have 3 tour times daily for people to register for… don’t care about calendar ,etc… just need to register for available time slots


Josh

  • Support Staff

March 5, 2013 at 2:18 pm

Hi Christian,

When you purchase a priority support token, we make it a priority to answer your questions sooner before other support requests. I will continue to try to help you either way.

Back to the calendar issue: I think it’s worth trying to comment out a few more code blocks. Sidney had earlier suggested commenting out the colors feature:

https://eventespresso.com/topic/calendar-not-displaying-2/#post-37287

which is 273-285 in espresso-calendar.php.

I will also suggest commenting any/all of the following to reduce the load of the calendar:

descriptions: lines 347-359

thumbnail images: 376-386

custom fields: 387-401

The support post ‘calendar not displaying’ 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