Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Having a nightmare

Good Evening All,

I did a site a for a client and its hosted at www.edgeofcinema.com (WordPress) and it's working fine. Then the clients wanted their sister site the same layout just different colours and theme, so I have created a new WordPress install and done it identical to the first one. However I have uploaded it to www.forevercinema.com and for some unknown reason to me I have had a nightmare.

Firstly this are local errors before upload I had a work page the same as the first site and for some reason on the new site it is giving an "Uncaught TypeError: Object [object Object] has no method 'fancybox'" in console I don't understand why as it is the same as the original site like literally a copy with different content.

Secondly this is an error on the live forevercinema.com domain, the links are throwing a 500 error and I am baffled. The links were working locally and now nothing.

I am pulling my hair out here. Any help would be greatly appreciated and then hopefully my sanity will return.

Thanks Adam

3 Answers

Anthony Moore
Anthony Moore
2,282 Points

For your 500 error, try re-saving your permalinks and see if that resolves the issue.

Thanks for answering, I will have a look into these now :)

Yup. Strange that, I went into permalinks changed nothing and clicked save and it works. +1 Will look into the scripts not loading now.

Anthony Moore Checked the scripts and the ones necessary for the sites function mainly fancybox are all included, it's the same functions file. Baffled think I may need a nap and some new eyes.

Anthony Moore
Anthony Moore
2,282 Points

Your theme on www.forevercinema.com is not loading some of your scripts.

I would ensure that these scripts are actually uploaded to the server and they you are including them in your theme correctly.

Doru Marginean
Doru Marginean
2,290 Points

Hi Adam,

As I can see you don' t have the "jquery.validate.js" file on your server ( http://www.forevercinema.com/ ). The path to the logo you have in the footer is not correct. Try using absolute paths:

eg.

<img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="logo" />

Cheers for the heads up on the absolute paths, that was sending me insane didn't think to do it that way. Will get them fixed now.