Viewing 13 replies - 1 through 13 (of 13 total)
  • Sounds like you have a plugin clash in your installation. If you disable all plugins except for EM, are the problems resolved?

    Thread Starter h-ball.com

    (@h-ballcom)

    That’s where I’m at. I disable all, and upon reactivation one by one, have identified EM as the one causing the clash. Seems to be breaking the ajax functions of the wp core.

    Thread Starter h-ball.com

    (@h-ballcom)

    So the Events Manager is overwriting a few .js files in the head (apparently). I’ve narrowed it down to a jquery version that is being overwritten (apparently) and a CDATA block that is referencing the wp core ajax.

    Bad Events Manager. No. No.

    Anyone know where in the Event Manager plugin these script tags and the CDATA block that are being written to wp_head(); are being housed? I’ve looked through a few files for the CDATA, and nothing found so far.

    This happened after updating the site to wp 3.5.1

    is it the same when you use default twenty twelve theme? or can you try to turn-on WP_DEBUG or check your php logs to see if there’s any other error? also, can you try to check browser error console?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    If you tried your plugins, then 99% chance it’s your theme. My guess is it’s using outdated jQuery libraries, and EM uses the native WP libraries and dependencies so the clash is related to that.

    It should be ‘Bad Theme. No. No.’ ??

    Thread Starter h-ball.com

    (@h-ballcom)

    I hear that, and the logic works, but when:

    2012 theme Activated = issue still exists.
    WP_DEBUG, true = issue still exists.

    the js in the head before EM plugin activation:

    <link rel='stylesheet' id='admin-bar-css'  href='https://www.../wp-includes/css/admin-bar.min.css?ver=6134' type='text/css' media='all' />
    
    <link rel='stylesheet' id='output-css'  href='https://www.../wp-content/plugins/addthis/css/output.css?ver=6134' type='text/css' media='all' />
    
    <script type='text/javascript' src='https://www..../wp-includes/js/comment-reply.min.js?ver=6134'></script>
    
    <script type='text/javascript' src='https://www..../wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>

    js in head after EM plugin action:

    <link rel='stylesheet' id='admin-bar-css'  href='wp-includes/css/admin-bar.min.css?ver=7626' type='text/css' media='all' />
    
    <link rel='stylesheet' id='events-manager-css'  href='wp-content/plugins/events-manager/includes/css/events_manager.css?ver=7626' type='text/css' media='all' />
    
    <link rel='stylesheet' id='output-css'  href='wp-content/plugins/addthis/css/output.css?ver=7626' type='text/css' media='all' />
    
    <script type='text/javascript' src='wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.sortable.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='wp-includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.9.2'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var EM = {"ajaxurl":"http:\/\/www....org\/wp-admin\/admin-ajax.php","bookingajaxurl":"http:\/\/www....org\/wp-admin\/admin-ajax.php","locationajaxurl":"http:\/\/www....org\/wp-admin\/admin-ajax.php?action=locations_search","firstDay":"1","locale":"en","dateFormat":"mm\/dd\/yy","bookingInProgress":"Please wait while the booking is being submitted.","ui_css":"http:\/\/www....org\/wp-content\/plugins\/events-manager\/includes\/css\/ui-lightness.css","show24hours":"0","is_ssl":"","tickets_save":"Save Ticket","bookings_export_save":"Export Bookings","bookings_settings_save":"Save Settings","booking_delete":"Are you sure you want to delete?","txt_search":"Search","txt_searching":"Searching...","txt_loading":"Loading...","event_reschedule_warning":"Are you sure you want to reschedule this recurring event? If you do this, you will lose all booking information and the old recurring events will be deleted.","disable_bookings_warning":"Are you sure you want to disable bookings? If you do this and save, you will lose all previous bookings. If you wish to prevent further bookings, reduce the number of spaces available to the amount of bookings you currently have","event_detach_warning":"Are you sure you want to detach this event? By doing so, this event will be independent of the recurring set of events.","delete_recurrence_warning":"Are you sure you want to delete all recurrences of this event? All events will be moved to trash.","booking_warning_cancel":"Are you sure you want to cancel your booking?"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='wp-content/plugins/events-manager/includes/js/events-manager.js?ver=7626'></script>
    
    <script type='text/javascript' src='wp-includes/js/comment-reply.min.js?ver=7626'></script>

    url’s in js files are not literal. domain is stripped out for this discussion. Note version variation on some. I still hone in on the CDATA.

    Thanks for looking into this so far!

    Thread Starter h-ball.com

    (@h-ballcom)

    @marcus,

    hey ya, Investigation still points to the pluging as the issue. Not saying that’s the case, but can you point me to the directory where the head code is so I can take a look? Again, it’s over writing even with the stock 2012/2011 theme activated, and all other plugins disabled, and debug mode on.

    Thanks,
    d

    Plugin Support angelo_nwl

    (@angelo_nwl)

    do you have sample links for us to see and analyze?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I’m still not convinced… because it works fine for everyone else – barring conflicts due to other plugins.

    What about with WP_DEBUG turned off?

    That cdata is created using wp’s wp_localize_script function in events-manager.php, try finding that line and commenting it out to see if it helps. It might cause some JS errors though in our files…

    I’m wondiering if it’s any custom text you added which we include in there? WP should do the job of properly sanitizing that information, but maybe that’s a clue.

    Thread Starter h-ball.com

    (@h-ballcom)

    Marcus, thanks.

    Upon exploring the events-manager.php file, when I comment out lines 257 & 258. the admin functions (media uploader/url editting) return. The code on those lines is this:

    EM_Scripts_and_Styles::init();
    function em_enqueue_public(){ EM_Scripts_and_Styles::public_enqueue(); } //In case ppl used this somewhere

    Admittedly, the theme/site I’m working with is an afterthought trainwreck of sorts, however with the above evidence, does it suggest a plugin issue, or some external referencing of em_enqueue_public() crossfire?

    @Angelo_nwi, I sense I’m narrowing this down, so atm I have no sample links, but will depending on the results of this post. Again, thank you both/all for the input.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try to deactivate all other plugins or disable some javascript in your theme?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    that just means that you have a javascript problem ?? your solution would break most of EM’s javascript functionality so it can’t happen.

    have you tried deactivating all your other themes AND using the default WP theme (which shouldn’t have been modified by you?).

    you also didn’t try my suggestion:

    That cdata is created using wp’s wp_localize_script function in events-manager.php, try finding that line and commenting it out to see if it helps. It might cause some JS errors though in our files…

    I’m testing this out on various test installs and don’t have a problem.

    Thread Starter h-ball.com

    (@h-ballcom)

    Yea, the issue is some kind of js conflict with 3.5.1 on this install. I replicate the install on a diff server, and it works. That said, I’ve regressed this site’s core files a few versions back and it now works. If it matters, it is solely specific to some kind of complication with init function for the js your plugin uses. There’s a variation in js versions therein. Oh well, I’m not digging any further.

    Thanks for your support in troubleshooting it, nonetheless.

    -dh

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WP editing functions breaking when Events Manager is plugged in.’ is closed to new replies.