Title: Infinite Loop
Last modified: August 21, 2016

---

# Infinite Loop

 *  Resolved [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/)
 * Using the latest version of WP 3.8 and the plugin, 9.0.19 but after generating
   the shortcode and placing the map in a page, the map does not show, just an infinite
   loop of the loading graphic ….
 * Placed the `cgmp.framework.min.js` in the never minify section of W3TC caching
   plugin, cleared all cache on the server and on the browser
 * I do not use a kml file
 * What’s wrong?
 * This is the url: [http://huisameland.com/kaart/](http://huisameland.com/kaart/)
 * [http://wordpress.org/plugins/comprehensive-google-map-plugin/](http://wordpress.org/plugins/comprehensive-google-map-plugin/)

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

 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485633)
 * The cgmp.framework.min.js is still cached, becaue when I inspected the source
   code of the page where the map is – I did not see the cgmp.framework.min.js loaded.
 * Are you sure you have read this:
    [http://wordpress.org/support/topic/how-to-make-w3-total-cache-plugin-to-play-nicely-together](http://wordpress.org/support/topic/how-to-make-w3-total-cache-plugin-to-play-nicely-together)
 * Did you place cgmp.framework.min.js in the never minify section OR
    the whole
   URL: [http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js](http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js)
 * Also, please add this to never minify: [http://www.google.com/jsapi](http://www.google.com/jsapi)
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485634)
 * You need to add FULLY qualified URL to “**Never minify the following JS files**“,
   in other words:
 * [http://www.google.com/jsapi](http://www.google.com/jsapi)
    [http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js](http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js)
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485635)
 * – I have read the URL about W3TC and implemented all
    – I used the fully qualified
   URL – deleted all the cache – added [http://www.google.com/jsapi](http://www.google.com/jsapi)
   to the never minify section
 * Still no map and infinite loop of the loading graphics
 * So what’s your suggestion? [@alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485637)
 * Can you inspect the source of your HTML page and verify whether the files that
   not suppose to be minified have been loaded? Do you know how to do it
 * Also, I don’t mean to be patronizing, but did you save the settings of W3 cache?
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485650)
 * From what I see the JS is still cached, if you are OK – I can have a look at 
   your WP admin area.
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485671)
 * I do appreciate your great work here on the plugin and your attempt to support,
   but you are patronizing.
 * As I stated before:
 * – I have read the URL about W3TC and implemented all
    – I used the fully qualified
   URL – deleted all the cache (server side and browsser side) – also added [http://www.google.com/jsapi](http://www.google.com/jsapi)
   to the never minify section
 * The fact that you still see the JS file cached is true, that’s what W3TC is all
   about: caching.
 * Your advice is to add the URL’s to the never minify section, not to disable W3TC
   at all, which wouldn’t be a very good advice, don’t you agree? Or to not cache
   these files.
 * So stop repeating what you have already advised and questioning if I have followed
   your advice, I did.
 * The fact remains that the plugin is not working as it should, maybe some other
   plugin is breaking things, I will search for that one. Or maybe there’s something
   inside the plugin which is causing it, I do not know and that’s what my question
   is about. Finding a solution for this problem.
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485672)
 * This plugin was a culprit SEO-Wordpress: [http://wordpress.org/plugins/seo-wordpress/](http://wordpress.org/plugins/seo-wordpress/)
 * Now after some time a square appears on screen, inside is a grey background, 
   but no map.
 * Disabled all plugins, no change.
 * Did a live preview from the 2014 WordPress theme and still no change
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485675)
 * In the Webconsole this fatal error occurs from the plugin js file [http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js](http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js):
 * `"Fatal :: It looks like the map DIV placeholder ID [d386cc43802a165bcfac6c187e7e8caf]
   does not exist in the page!"`
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485693)
 * I really meant to offense and I appologise if I have sounded otherwise, lets 
   start again, as I really want to help you. Thank you for identifying that plugin
   that was causing the problem. Are you saying that SEO-Wordpress was interfering
   with W3T Cache to exclude cgmp.framework.js from caching? W3T Cache stopped caching
   the cgmp.js the moment you tweaked SEO-Wordpress? I am just curious what steps
   did you take exactly, so I will be able to help others in the future…
 * Now, regarding the message:
    By inspecting the source and a web console, I do
   the “fatal” error, also I see a JS error.
 * Regarding the “fatal” error log, I see that the OBJECT HTML element containing
   map data was injected into HEAD section of your page (in addition to be injected
   into BODY as expected). That SHOULD NOT be happening.
 * Regarding, the JS error – I was able to replicate successfully on my localhost.
   Can you tell me what coordinates/address did you configure for your marker when
   constructing a shortcode in shortcode builder? Based on what I see in the source
   code of your page, you provided only Based on what I see in the source of your
   page, you provided only: “53.455802”. Were you meant to provide “53.455802,5.77282”
   or “5.77282, 53.455802”?
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485732)
 * SEO-Wordpress was interfering with your plugin. Disabled the plugin and your 
   plugin could go beyond the infinite loop and generate the square with grey background,
   no map.
 * > Regarding the “fatal” error log, I see that the OBJECT HTML element containing
   > map data was injected into HEAD section of your page (in addition to be injected
   > into BODY as expected). That SHOULD NOT be happening.
 * How can this happen to your opinion?
 * This is the generated shortcode injected into the page:
 * `[google-map-v3 shortcodeid="26fb125051" width="500" height="450" zoom="12" maptype
   ="hybrid" mapalign="center" directionhint="false" language="default" poweredby
   ="false" maptypecontrol="true" pancontrol="true" zoomcontrol="true" scalecontrol
   ="true" streetviewcontrol="true" scrollwheelcontrol="false" draggable="true" 
   tiltfourtyfive="false" enablegeolocationmarker="false" enablemarkerclustering
   ="false" addmarkermashup="false" addmarkermashupbubble="false" addmarkerlist="
   53.455802{}2-default.png{}5.77282" bubbleautopan="true" distanceunits="km" showbike
   ="true" showtraffic="false" showpanoramio="false"]`
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485733)
 * _“How can this happen to your opinion?”_
    At this stage I can only be guessing
   as it is difficult to try to pin point the source of the error without personally
   inspecting your site (using PHP echo to output some debug information on the 
   client side).
 * I can try and test against the theme you are using, can you confirm if this is
   your theme: [http://wordpress.org/themes/responsive](http://wordpress.org/themes/responsive).
   Short guess: probably something between the theme and the plugin. Plugin’s shotcode
   echo’ing the HTML OBJECT, but why it echo’ed also in the HEAD section, at this
   stage I am not sure.
 * Regarding, the shrotcode injected into the page, please note the `addmarkerlist`
   prop:
 *     ```
       53.455802{}2-default.png{}5.77282
       ```
   
 * This above us incorrect (thats why the map is broken), and I am curious what 
   might have caused it. In expected scenario, the coordinates would be separated
   by comma. Can you tell me what was the format of your marker coordinates that
   you entered into the shortcode builder when constructing a shortcode ?
 * Did you provide coordinates using the following format, for example “53.455802,5.77282”
   or “5.77282,53.455802”? Did you use shortcode builder at all OR tried to enter
   coordinates manually into shortcode in the post/page editor?
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485739)
 * – theme is responsive
    `53.455802{}2-default.png{}5.77282` is injected by the
   shortcode builder of the plugin, I selected a marker from the list, not the default
   marker.
 * In the latitude box 53.455802 was used
    In the longitude box 5.77282 was used
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485740)
 * That’s one mistake, the latitude, longitude is in one box, description is in 
   another. Maybe this will help. I will generate a new shortcode, let’s see
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485741)
 * The map is generated now. thank you for your help Alexander
 *  Plugin Contributor [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * (@alexanderzagniotov)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485746)
 * Yep, you got it 🙂 I am glad it is resolved

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

The topic ‘Infinite Loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comprehensive-google-map-plugin_e2e4ef.
   svg)
 * [Comprehensive Google Map Plugin](https://wordpress.org/plugins/comprehensive-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comprehensive-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/reviews/)

## Tags

 * [graphic](https://wordpress.org/support/topic-tag/graphic/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [map](https://wordpress.org/support/topic-tag/map/)
 * [not](https://wordpress.org/support/topic-tag/not/)
 * [showing](https://wordpress.org/support/topic-tag/showing/)

 * 15 replies
 * 2 participants
 * Last reply from: [alexanderzagniotov](https://wordpress.org/support/users/alexanderzagniotov/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/infinite-loop-1/#post-4485746)
 * Status: resolved