Title: Not loading correct JS files.
Last modified: August 21, 2016

---

# Not loading correct JS files.

 *  Resolved [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/)
 * Hi,
 * I’ve been trying to get this to work for me, however I keep hitting the same 
   issue.
 * My issue is that the page loads the div for the composition and is correctly 
   sized for it, however nothing displays.
 * The .js isn’t loading – it seems to be trying to load it after the page name.
   I can’t publish the site address, but the url structure is like this:
 * [http://www.website.com/page/edge_includes](http://www.website.com/page/edge_includes)
 * I have tried the following:
 * I have read through other posts on here and have tried the Dev version too.
    
   I’ve also enabled the jQuery conflict mode as well as the Debug mode. I’ve disabled
   other plugins but it’s made no difference.
 * Any help you can give would be much appreciated. I know I’m not making it easy
   by being unable to publish the address and I hope I’ve not missed something and
   are now wasting your time. I appreciate all the work and effort you’ve put in
   to this plugin and the support you provide.
 * Thanks in advance.
 * [https://wordpress.org/plugins/edge-suite/](https://wordpress.org/plugins/edge-suite/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636242)
 * Hi,
 * thanks for the thorough testing before posting the issue! Did you check the console,
   any error messages there? Can you find the …_preloader.js and edge-wordpress.
   js in your page source code?
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636244)
 * That was the quickest response ever! Thanks!
 * I’ve found the following:
 * <script type=”text/javascript” src=”[http://www.website.com/wp-content/plugins/edge-suite/includes/edge-wordpress.js”></script&gt](http://www.website.com/wp-content/plugins/edge-suite/includes/edge-wordpress.js”></script&gt);
   
   <script type=”text/javascript” src=”[http://www.website.com/wp-content/uploads/edge_suite/project/animation_1/animation_edgePreload.js”></script&gt](http://www.website.com/wp-content/uploads/edge_suite/project/animation_1/animation_edgePreload.js”></script&gt);
 * Is that what you mean?
 * Thanks
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636250)
 * Hi,
    yeah, this means the files are integrated correctly, there must be JavaScript
   errors in the console then.
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636253)
 * Yes. All 404 errors.
 * That’s what I meant about it trying to load the js from the incorrect location.
 * Here’s an example of what it’s trying to do:
 * [http://www.website.com/example-page/edge_includes/edge.3.0.0.min.js](http://www.website.com/example-page/edge_includes/edge.3.0.0.min.js)
 * Is there a file I can alter to force it to load from the correct directory?
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636256)
 * If you get this error then I’m 99% sure you are not using the latest dev version
   of the plugin. Did you use the version linked in the FAQ. Latest dev doesn’t 
   mean latest version, dev is always fresh from the repository. The latest version
   doesn’t contain the adjustments for EA3 yet as its still under testing.
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636264)
 * I’m pretty sure I used the one from the link – though previously I hadn’t uploaded
   it manually. I have done so now, and uploaded my composition:
 * The file animation.oam has been uploaded.
    Auto detection of stage dimensions
   successful. The following libraries have been updated: jquery-2.0.3.min.js edge.
   3.0.0.min.js
 * animation was successfully imported.
 * I’m still getting the same result on the page though.
 * I really appreciate your help.
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636274)
 * Hmm, ok, then that’s not it. By taking a closer look, your directory structure
   looks strange [http://www.website.com/page/edge_includes](http://www.website.com/page/edge_includes)
 * Usually it’s something like [http://www.website.com/wp-content/uploads/edge_suite/&#8230](http://www.website.com/wp-content/uploads/edge_suite/&#8230);
 * Are you doing anything special? Maybe check upload path setting on the general
   settings page.
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636279)
 * Sorry, where do I find the upload path setting? The general wordpress settings
   don’t seem to include that for me.
 * But, yes, I think that’s the source of the issue. Is there a line in the code
   I can change to force it to look in the right place?
 * Thanks.
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636284)
 * It may be worth me telling you that it’s [http://www.website.com/page](http://www.website.com/page)
   that I’m trying to run it from, so all it’s doing is loading the files relative
   to the current page.
 * An absolute path would be okay if I knew where to put it?
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636289)
 * That is a bit odd, take a look at [http://wordpress.org/support/topic/wordpress-35-where-the-option-settings-media-upload_path-gone](http://wordpress.org/support/topic/wordpress-35-where-the-option-settings-media-upload_path-gone)
 * But it states that
 * >  The UI will be only removed if the setting is empty or the same as the default
   > wp-content/uploads. When you have changed the setting it will be still displayed.
 * So you should either have the default setting and EdgeSuite would just work or
   you should see the UI option. But even in that case Edge Suite should be able
   to work with it. Really hard to tell without looking at the page…
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636303)
 * Odd.
 * All the media is uploaded to the normal place, even the Edge files have uploaded
   to:
    [http://www.website.com/wp-content/uploads/edge_suite/project/animation_1/](http://www.website.com/wp-content/uploads/edge_suite/project/animation_1/).
 * Are there any other things you can think of?
 * Is there not a place in your code where I can specify an absolute url?
 * Thanks.
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636309)
 * All the paths are set in edge-suite.php right at the top in edge_suite_init_constants()
   and its being used to in includes/edge-suite-comp.inc in edge_suite_comp_render().
   So its really strange that these two don’t seem to be the same for you. In your
   page source code, what’s the value of ‘AdobeEdge.pathPrefix.libs’?
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636401)
 * Hi,
 * Sorry for the delay in getting back to you.
 * This is what it says:
 * `<script type="text/javascript">window.AdobeEdge = window.AdobeEdge || {};window.
   AdobeEdge.pathPrefix = window.AdobeEdge.pathPrefix || {};AdobeEdge.pathPrefix.
   libs = 'http://www.website.com/wp-content/uploads/edge_suite';AdobeEdge.pathPrefix.
   comps = AdobeEdge.pathPrefix.comps || {};AdobeEdge.pathPrefix.comps['EDGE-101941228']
   = 'http://www.website.com/wp-content/uploads/edge_suite/project/animation_1';
   AdobeEdge.edgesuiteDebug = 1;</script>`
 * It seems like everything is actually pointing to the right path within your code,
   but it’s just not resolving to the right URL for the uploads.
 * I’m going to take another look at the uploads path option, as it would make sense
   that that’s the problem, but I can’t see how it would be, to be honest. It’s 
   just appending the path to the end of the existing url rather than going to the
   right place. Very odd!
 *  Thread Starter [CatCalledJames](https://wordpress.org/support/users/catcalledjames/)
 * (@catcalledjames)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636403)
 * Got it working!
 * It wasn’t a problem with your code at all. There was a fault in my themes header.
   php file which was calling another version of js. I removed this and now it’s
   working beautifully.
 * I should’ve checked that first! Sorry for wasting your time and thank you so 
   much for all your help and for a great plugin!
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636450)
 * Glad you got it to work! Please consider voting for the plugin if you like it.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Not loading correct JS files.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/edge-suite.svg)
 * [Edge Suite](https://wordpress.org/plugins/edge-suite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edge-suite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edge-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/edge-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edge-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edge-suite/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [ti2m](https://wordpress.org/support/users/ti2m/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/not-loading-correct-js-files/#post-4636450)
 * Status: resolved