fread(): supplied argument is not a valid stream resource /Subs-Package.php

Started by T3CHN0, October 26, 2011, 08:44:29 AM

Previous topic - Next topic

T3CHN0

I am trying to install some Mods but don't matter what ones I try ...  the forum is fresh install and data base,
everything I try to install gives me a 500 Error after about 10 minutes of waiting and puts like 8000 plus of errors on my logs with this issue
"2: feof(): supplied argument is not a valid stream resource" '''''is Subs-Package.php Line: 2816''''' 
"2: fread(): supplied argument is not a valid stream resource '''''''in Subs-Package.php Line: 2817'''''

over and over the same errors... no matter what mod I try to install...

I did start off OK and got about 10 mods installed then next day no more..
I tried changing all my saurce files to 777 as i read somewhere else but no luck.

My host is bluehost, I have 3 other forums I look after all on the same host and no problems.
Only differance from the first 3 forum's is that they all stated from RC3 or RC5 and got upgrades
this new site is fresh but has error's  "why"

Can someone please help me.  I have no idea why this is doing this.

T3CHN0

as I got no support on this I have been trying allot of things, but found my answer.
I thought why not try the Subs-Package.php from an RC3 install backup I have.
and wow it works no more errors in my logs and I can install mods again.

there is a draw back, on first attempt the mod will not install but wait it out
for 5 minutes and once the page times out go back and try again and it works perfectly.

there must be a bug in the 2.0.1 Subs-Package.php as to why others are getting the same error.

this fixed my problem annoying to wait the 5 minutes but hay at least I can move forward now.

cheers

carsch

I think you're right about this being a bug.  My Error Log was in the same kind of downward spiral and installing the 2.0 Subs-Package resolved it.

T3CHN0

I am glade my findings helped you, just hope it helps SMF realize there is a bug and we can expect an update to 2.0.1.
Thanks for letting us know, I'm sure others will find this topic and it will help them as well.
Cheers

Illori

you know reporting bugs in the wrong board will almost guarantee that the developers will not see it, and we can not guarantee that the developers will fix this for the next release.

T3CHN0

I originally posted this topic as a bug report before I found my answer and my reply was this "is not a bug and to post
my problem in the SMF 2.X support". So I remove my post from there and posted it here but got no help with it.

Then after a lot of trying different things is when I found my own answer so I shared it with everyone
in the hope it would help someone else 'and it did'
If you feel it's a bug as well then maybe you can report it and they might listen to you!!!

Illori


T3CHN0

here you go, this was my answer http://www.simplemachines.org/community/index.php?topic=459757.new;topicseen#new
even though doing this works, SMF don't see whats the difference between the files.
got a few links to follow on it as well but for me easier just to change the file to an older one to fix the problem.


wickedgood

I am having the same issue with a new forum I'm working on.

Fresh install. First few mods went OK now I get errors for any package I try to install.

Subs-Package.php lines 2816 and 2817


Illori

please open a separate thread for your issue, this thread belongs to someone else.

T3CHN0

no it's ok, same error I started with and got no support. He came here looking for help so just follow on the posts
any other answers to help others fix this problem with SMF package installer would be best found in one place
then having to search all over the forum for answers don't you think.

rename your Subs-Package.php to Subs-Package.bck and try this one from 2.0 RC3
when you install don't rush it. if like mine you might have to wait 5 minutes for it to time out
then use your back browsers arrow to go back to the mod install and try again.

this is what I have to do and always works perfect 2nd try on the install

if no good then just remove this file and rename yours back to Subs-Package.php

Illori

no it is not ok to have it all in one thread, the way the support team works we need each issue from each person in a separate thread so that we can make sure everyone gets their answer solved, and we have no proof that the other problem is the same exact issue or caused by the same thing.

T3CHN0


ziycon

The following setting is probably OFF in your PHP settings. This setting can only be set in php.ini due to security reasons.
Quoteallow_url_fopen
This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers.

Advertisement: