Jump to content

pluginDetect.js error on 1.3.6 - help needed


Recommended Posts

Hi there,

I am using PS 1.3.6. and when checking site performance through webpagetest.org, I get a 404 error for this URL which the server attempts to load: http://www.mydomain.com/www.mydomain.com/js/pluginDetect.js

This causes the page load time to double, and I also suspect that this might be the cause for excessive CPU load on my hosting account.

Obviously the error is in the URL, with mydomain.com being doubled, but where do I need to correct things to get it straight?

I have no clue what the pluginDetect.js is good for, and where this bad URL is called from.

Can anyone help please?

Thanks in advance!

Dan

Link to comment
Share on other sites

  • 1 month later...
Hi there,

I am using PS 1.3.6. and when checking site performance through webpagetest.org, I get a 404 error for this URL which the server attempts to load: http://www.mydomain.com/www.mydomain.com/js/pluginDetect.js

This causes the page load time to double, and I also suspect that this might be the cause for excessive CPU load on my hosting account.

Obviously the error is in the URL, with mydomain.com being doubled, but where do I need to correct things to get it straight?

I have no clue what the pluginDetect.js is good for, and where this bad URL is called from.

Can anyone help please?

Thanks in advance!

Dan


I also have this issue. Anyone?
Link to comment
Share on other sites

Hi

Modify line 49 in /modules/statsdata/statsdata.php from:

src="'.$protocol_content.$server_host.__PS_BASE_URI__.'js/pluginDetect.js"


to:

src="../../js/pluginDetect.js"



and line 68 from:

$.post("'.$protocol_content.$server_host.__PS_BASE_URI__.'statistics.php", navinfo);


to:

$.post("../../statistics.php", navinfo);



Hope it helps

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Thank you everyone for the input. Does the solution Timpet proposes come on top of the suggestions of fkhan, or instead?

@ Timpet: I was trying to figure out where to put that code fragment, but I have difficulties localizing where. Could you give me a hint? Thanks in advance!

Link to comment
Share on other sites

  • 2 weeks later...
Add it just before hookfooter in /modules/statsdata/statsdata.php :)

My fix works, dont know about the other one :)


Hi,

that gives an error on the site;

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /~/public_html/shop/modules/statsdata/statsdata.php on line 39
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...