post.php error (page not pulling post data)
-
Hi all,
I’ve just launched a site using the Slate theme.
https://dancameron.org/wordpress/scattered-theme-slate-10/It appears as though the author has yet to change it to a 2.0+ compatible theme, however, I badly wish to use it and was hoping to get some help here.
After the initial install we were getting this error when visiting the full page of a post.
Warning: main(post.php) [function.main]: failed to open stream: No such file or directory in /home/politic7/public_html/wp-content/themes/slate/single.php on line 11 Warning: main(post.php) [function.main]: failed to open stream: No such file or directory in /home/politic7/public_html/wp-content/themes/slate/single.php on line 11 Fatal error: main() [function.require]: Failed opening required ‘post.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/politic7/public_html/wp-content/themes/slate/single.php on line 11
I’m new to this so I wasn’t quite sure what to make of it.
Just for kicks, I stripped this out of the page file.
<?php require('post.php'); ?>
The page now displays without errors, but it doesn’t pull the post data so it’s just a blank.
How can I make the page pull the post data to display the text for that post?
Thanks in advance for the help!
-Eric
- The topic ‘post.php error (page not pulling post data)’ is closed to new replies.