Post Reply  Post Thread 
receiving this error on home page
Author Message
cher41
Junior Member
**


Posts: 2
Group: Registered
Joined: Aug 2009
Status: Offline
Reputation: 0
Post: #1
receiving this error on home page

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

08-20-2009 05:11 AM
Find all posts by this user Quote this message in a reply
Brian
Administrator
*******


Posts: 122
Group: Administrators
Joined: Jan 2006
Status: Offline
Reputation: 0
Post: #2
RE: receiving this error on home page

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 Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro
08-23-2009 12:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cher41
Junior Member
**


Posts: 2
Group: Registered
Joined: Aug 2009
Status: Offline
Reputation: 0
Post: #3
RE: receiving this error on home page

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

08-23-2009 01:44 PM
Find all posts by this user Quote this message in a reply
Brian
Administrator
*******


Posts: 122
Group: Administrators
Joined: Jan 2006
Status: Offline
Reputation: 0
Post: #4
RE: receiving this error on home page

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


Brian Earley
Utopia Software
utopiasupport@gmail.com
http://www.utopiasoftware.net
Software: Utopia News Pro

This post was last modified: 08-30-2009 01:12 PM by Brian.

08-30-2009 01:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joff
Junior Member
**


Posts: 37
Group: Registered
Joined: Jun 2009
Status: Offline
Reputation: 0
Post: #5
RE: receiving this error on home page

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


Programmer / Web Designer / Server Admin
joffcom.net
azurebot.com
10-06-2009 04:54 AM
Find all posts by this user Quote this message in a reply
Devilen
Junior Member
**


Posts: 18
Group: Registered
Joined: Dec 2007
Status: Offline
Reputation: 0
Post: #6
RE: receiving this error on home page

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.

10-16-2009 06:30 AM
Find all posts by this user Quote this message in a reply
joff
Junior Member
**


Posts: 37
Group: Registered
Joined: Jun 2009
Status: Offline
Reputation: 0
Post: #7
RE: receiving this error on home page

Can you not install pear properly for them maybe that will help solve your problem


Programmer / Web Designer / Server Admin
joffcom.net
azurebot.com
10-16-2009 07:23 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: