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

HTML

Karina Seidel
Karina Seidel
8,605 Points

How to make a website - Deleted everything on Cyberduck :(

help. I deleted my cyberduck stuff..now my website shows Fatal error: require() [function.require]: Failed opening required '/home/hikarina/public_html/wp-blog-header.php' (include_path='.:/usr/local/php53/pear') in /home/hikarina/public_html/index.php on line 17 :/ - please help me. it seems like the about and contact stuff from the "how to make a website" course still exist.

Do you have any backup of your website? Cyberduck is like Filezilla right? If you have deleted everything from your host and you don't have a backup anywhere you have to contact your hosting provider about the situation. They might have a backup.

2 Answers

just a guess but your web host may have a back up of your files.

I believe the problem is the forward slash before the path.

This gentleman off of stackoverflow explains it so much better than i could so here it is.

Your path is preceded by a forward slash (/).

In a POSIX compliant system, if you have a path that starts with a forward slash, it means that it is an absolute path. The first forward slash represents the root of the filesystem.

Remove the forward slash from your path and you should then have a path that is relative to page.php.

EDIT: Since relative paths won't work, you can use dirname(FILE) to get the absolute path of the directory where the current file resides.

require(dirname(FILE) . '/includes/sess-start.php');

http://stackoverflow.com/questions/5437453/php-fatal-error-failed-opening-required