Forum

Thread tagged as: Question

Error with PHP Include in Perch Blog

I am trying to "brand" a blog, i.e. by including content that is used elsewhere in the site, however I get the following in the blog.php file which I am trying to adapt:

Warning: include(includes/head/1top.php): failed to open stream: No such file or directory in /home/sitemaster/public_html/blog/post.php on line 13

Warning: include(): Failed opening 'includes/head/1top.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sitemaster/public_html/blog/post.php on line 13

Am I doing something wrong, since I thought it would be the same as working with any other .php file

Thanks again

Garth Holmes

Garth Holmes 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

It looks like your path is incorrect. The error message is "No such file or directory".