UtopiaSoftware Forums

Full Version: receiving this error on home page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Installation seemed to go good. I used the admin to change my settings like I wanted them.

I added the php includes on the page where I wanted the news to go, but when I go to this page I get the following message:

Warning: include(/update/news.txt) [function.include]: failed to open stream: No such file or directory in D:\Hosting\4805026\html\index.php on line 36

Warning: include() [function.include]: Failed opening '/update/news.txt' for inclusion (include_path='.;C:\php5\pear') in D:\Hosting\4805026\html\index.php on line 36

I have checked to make sure all the files are located as they should be and it seems fine.

Please advise!
Thanks
Cher41,

Have you generated a news cache yet? news.txt only exists after having done so. You can set it up to do it automatically after posting news, or you can generate it manually. If not, you must include news.php instead. If you have generated a cache already, it might be an interesting test to switch to news.php and see if that at least works.

Thanks
Brian,

Thank you for the post!

I did generate a cache and I also thought about trying the news.php but this got the same warning.

I have checked all files and locations and it should be fine. I am wondering if it has something to do with the server.

Thanks again!



Brian Wrote:Cher41,

Have you generated a news cache yet? news.txt only exists after having done so. You can set it up to do it automatically after posting news, or you can generate it manually. If not, you must include news.php instead. If you have generated a cache already, it might be an interesting test to switch to news.php and see if that at least works.

Thanks
Interesting. If you simply navigate to news.php from a browser, does it properly render? Likewise, does news.txt properly show the HTML you'd expect?

I have to wonder if it's simply an issue of improperly pointing to the file. Would you be able to tell me the URL to the page on which you're trying to include news, the URL to UNP itself, and the specific code you're using to include news?

Thanks
looks to me like a wrong dir...

Code:
Warning: include() [function.include]: Failed opening '/update/news.txt' for inclusion (include_path='.;C:\php5\pear') in D:\Hosting\4805026\html\index.php on line 36

That tells me that your site files are located in D:\Hosting but it is looking on C:\ for your php, Try double checking your directorys and links again
joff the C:\ Is looking for a PHP file called pear thats not anythign to do with the users install it has to do with the install of Pear on the server.

Looks like the user doesnt have pear installed on the server for the PHP install to be able to use to me.
Can you not install pear properly for them maybe that will help solve your problem
Reference URL's