CGGooglemaps causes error 500 when used from News module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
waterman
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 05, 2008 8:47 pm

CGGooglemaps causes error 500 when used from News module

Post by waterman »

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
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: CGGooglemaps causes error 500 when used from News module

Post by psy »

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}
waterman
Forum Members
Forum Members
Posts: 64
Joined: Tue Feb 05, 2008 8:47 pm

Re: CGGooglemaps causes error 500 when used from News module

Post by waterman »

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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: CGGooglemaps causes error 500 when used from News module

Post by Dr.CSS »

When using a module inside of another you may need to use {cms_module module='CGGoogleMaps'}...
Post Reply

Return to “Modules/Add-Ons”