• catsandcriminals

    (@catsandcriminals)


    Hi all,

    I have added the events to the system without any problem and included details such as address website link etc. Inside the admin section it shows up with a correct map etc but when you click on the event no details are being bought up.

    I’ve looked through the forum and haven’t found any answers – can any one point me in the right direction?

    https://catsandcriminals.com

Viewing 15 replies - 16 through 30 (of 30 total)
  • What errors do you see in your JS console? I’m curious to see if its the same issue I was having, as mine was theme related.

    The error I was seeing was as follows:

    Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3
    mapsevents-manager.js:18
    d.extend._Deferred.f.resolveWithjquery.min.js:16
    d.d.extend.readyjquery.min.js:16
    d.c.addEventListener.y

    Effing wordpress hackery…

    As a footnote, have you disabled ALL of your plugins except for Events Manager and seen if that makes any difference?

    Hi again,

    Problem solved ??

    I used your solution (bmxcamel), but I had to change ' with the sign ‘ in the code. Then it works perfectly.

    Thank you so much for the solution.

    Have a nice day ??

    Glad I could help — let’s please try and get Marcus to implement this solution into his code so we don’t have to re-add it every time he updates the plugin.

    if it’s theme specific you should ask the theme developer to sort it out.

    however, if more ppl are having this problem I don’t mind changing it! I got that snippet from google so i don’t see why it would be incompatible (mind you, the snippet of countries i got from google is missing so many my confidence in them is shaken slightly ?? )

    I mean, just because google writes something doesn’t mean it’s perfect ?? i’d recommend changing it since it fixed our issues and won’t break anything…

    i’ll have a check and see

    upon further investigation, they’ve also changed their recommendation to

    function loadScript() {
      var script = document.createElement("script");
      script.type = "text/javascript";
      script.src = "https://maps.google.com/maps/api/js?sensor=false&callback=initialize";
      document.body.appendChild(script);
    }

    as shown here
    https://code.google.com/apis/maps/documentation/javascript/basics.html#Async

    will be in next update, does that work for you?

    whilst I agree with what you say bmxcamel, they have a far greater test base, and maps is something they’d get a lot of complaints about if it didn’t work.

    Hey guys I’m having trouble getting the map to load in a front end events creation form. I got the date picker to work by importing some script:

    <script type='text/javascript' src='https://mydomain.com/wp-content/plugins/events-manager/includes/js/timeentry/jquery.timeentry.js?ver=3.2.1'></script>
    <script type='text/javascript' src='https://mydomain.com/wp-content/plugins/events-manager/includes/js/events-manager.js?ver=3.2.1'></script>

    The error in the js console is:

    Error: j.google.maps.Load is not a function
    Source File: https://maps.gstatic.com/intl/en_us/mapfiles/api-3/4/19/main.js
    Line: 41

    If I import this script, the map works:

    <script type='text/javascript' src='https://mydomain.com/wp-admin/load-scripts.php?c=1&load=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position&ver=9a8b5f8adc55089712b0229f049fcd29'></script>

    but that breaks the datepicker and fancybox…. any suggestions will be very much appreciated

    sounds like you have an issue in your theme, maybe not using the wp_head() function?

    Hi Marcus, it has the function in header.php :

    /* Always have wp_head() just before the closing </head>
    		* tag of your theme, or you will break many plugins, which
    		* generally use this hook to add elements to <head> such
    		* as styles, scripts, and meta tags.
    		*/
    		wp_head();
    	?>    
    
    </head>

    in the functions.php the following scripts are added using the function below:

    function jg_register_js() {
    	if (!is_admin()) {
    		wp_deregister_script('jquery');
    		wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');
    		wp_enqueue_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');
    		wp_enqueue_script('fancybox', get_template_directory_uri() . '/js/jquery.fancybox-1.3.4.js', 'jquery');
    		wp_enqueue_script('hover-intent', get_template_directory_uri() . '/js/hoverIntent.js', 'jquery');
    		wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', 'jquery');
    		wp_enqueue_script('nudge', get_template_directory_uri() . '/js/link_nudge.js', 'jquery');
    		wp_enqueue_script('jg_custom', get_template_directory_uri() . '/js/scripts.js', 'jquery', '1.0', TRUE);
    		wp_register_script('tabs', get_template_directory_uri().'/js/jquery.tabbed-widget.js', array('jquery-ui-tabs')); // called in 'tabbed-blog.php' widget
    	}
    }
    add_action('init', 'jg_register_js');

    I realise it’s a theme issue, cuased by some conflicting js… but can’t seem to fix it without breaking something else.

    i’m guessing you’re loading two js files somewhere. do you get any js errors in your console? (ctrl + shift + j in chrome)

    Hi Marcus, I have decided to remove the script that causes the map not to load. The only snag is now the date-picker doesn’t load… All the script are loaded via functions.php see below:

    function jg_register_js() {
    	if (!is_admin()) {
    		wp_deregister_script('jquery');
    		wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');
    		wp_enqueue_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');
    		wp_enqueue_script('fancybox', get_template_directory_uri() . '/js/jquery.fancybox-1.3.4.js', 'jquery');
    
    		wp_enqueue_script('events-manager', 'https://mydomain/wp-content/plugins/events-manager/includes/js/events-manager.js');
    		wp_enqueue_script('timeentry', 'https://mydomain/wp-content/plugins/events-manager/includes/js/timeentry/jquery.timeentry.js', 'jquery');
    
    		wp_enqueue_script('hover-intent', get_template_directory_uri() . '/js/hoverIntent.js', 'jquery');
    		wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', 'jquery');
    		wp_enqueue_script('nudge', get_template_directory_uri() . '/js/link_nudge.js', 'jquery');
    
    		wp_enqueue_script('jg_custom', get_template_directory_uri() . '/js/scripts.js', 'jquery', '1.0', TRUE);
    		wp_register_script('tabs', get_template_directory_uri().'/js/jquery.tabbed-widget.js', array('jquery-ui-tabs')); // called in 'tabbed-blog.php' widget
    
    	}
    }
    add_action('init', 'jg_register_js');

    I get no javascript errors but would love for the date-picker to work. Do you think it could be a CSS thing?

    Also I was wondering where I can add to the message that appears after you create an event – I’d just like to add something that says “please expect 24 hours for your event to be made live” .

    I’ll be adding a success message customization.

    It could be, using firebug you can see if the div is being loaded by JS (but check the console for errors first)

    I ended up sorting out all the conflicting js stuff. Thanks for all your help.

    Can you please tell me what file I can edit to add to the success message. I look forward to the customization but have to go live tomorrow. So can’t wait for that. I was also planning on making it launch in fancybox.. do you think that’ll be possible?

    I appreciate your input especially considering this is a free plugin. Developers like you make the wordpress community what it is.

    Thanks

    you would be best off using hooks/filters to do this, like overriding the gettext filters for the specific string (located in classes/em-bookings.php function add)

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘[Pluggin Events Manager] Description / Maps not showing up on events page’ is closed to new replies.