Map doesn't show

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Map doesn't show

Post by fletch »

I'm having the same problem as in this post http://forum.cmsmadesimple.org/viewtopi ... oogleMaps2.
I have followed all the info in the help file and in said post. I'm really not sure what I'm doing wrong and why this isn't working. I'm not a pro developer or anything. Just the webmaster of a small club website trying to wing it and do what I can. So far, I've been able to figure most things out on my own. This time I figured I'd try and ask for help (which is usually the LAST thing I do not the first).

I was using GoogleMaps v0.2.1 to put a map on the site, but it seems to not be supported in the most recent version of CMSMS. I finally got a development version of the site on my computer so I can work out stuff like this.

Here's my config info.
Please let me know anything if there is anything else I need to provide

Code: Select all

CMS Version 		1.11.12


Installed Modules

CMSMailer 		5.2.2
CMSPrinting 		1.0.5
FileManager 		1.4.5
MenuManager 		1.8.6
ModuleManager 		1.5.8
News 			2.14.4
Search 			1.7.11
ThemeManager 		1.1.8
jQuery 			1.2.0
AceEditor 		1.0
Snippets 		1.0.1
FAQ 			1.0.1
Showtime 		3.4
GoogleMaps 		0.2.1
CGExtensions 		1.45
TinyMCE 			2.9.12
FormBuilder 		0.7.3
CGSimpleSmarty 		1.7.4
CGGoogleMaps2 		0.99.1


CMS Config Settings

php_memory_limit 		 
process_whole_template 		 
max_upload_size 		2000000
url_rewriting 		mod_rewrite
page_extension 		 
query_var 		page
image_manipulation_prog 		GD
auto_alias_content 		true
locale 		 
default_encoding 		utf-8
admin_encoding 		utf-8
set_names 		true


PHP Information

Current PHP Version (phpversion) 	Success 	 5.4.35
md5 function (md5_function) 	Success 	 On (True)
GD version (gd_version) 		Success 	 2
tempnam function (tempnam_function) 		Success 	 On (True)
Magic quotes in runtime (magic_quotes_runtime) 	Success 	 Off (False)
Is E_STRICT disabled in error_reporting (E_STRICT) 		Caution 	E_STRICT is enabled in the error_reporting
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED) 	Caution 	E_DEPRECATED is enabled
PHP Effective Memory Limit (memory_limit) 		Success 	 	128M
Maximum Execution Time (max_execution_time) 	Caution 	 	30 ?	
PHP output_buffering (output_buffering) 		Success 	 4096
PHP Safe Mode (safe_mode) 			Success 	 Off (False)
File uploads (file_uploads) 			Success 	 On (True)
Maximum Post Size (post_max_size) 		Caution 	 8M ?	
Maximum Upload Size (upload_max_filesize) 		Caution 	 2M ?	
Session Save Path (session_save_path) 		Success 	 B:\Temp (0777)
Sessions are allowed to use Cookies (session_use_cookies) 	Success 	 On (True)
Basic XML (expat) support (xml_function) 	Success 	 On (True)
Checking for the XMLReader class (xmlreader_class) 	Success 	 On (True)


Server Information

Server API (server_api) 		apache2handler
Server Database (server_db_type) 		mysql (mysqli)
Server Database Version (server_db_version) 	Success 	5.6.22
Check database access levels (server_db_grants) 	Success 	found a "grant all" statement that appears to be suitable
Check for filesystem time differences (server_time_diff) 	Success 	no filesystem time difference found
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Map doesn't show

Post by staartmees »

Googlemaps has been marked as stale. "According to the status the GoogleMaps module is not optimized for CMS versions 1.11.10."

Use current version of CGGoogleMaps 2.4.7 or CGGooglemaps2 0.99.1
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

Maybe I wasn't clear...

The problem I'm having is with CGGoogleMaps2 (v0.99.1)

I'm currently using GoogleMaps v0.2.1 to display the map on the site and want to stop using it (due to the reasons given) and use CGGoogleMaps2 instead.

v0.2.1 works with CMSMS 1.11.10 but not with 1.11.12 which is what I have on the local dev version and want to upgrade the live version to...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Map doesn't show

Post by velden »

It's hard to know what's going wrong as the site is on your local machine so we can't look for an error like in the other post you refer to.

Have you looked in the browser's error console to see if javascript errors occur? Most (if not all) decent browsers have a web inspector with error console built-in.
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

Does this help?
Attachments
Error Console
Error Console
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Map doesn't show

Post by velden »

Do you have jQuery included before the call to CGGoogleMaps2?
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

Yes, it's in the page template at the head section at the top.

Code: Select all

<head>
<title>{sitename} - {title}</title>
{cms_stylesheet}
{metadata}
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
{cms_jquery}	
</head>
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Map doesn't show

Post by Jo Morg »

IIRC CGGoogleMaps2 needs JQuery UI lib included.

So I would:
  1. check the HTML source to verify if both libraries are included (JQuery and JQuery UI);
  2. Check the cms_jquery help page on how to include/exclude libraries, if needed;
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

I would imagine that it is being included based on said HTML source.

Code: Select all

<__script__ type="text/javascript" src="http://localhost/lib/jquery/js/jquery-1.11.0.min.js"></__script>
<__script__ type="text/javascript" src="http://localhost/lib/jquery/js/jquery-migrate-1.2.1.min.js"></__script>
<__script__ type="text/javascript" src="http://localhost/lib/jquery/js/jquery-ui-1.10.4.custom.min.js"></__script>
<__script__ type="text/javascript" src="http://localhost/lib/jquery/js/jquery.ui.nestedSortable-1.3.4.js"></__script>
<__script__ type="text/javascript" src="http://localhost/lib/jquery/js/jquery.json-2.3.min.js"></__script>
I have even verified that all files are in the stated folder. Tried using the "cdn='true" option and even tried using jquery-ui-1.8.21.custom.min.js instead of 1.10.4 via exclude/append.

I would think that I would get an error message if jquery-ui was not loading properly from this though...

Code: Select all

<__script__ type="text/javascript">
if( typeof(jQuery) == 'undefined' ) {
  var div = document.getElementById('cggm_map_1').
  div.innerHTML = '<h3 style="color: red;">jQuery and jQuery UI Are Required</h3>';
  throw new Error('jQuery and jQuery UI Are Required');
I get no error message... and still no map...
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

Good news and bad news...

The good news is I got the map to finally work, the bad news is it is with the depreciated CGGooglemaps 2.4.7

I still can't get it to work with (and would prefer using) the updated version.

All I did was:
uninstall CGGoogleMaps2 v0.99.1
install CGGoogleMaps v2.4.7
create a map (same way as before, leaving everything default)
change the tag on the content page to remove the "2"

Why will the previous version work but not the current one?
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

Still waiting...
fletch
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 8:26 pm

Re: Map doesn't show

Post by fletch »

No ideas??
Locked

Return to “Modules/Add-Ons”