WordPress.org

Ready to get started?Download WordPress

Forums

Wrong Unix path on only certain themes...? (3 posts)

  1. bi11i
    Member
    Posted 8 years ago #

    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?

  2. Kafkaesqui

    Posted 8 years ago #

    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'); ?>

  3. bi11i
    Member
    Posted 8 years ago #

    thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic