Trying to use CGgooglemaps from with a news article.
This causes a timeout and server error 500.
Using CMS 1.11.4, CGGooglemaps 2.4.3, Jquerytools 1.1.1, Php 5.2.1.7, Max exec time=30
CGGooglemaps is called from a news article using this code:
{JQueryTools action=incjs}
{CGGoogleMaps}
On a normal page the map is displayed correctly using the same code.
The errorlog display's:
[Sun Dec 30 16:54:52 2012] [warn] [client 83.87.45.201] mod_fcgid: read data timeout in 45 seconds, referer: http://www.gobes.nl/
[Sun Dec 30 16:54:52 2012] [error] [client 83.87.45.201] Premature end of script headers: index.php, referer: http://www.gobes.nl/
Tried it on a different CMS site with similar results.
Any suggestions?
with regards
Marc
CGGooglemaps causes error 500 when used from News module
Re: CGGooglemaps causes error 500 when used from News module
JQueryTools is 'helper' code only and in my experience causes more problems than solutions. Not saying this is the answer to your problem but try losing the jquerytools tag and instead putting a direct link to the google jquerytools d/l script in the head section. You can put it in an {if} statement if you only need it on one page, eg
Code: Select all
{if $page_alias eq 'news'} <__script__ ..... </__script>{/if}
Re: CGGooglemaps causes error 500 when used from News module
tried the suggestion with
<__script__ type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jq ... "></__script>
but this didn't change the behaviour on the news summary.
With the script above replacing {JQueryTools action=incjs} the normal page is displayed correctly.
with regards
marc
<__script__ type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jq ... "></__script>
but this didn't change the behaviour on the news summary.
With the script above replacing {JQueryTools action=incjs} the normal page is displayed correctly.
with regards
marc
Re: CGGooglemaps causes error 500 when used from News module
When using a module inside of another you may need to use {cms_module module='CGGoogleMaps'}...