Mister Denial Posted February 15, 2011 Share Posted February 15, 2011 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.jsThis 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 More sharing options...
fkhan Posted March 28, 2011 Share Posted March 28, 2011 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.jsThis 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 More sharing options...
Mister Denial Posted March 28, 2011 Author Share Posted March 28, 2011 Maybe this was fixed in 1.3.7 - does anyone know? Link to comment Share on other sites More sharing options...
fkhan Posted March 29, 2011 Share Posted March 29, 2011 I have found the solution:modify line 49 under /modules/statsdata/statsdata.php from: [removed][removed] to: [removed][removed] Could be useful for some. Link to comment Share on other sites More sharing options...
Mister Denial Posted March 29, 2011 Author Share Posted March 29, 2011 Hi fkhan,thanks for your input, but it looks like the code you pasted was removed for some reason. Could you please post the fix again?Thanks in advance! Link to comment Share on other sites More sharing options...
fkhan Posted March 31, 2011 Share Posted March 31, 2011 HiModify 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 More sharing options...
Timpet Posted May 30, 2011 Share Posted May 30, 2011 I will suggest adding just in function hookfooter ust below the gobal vars: $protocol_content = @$_SERVER['HTTPS'] == "on"?"https://":"http://"; This will overwrite the var and fix this issue. Link to comment Share on other sites More sharing options...
Mister Denial Posted July 2, 2011 Author Share Posted July 2, 2011 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 More sharing options...
Timpet Posted July 2, 2011 Share Posted July 2, 2011 Add it just before hookfooter in /modules/statsdata/statsdata.php My fix works, dont know about the other one Link to comment Share on other sites More sharing options...
moony1234 Posted July 14, 2011 Share Posted July 14, 2011 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 More sharing options...
moony1234 Posted July 23, 2011 Share Posted July 23, 2011 Bumpy... Link to comment Share on other sites More sharing options...
Recommended Posts