Infinite Loop
-
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 browserI do not use a kml file
What’s wrong?
This is the url: http://huisameland.com/kaart/
http://wordpress.org/plugins/comprehensive-google-map-plugin/
-
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-togetherDid 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.jsAlso, please add this to never minify: http://www.google.com/jsapi
You need to add FULLY qualified URL to “Never minify the following JS files“, in other words:
http://www.google.com/jsapi
http://huisameland.com/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js– 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 to the never minify sectionStill no map and infinite loop of the loading graphics
So what’s your suggestion? @alexanderzagniotov
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?
From what I see the JS is still cached, if you are OK – I can have a look at your WP admin area.
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 to the never minify sectionThe 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.
This plugin was a culprit 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
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:
"Fatal :: It looks like the map DIV placeholder ID [d386cc43802a165bcfac6c187e7e8caf] does not exist in the page!"
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”?
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"]
“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. 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?
– 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 usedThat’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
The map is generated now. thank you for your help Alexander
Yep, you got it π I am glad it is resolved
- The topic ‘Infinite Loop’ is closed to new replies.