• Resolved nrinaldi

    (@nrinaldi)


    Dear all,

    I just upgraded to WP 3.8.1 and Events Manager 5.5.2. I have the eternal problem of the datepicker not showing, again… I have traced the bug down to a theme problem, because when using the 20 12 theme, it works fine.

    I have checked my theme file functions.php, and have disabled the code:
    if (!is_admin()) add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11);
    function my_jquery_enqueue() {
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, “http” . ($_SERVER[‘SERVER_PORT’] == 443 ? “s” : “”) . “://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js”, false, null);
    wp_enqueue_script(‘jquery’);
    }
    but I still get the same error.

    When checking the source of my page, I do not find any reference to the loading of jquery on a google server. Also, when checking the page console, I do not get any JS error.

    Hence, I am getting crazy about this problem… Any advice?

    Also, why is it impossible to manually enter the dates through the keyboard. I systematically get the error “wrong date format”… What is the correct date format (would be a temporary work around to the above mentioned problem). Or does EM not support manually entered dates?…

    Cheers,

    Nils

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hiya,

    Can you share a link to your site please so we can check this?

    Thanks,
    Phil

    Thread Starter nrinaldi

    (@nrinaldi)

    Dear Phil,

    Thank you for your answer. The problem happens when adding an event in the back-end. Hence, if you want to try to have a look, I would have to give you a light admin access to the back-end. Would that be ok with you? If so, send me an e-mail to nilsrinaldi[at]gmail.com.

    For the record, the web site’s public URL is: http://www.epflalumni.ch.

    Cheers,

    Nils

    I’m still seeing your theme loading in an old version of jQuery (1.7.1). Pretty sure that’s the problem.

    Is there somewhere else your theme is loading jQuery?

    Thread Starter nrinaldi

    (@nrinaldi)

    Dear Caimin_nwl,

    It is true that the site loads the jQuery version 1.7.1. However, I do not have a date picker on the site, but in the back-end, where the administrative staff of my client adds events in the Event Module. And the jQuery version there is

    1.10.2

    . Would that be sufficient, or do I need an even more recent jQuery version to run the Event Module successfully?

    Here is a link to a screenshot.

    Your help is appreciated!

    Cheers,

    Nils

    I understand the problem is on the back-end but your theme is loading jQuery incorrectly on the front-end, so it’s probably doing it incorrectly on the back-end as well.

    You confirmed the problem doesn’t appear when using a default theme, so I suggest completely removing the code your theme uses to load jQuery. That will allow Events Manager to load jQuery correctly and should bring the datepicker back.

    Thread Starter nrinaldi

    (@nrinaldi)

    Thanks caimin_nwl,

    I have now detected where the jQuery is loaded in the theme. It is in the footer.php file. I have now deactivated this loading. I have checked that now the version loaded is 1.10.2 (see http://www.epflalumni.ch/dev).

    However, still no luck with the datepicker. I am turning crazy. Any other suggestions? Should I see JS errors appear if something is still wrong?

    Cheers,

    Nils

    Hiya,

    Unfortunately, there is still a version of jQuery 1.7.1 being loaded by your site.

    It is being loaded from the Google CDN. So, it looks like your theme is still loading that from somewhere. Your theme may be loading that from somewhere other than functions.php so you’ll need to go through the theme files to find it.

    Alternatively, contact the original theme developer and nag them to remove the reference so that WP’s own version is used instead.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Datepicker problem : not showing’ is closed to new replies.