TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 508
  • Total: 508

fopen, fread and fclose errors - missing file?

Started by akyhne, April 01, 2009, 07:43:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Akyhne

Link to my site: http://forum.teamhd.org
SMF version: SMF 1.1.8
TP version: TP 1.0 beta 3
Theme name and version: All themes
Mods installed: Don't think this is relevant

I have the following errors in my log:

Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1521


Apply Filter: Only show the errors with the same message
2: fread(): supplied argument is not a valid stream resource
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1512

2: fopen(http://www.tinyportal.net/tpnews.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1508


2: fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1508

Am I missing a file somewhere?

Akyhne

Hmm, on this link (tpadmin;sa=modules) I have the following errors as well:

2: fclose(): supplied argument is not a valid stream resource
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1479

2: fread(): supplied argument is not a valid stream resource
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1470

2: fopen(http://www.tinyportal.net/tplatestmodules.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1466

2: fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration
File: /somewhere/mysite.com/Sources/TPmodules.php
Line: 1466

G6Cad

Permission issues with your host, they need to set *allow fopen*
You need to contact your host and ask them to change the settings on the server.

Akyhne

I saw people posting about similar issues and they got warned about sequrity issues. So what's the risc and why does TP use functions that are sequrity riscs?

G6Cad

TP itseöf does not come with any security issues what we know about, and fopen are not used with in our script, but in your own content, so one or more of your own added things causes the serrors, not tp itself

Akyhne

fopen, fread and fclose are used in TPmodules.php in the function TPparseRSS(). That's where I have the errors.

Skhilled

Just wondering, do you have an RSS blocks enabled? If so, disable them and see if the errors go away.

Quote2: fopen() [<a href='function.fopen'>function.fopen[/url]]: URL file-access is disabled in the server configuration

That makes me think there's a server issue. Possibly, files not having the correct permissions or not owned by you?

Akyhne

Quote from: Skhilled on April 01, 2009, 01:00:00 PM
Just wondering, do you have an RSS blocks enabled? If so, disable them and see if the errors go away.
No.

I only have the error when clicking some of the TP admin links in the admin center.

IchBin

TPParseRss() is what creates the RSS Feeds. allow_url_fopen and allow_url_include are php settings that allow you to grab a file remotely (like an RSS feed) to parse it and display it on your page. These PHP settings can be a security risk if your PHP script is not written with security in mind. As G6 said, if you don't want these errors, you have to tell your host to enable those settings. You see this error in the TP admin panel because there is an RSS feed in their to display the news etc.

Akyhne

I have full access to my php.ini file at my host, so that's not the issue. the trouble is that I understand it's a sequrity risc. I don't think I have enabled anything that provides rss feed. I only use what you can see on the forum.teamhd.org, nothing else.

This website is proudly hosted on Crocweb Cloud Website Hosting.