function keepAlive() { var myAjax..... ERROR

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Nov 03, 2012 2:22 pm
Reply with quote
Report this post
Hello,

I am getting the below error with this new template and the slideshow at top of page is not working:

function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(3600000); }); try {$Gavick;}catch(e){$Gavick = {};};$Gavick["gkIs-gk-is-584"] = { "anim_speed": 200, "anim_interval": 5000, "autoanim": 0, "slide_links": 1 };

http://www.jdweb.com.au/

Please help?

John
User avatar
Senior Boarder

GK User
Sat Nov 03, 2012 2:38 pm
Reply with quote
Report this post
EDIT::::

OK, so I know what is causing the problem, but i dont know how to fix it.

I use a module called: HEAD CSS

http://www.contona.com/joomla-extension ... css-script

If I enable ANY of my usual HEAD CSS modules, it gives me the above error codes and problems.

Can someone please assist with why this is happening and how to fix it?

I use HEAD CSS to add stuff to the <head> section...like analytics js, sharethis, bootstrap......

I have tested each HEAD CSS script INDIVIDUALLY, and they ALL casue the issue.....even a simple script like ShareThis. I am using the same HEAD CSS and scripts on my live website that is running the GH CREATIVE template, and I don't have these issue.

Please help....
User avatar
Senior Boarder

GK User
Sat Nov 03, 2012 2:50 pm
Reply with quote
Report this post
Did you install any custom widget/extension ? This issue happen after quickstart installation or it is visible after some extension installation ? I'm asking because I see some custom script at the frontpage.
User avatar
Platinum Boarder

GK User
Sat Nov 03, 2012 4:25 pm
Reply with quote
Report this post
bkrztuk wrote:Did you install any custom widget/extension ? This issue happen after quickstart installation or it is visible after some extension installation ? I'm asking because I see some custom script at the frontpage.


What do u mean by custom script?

I have installed the EXACT same extensions, scripts, etc in this template, as I have in my live site using the GK Creative template.

As I said below, IF I DISABLE the HEAD CSS modules, the error goes away. I use the EXACT same setup on at least 5 different GK responsive templates.....GK Startup is the FIRST TIME I have seen this problem.

It has to be something related to this template....

When i was looking at the code, i noticed that some on of the .js files that I load in HEAD CSS was not placed in the HEAD, it was near the bottom of the <body> Maybe its an issue with the file that the <head> files go into?

Either way, i have only seen this issue in this template....
User avatar
Senior Boarder

GK User
Sat Nov 03, 2012 5:31 pm
Reply with quote
Report this post
UPDATE:::::::::::::::::::::::

To test, I installed a CLEAN / FRESH version of the GK Startup template, and the ONLY extension I installed was HEAD CSS.

I then tried to load the SHARES THIS js code via the HEAD CSS module, and i get the same error.

Let me STRESS once more, I use the SAME extensions in ALL of my website setups, and I have never had this issue. I have the same setup on at least 5 Gavick Responsive templates.

There just seems to be some weird stuff with this template, doesn't quite seem stable....

Anyway, a fix would be great...
User avatar
Senior Boarder

GK User
Sun Nov 04, 2012 10:12 pm
Reply with quote
Report this post
Hello,

I am still getting this error.

My entire project is on hold until we can find a fix for this error.

Can anyone help?
User avatar
Senior Boarder

GK User
Sun Nov 04, 2012 10:28 pm
Reply with quote
Report this post
If I disable the 'LOGIN' module, it removes the first part of the error code

This is NOT a fix, as I need the ability for people to be able to login on my site.

The second error references Gavick in some way, i am guessing a conflict between image show and News SHow Pro??

It would be great is anyone can assist, I really need to know if I can use this template or not, as I have already but all the content into this template, and spent a couple of days working with it....
User avatar
Senior Boarder

GK User
Sun Nov 04, 2012 10:35 pm
Reply with quote
Report this post
Ok,

Here is where the 2 problems like:

Then 2nd part of the error code:

try {$Gavick;}catch(e){$Gavick = {};};$Gavick["gkIs-gk-is-584"] = { "anim_speed": 200, "anim_interval": 5000, "autoanim": 0, "slide_links": 1 };

If I disable the ImageSHow GK4 module, then the above error code disappears (this doesn't help me, as I choose this template because of the nice display of the ImageShow module!

The 1st part, as per my previous post:

function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(3600000); });

If I disable the LOGIN module, this code disappears.(this doesn't help either, as i need the login module)

Again, if anyone can help, it would be greatly appreciated.

John
User avatar
Senior Boarder

GK User
Mon Nov 05, 2012 9:13 am
Reply with quote
Report this post
The problem is with external extension which break the head section of template. Please disable this extension and see results. If you have problem when the extension is disabled please send me details via PM (with FTP access and link to this forum topic).
User avatar
Platinum Boarder

GK User
Tue Nov 06, 2012 3:58 am
Reply with quote
Report this post
bkrztuk wrote:The problem is with external extension which break the head section of template. Please disable this extension and see results. If you have problem when the extension is disabled please send me details via PM (with FTP access and link to this forum topic).


Hello, I have already stated its related to the HEAD CSS extensions....HOWEVER, i use this extension on ALL joomla sites I build, most sites are built with Gavick templates....and this is the ONLY Garrick template that has issues...therefore, its a specific problem with the GK Startup template.

If i had the same problem with all of your templates, then I would not bother posting in your forum.....but its this template that has the issue...

Can i please get some help?
User avatar
Senior Boarder

GK User
Tue Nov 06, 2012 9:15 am
Reply with quote
Report this post
I see from code that this extension destroy the head area, probably it work in some cases and in some cause problems. You need to contact with extension support because our head area is build according to w3c standards - you can validate and check. Probably scripts included in startup template is wrongly recognized by this tool and closing tag is moved to the wrong place.
User avatar
Platinum Boarder


cron