-
AuthorPosts
-
June 9, 2014 at 8:55 am #54062
WebmasterParticipantOne main problem throughout my website is that the javascript and jquery is not working. In the console on google chrome I get these errors:
GET http://localhost:13854/careers/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 404 (Not Found)
GET http://localhost:13854/careers/framework/js/dist/site/x-head.min.js 404 (Not Found) localhost/:47
GET http://localhost:13854/careers/wp-includes/js/jquery/jquery.js?ver=1.11.0 404 (Not Found) localhost/:42
GET http://localhost:13854/careers/wp-includes/js/mediaelement/mediaelementplayer.min.css?ver=2.13.0 404 (Not Found) localhost/:37
GET http://localhost:13854/careers/wp-includes/js/mediaelement/wp-mediaelement.css?ver=3.9.1 404 (Not Found) localhost/:38
Uncaught ReferenceError: jQuery is not defined jquery.themepunch.plugins.min.js?rev=4.3.8&ver=3.9.1:89
Uncaught ReferenceError: jQuery is not defined jquery.themepunch.revolution.min.js?rev=4.3.8&ver=3.9.1:8
Uncaught ReferenceError: jQuery is not defined tiled-gallery.js?ver=3.9.1:158
Uncaught ReferenceError: jQuery is not defined x-shortcodes-head.min.js:1
Uncaught TypeError: undefined is not a function jquery.form.min.js?ver=3.50.0-2014.02.05:11
GET http://localhost:13854/careers/wp-includes/js/comment-reply.min.js?ver=3.9.1 404 (Not Found) localhost/:182
GET http://localhost:13854/careers/wp-includes/js/mediaelement/wp-mediaelement.js?ver=3.9.1 404 (Not Found) localhost/:180
GET http://localhost:13854/careers/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=2.14.2 404 (Not Found) localhost/:179
GET http://localhost:13854/careers/framework/js/dist/site/x-body.min.js 404 (Not Found) localhost/:181
Uncaught ReferenceError: jQuery is not defined scripts.js?ver=3.8.1:354
Uncaught ReferenceError: jQuery is not definedAlot of the same repetition to the conclusion being the path is wrong to all the files in the wp-includes folder as it places my page in as a folder. It does this throughout all pages and on my local and developer site.
Is there a way to edit the paths? I cannot seem to find how to edit the paths in the <head> tag.
Wordpress Version 3.9.1
X Theme Version 2.0.0
X-Shortcodes Version 2.3.0
Thank you in advance.
June 9, 2014 at 11:57 am #54155
SupportMemberHey Deanna,
Thanks for writing in. I dont think there will be a problem like this once you’ll be able to publish your site online. This seems to be a problem with how you configured your localhost.
Though, if you can please give this a try:
Are you able to access your WP Admin? If you can, kindly check WP Dashboard > Settings > General. Look at the WordPress Address (URL) and Site Address (URL), that should be “http://localhost/careers/” on both. If not, please change that in to “http://localhost/careers/”.
June 9, 2014 at 1:12 pm #54183
WebmasterParticipantIt does not just do it on one, it does it on all pages. The wordpress address and the site address url are blank as we manually changed it in the database on purpose for version control. So they are set as “/” and the code should be writing as this example:
<script type=”text/javascript” src=”/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=2.14.2″></script>
now it is writing correctly for the files that are coming from wp-content.
Problem I see is that it is not finding the main js files for jquery and javascript along with a number of plugins.
Is there anyway I can change how this is writing/generating the code so I can prevent the srcs from creating the path that is and make it create the correct path?
June 9, 2014 at 2:35 pm #54218
WebmasterParticipantI found a plugin that changes all urls to relative urls. Root Relative URLs is the plugin and it is working on making all the paths relative over absolute for version control, and file transferring for the site url to change.
Thanks for your help. I understand this was a difficult problem. I have been working on a solution for the past 5 days. Hopefully this is a stable solution.
June 9, 2014 at 9:57 pm #54327
ChristianModeratorYou’re welcome Deanna. Just let us know if you need further assistance.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-54062 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
