/    Sign up×
Community /Pin to ProfileBookmark

scrits cant be loaded

I’m posting here, because I’ve tried the joomla forums and not got any response. You guys are javascript guys.
I’m having some issues on a site. A module stopped working. The most I’ve gotten out of the developer is that they’re saying the module can’t load it’s javascript files.
I’ve checked the headers, and the calls to the scripts are present. I’ve tried to replicate the problem on a test site, but despite installing all the same templates, modules and components, the module is performing fine on the test site.
On the live site, the module is coming out completely mangled. This persists across templates (I have two separate copies with slight modifications) and on different pages which load different modules.
[url]http://canwestenglish.com/index.php/en/classes[/url]

I’ve also compared the headers to the test site on which its working and can’t find any obvious issues calling the script files. The syntax is the same.

This module was working fine for 2 days and then suddenly stopped working. The only thing I did was install google analytics and an associated plugin (which puts javascript in the header). I uninstalled those and it continues not to work, and installing those same modules on the test site doesn’t give it any problem.

Could someone who is far better at javascript than me have a look at the headers on this page, and see if there is something they notice as being wrong that might stop the javascript files from being loaded. I’ve checked the files themselves, they’ve been untouched according to the FTP modified dates. I even went ahead and uninstalled the module and reinstalled it still doesn’t work. I will note that some javascript still seems to be working on the page as mousing over the mangled blue words will get you the pop-up that is supposed to be associated with them.

You can see what this module is supposed to look like here:
[url]http://demo.smartaddons.com/extensions/joomla17/index.php?option=com_content&view=featured&Itemid=633[/url]

theme4. Unfortunately the dev who wrote and sold this, doesn’t work on weekends, so I’m on my own with a mangled live site for a couple days.
Any help is greatly appreciated.

if someone wants, I’ll cut and paste the whole header here, but it’s a fairly long bit of code as the module loads it’s various styles into the header (not sure why) and I think you need to look at the whole thing to see if something somewhere is out of place and stopping those files from loading.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Logic_AliFeb 04.2012 — The most I've gotten out of the developer is that they're saying the module can't load it's javascript files.[/quote]
Which should be more than enough information to lead you to investigate why:
&lt;script src="<a href="http://www.webdeveloper.com/forum/view-source:http://modules/mod_sj_content_listing/assets/js/ytc.jquery-1.5.min.js">//modules/mod_sj_content_listing/assets/js/ytc.jquery-1.5.min.js</a>" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="<a href="http://www.webdeveloper.com/forum/view-source:http://modules/mod_sj_content_listing/assets/js/easypaginate.js">//modules/mod_sj_content_listing/assets/js/easypaginate.js</a>" type="text/javascript"&gt;&lt;/script&gt;
[/quote]
Invalid path.
Copy linkTweet thisAlerts:
@crossmrauthorFeb 05.2012 — Which should be more than enough information to lead you to investigate why:

Invalid path.[/QUOTE]


Well obviously I had been trying to investigate why, but I never expected it would be something like that, and obviously didn't pick up on. I just saw that the JS file statements were there. Those are generated automatically by the module on page load, and I can't see any reason why they'd be generating an invalid path. Especially since the same module wasn't generating an invalid path before, and on the test site it's not either (all installed from the same files)

Thank you for catching that.

Obviously the developer didn't catch that either, they only told "check what you may have done that could have prevented it from loading it's javascript files" implying that I did something that may have interfered with it, but I don't even know where to find those path statements and I surely never edited them.

Thanks again!

Off to dig in the code
×

Success!

Help @crossmr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...