Support

Home Forums Events Calendar Add-on Calendar not working (169)

Calendar not working (169)

Posted: May 1, 2013 at 3:41 am

Viewing 6 reply threads


Paul Muszanskyj

May 1, 2013 at 3:41 am

I’ve just purchased this plugin, but it doesn’t seem to be working.  I’m also new to WordPress  so this maybe something I’ve misunderstood.

I’ve created the calendar page, and have pasted in the shortcode, but nothing appears.  Can you help?  I’ve persuaded a client to pay for this so really have to get it sorted out.

WP version 3.5.1,  Event Espresso 3.1.30.7P

Calendar page: http://www.empathydesign.co.uk/development/calendar/

REMOVED BY ADMIN

  • This topic was modified 11 years, 7 months ago by Dean. Reason: Post edited to remove login details


Dean

May 1, 2013 at 6:09 am

Hi,

There seems to be a few issues here.

First off is a jQuery error which is likely stopping the calendar from loading.

This is being caused because your theme is wrapping the calendars script in paragraph tags. IF the the theme supports it, you could try adding raw tags to the shortcode like so [raw][ESPRESSO_CALENDAR][/raw].

Other wise you will need to review the functions-php or relevant files to find the function causing it. It is most likely to be a function similar to this http://www.wprecipes.com/disable-wordpress-automatic-formatting-on-posts-using-a-shortcode

After that are two errors which are due to the scripts not being found, the url’s look wrong, for example http://www.empathydesign.co.uk/development/wp-content/plugins/espresso-calendar/scripts/fullcalendar.min.js?ver=3.5.1

unless of course the site is in a subdomain?

Thirdly your themes js has an Uncaught ReferenceError: myPlaylist is not defined error in the /js/jquery.custom.js file.


Paul Muszanskyj

May 1, 2013 at 7:20 am

Thanks very much for replying, but I’m not sure how to deal with your suggestions.

I’ve tried the raw tags, but no help.

I’ve looked at the page about the functions-php file – it suggests using the following code:
function my_formatter($content) {
$new_content = '';
$pattern_full = '{(\[raw\].*?\[/raw\])}is';
$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
$pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

foreach ($pieces as $piece) {
if (preg_match($pattern_contents, $piece, $matches)) {
$new_content .= $matches[1];
} else {
$new_content .= wptexturize(wpautop($piece));
}
}

return $new_content;
}

remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');

add_filter('the_content', 'my_formatter', 99);

Is this correct? Should I use it? Yesterday I tried adding some code I found on these forums to the functions-php file and it completely broke the site.

The site is not in a subdomain – shouldn't the plugin put the scripts into the correct place automatically? How do I change it?

I also have no idea what an Uncaught Reference Error is or how to fix it. I'm not using My Playlist.

Can you help? This all seems really complicated,

Thanks


Dean

May 1, 2013 at 8:26 am

Hi,

Javascript/jQuery errors are often a pain.

The code, it isnt a case of using it, its a case of seeing if your theme has similar code and telling the theme to stop using it.

The site is not in a subdomain – shouldn’t the plugin put the scripts into the correct place automatically? How do I change it?

Yes they should which is strange as to why it isnt.

I also have no idea what an Uncaught Reference Error is or how to fix it. I’m not using My Playlist.

My apologies for not explaining this, basically the theme has some jQuery that is trying to do something but because there is a variable that hasnt been set it is throwing an error. Really there should be a check in there to stop that happening so Im not 100% sure if anything can be done with it right now except referring to the theme developer. I would need to look closer at the issue.

I can have a closer look if you can provide login details, but may have to refer you to fixes/the theme author depending on what I find.

Also if another team member cannot get to it, it will be tomorrow before I can (I work EU timezone).

If that is ok, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


Dean

May 3, 2013 at 12:03 am

This was resolved via email. Resolving the thread.


Dean

May 3, 2013 at 12:04 am

Oh for future readers, the scripts folder of the calendar plugin was missing files, reason unknown. Adding the files back resolved the error.


Paul Muszanskyj

May 3, 2013 at 1:13 am

Thanks very much for your help with this

Viewing 6 reply threads

The support post ‘Calendar not working (169)’ 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