Support » Themes and Templates » Wrong Unix path on only certain themes…?

  • bi11i


    I’m having some troubles with certain themes. For some reason, only some (and not all) of my themes show this

    Warning: main(post.php): failed to open stream: No such file or directory in /usr/local/etc/httpd/htdocs/blog/wp-content/themes/connections/index.php on line 25

    Fatal error: main(): Failed opening required 'post.php' (include_path='') in /usr/local/etc/httpd/htdocs/blog/wp-content/themes/connections/index.php on line 25

    The path to my WP installation is /www/htdocs/blog so I’m not sure why or where this path information is coming from. I’m using a hosting package which looks to be sitting on Unix. ‘Connections’ is the first theme I noticed having this trouble. Several others do to, in fact some generate a SQL error – otherwise, everything looks and feels fine…

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kafkaesqui


    Yep. Locate this line in the theme’s index.php (and other templates which call post.php):

    <?php require('post.php'); ?>

    And change it to:

    <?php require(TEMPLATEPATH . '/post.php'); ?>




Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong Unix path on only certain themes…?’ is closed to new replies.