Support

Home Forums Community Forum [ESPRESSO_CALENDAR] not working. "Uncaught SyntaxError: Unexpected identifier"

[ESPRESSO_CALENDAR] not working. "Uncaught SyntaxError: Unexpected identifier"

Posted: December 5, 2013 at 9:47 am


achidwick

December 5, 2013 at 9:47 am

Console error i am getting is this:
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

hope that helps. Please advise! Thanks you!


Josh

  • Support Staff

December 5, 2013 at 10:08 am

Can you try a different WordPress theme so we can rule out whether it’s a theme issue?


achidwick

December 5, 2013 at 10:46 am

this is a live site… i would rather not. It has worked on this theme. It was working right up until we updated to the newest version of wordpress.

http://chidwickschool.com/classes/

is where the calendar is not working.


achidwick

December 5, 2013 at 11:02 am

This is the theme we are using.
http://themeforest.net/item/udesign-wordpress-theme/253220?WT.ac=category_thumb&WT.seg_1=category_thumb&WT.z_author=internq7


Josh

  • Support Staff

December 5, 2013 at 11:37 am

You can switch theme’s as the admin and not affect the look of the site by using the theme test drive plugin


achidwick

December 5, 2013 at 11:50 am

Thanks for that. Nifty tool.
And no, it did not work with the basic 2013 Theme.


Seth Shoultes

  • Support Staff

December 5, 2013 at 11:54 am

I am getting this error when visiting this page (http://chidwickschool.com/classes/):

Error: SyntaxError: missing } after property list
Source File: http://chidwickschool.com/classes/
Line: 435, Column: 60
Source Code:

Kind of a strange error. Maybe try removing any html or images you may have in your event descriptions.


achidwick

December 5, 2013 at 2:35 pm

stripped most of the html out of the events. specifically the one you mentioned above. Nothing yet.


achidwick

December 5, 2013 at 2:56 pm

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

again… this is the error i am seeing. thoughts on this?


Josh

  • Support Staff

December 5, 2013 at 2:59 pm

That’s not causing the issue. I went ahead and stripped some of the presentational html from your event’s descriptions and the calendar loads up now as expected within this JS fiddle:

http://jsfiddle.net/joshfeck/RjSm4/

I can’t say for sure which event had the malformed HTML, but it was one of them.


achidwick

December 5, 2013 at 3:28 pm

Thanks for your help. The HTML looked fine, as we looked at it through NetBeans, but alas… We deleted all images and shortcodes from another plugin through the Event Descriptions and all is well again.

Thanks Josh, Thanks Seth.

The support post ‘[ESPRESSO_CALENDAR] not working. "Uncaught SyntaxError: Unexpected identifier"’ 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