marit Posted November 26, 2013 Share Posted November 26, 2013 Hi there I am new to php. I manage 4 website for my company and I have a problem with a php page that has javascript in it The same page is on 3 of my websites and on 2 of them they display correctly. One the main website it does not work and I am at a loss to what is wrong. The person that created this page is no longer at the company and with my little knowledge I dont know where to start looking for the error. The websites are build in wordpress. Here is the working page http://regenesys.in/video/ Her eis the page that is not working correctly - http://regenesys.co.za/video/ (note that clicking on the 'Leadership Conversations', 'Media' and 'forums' does not load the other youtube videos as it does on the first site) I would really appreciate any help! Mari Quote Link to comment https://forums.phpfreaks.com/topic/284280-php-and-javascript-not-working-correctly/ Share on other sites More sharing options...
Ch0cu3r Posted November 26, 2013 Share Posted November 26, 2013 The urls for loading the various javascript files is pointing to http://localhost/ This is what is displayed in my browser console GET http://localhost/regenesys-rebuild/wp-content/plugins/nextgen-gallery/produ…xtgen/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.css?ver=3.7.1 404 (Not Found) (index):153 GET http://localhost/regenesys-rebuild/wp-content/plugins/nextgen-gallery/produ…xtgen/modules/lightbox/static/fancybox/jquery.easing-1.3.pack.js?ver=3.7.1 404 (Not Found) (index):527 GET http://localhost/regenesys-rebuild/wp-content/plugins/nextgen-gallery/produ…extgen/modules/lightbox/static/fancybox/nextgen_fancybox_init.js?ver=3.7.1 404 (Not Found) (index):529 GET http://localhost/regenesys-rebuild/wp-content/plugins/nextgen-gallery/produ…n/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.pack.js?ver=3.7.1 404 (Not Found) (index):528 event.returnValue is deprecated. Please use the standard event.preventDefault() instead. These four JavaScript files need to be loaded from regenesys.co.za not localhost. Perhaps this is the issue? Quote Link to comment https://forums.phpfreaks.com/topic/284280-php-and-javascript-not-working-correctly/#findComment-1460134 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.