News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Whenever I install a package, I get an error.

Started by bros, May 12, 2008, 02:49:50 PM

Previous topic - Next topic

bros

It isn't an error that doesn't allow it to be installed, but it does clog up the error log:

2: fread(): supplied argument is not a valid stream resource
File: /home/xxxx/public_html/boards/Sources/Subs-Package.php
Line: 2719 

2: feof(): supplied argument is not a valid stream resource
File: /home/xxxxx/public_html/boards/Sources/Subs-Package.php
Line: 2718 

karlbenson

Check the chmod permissions of the Packages folder. Make sure its 777
Check those of the folder inside it called temp. Make sure thats set to 777 aswell.

Is open_basedir in effect?
is safe mode enabled?

bros

Quote from: karlbenson on May 14, 2008, 11:32:51 PM
Check the chmod permissions of the Packages folder. Make sure its 777
Check those of the folder inside it called temp. Make sure thats set to 777 aswell.

Is open_basedir in effect?
is safe mode enabled?

Packages = 777
/Packages/temp = 777

open_basedir, duno what that is, so it probably isn't

Safe mode = no





metallica48423

can you provide a phpinfo.php? (What is phpinfo.php?)

do the webserver's error logs provide any more information regarding this?

the error itself says that its unable to find, and thus, unable to read the file in question -- what code is on those lines of that file?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool


metallica48423

ok... open basedir isn't on.  safe mode is off

is anything being put into the /temp folder?

my best idea is that its not being allowed to extract the mod into the directory and thus when it tries to read the files from the folder its not there, thus the invalid stream resource
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

bros

Quote from: metallica48423 on May 29, 2008, 05:02:10 PM
ok... open basedir isn't on.  safe mode is off

is anything being put into the /temp folder?

my best idea is that its not being allowed to extract the mod into the directory and thus when it tries to read the files from the folder its not there, thus the invalid stream resource

It's set to 777

metallica48423

Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

SlammedDime

#12
Lets take a different approach.  CHMOD the Packages/backups directory to 777.  If it still doesn't work, go to Packages > Options and uncheck Create Backups.... and then try.

The error is occuring in the backup function (creates a backup of your files before installing the mod).  so we're not even getting to installing yet.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

bros

Quote from: metallica48423 on June 01, 2008, 03:50:24 AM
hmm, is there anything in the directory?

The only thing in /temp is ad_mod_v2-3-1_SMF_vbeta3Public

I unchecked the make backup thing. Let's see what happens.

And it installed/uninstalled without error.

There is only one error left on my boards:
8: Undefined offset: 36
File: /home/xxxxx/public_html/boards/Sources/Subs-Boards.php
Line: 931

metallica48423

what is on line 931 of Sources/Subs-Boards.php?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

bros

Quote from: metallica48423 on June 01, 2008, 09:52:17 PM
what is on line 931 of Sources/Subs-Boards.php?

logAction('delete_board', array('boardname' => $boards[$id_board]['name']), 'admin');

Oldiesmann

That's a bug that has been fixed in Beta 4. SMF is reordering existing boards before logging anything, and this causes $boards to be reloaded, so by the time it gets around to the actual logging, there isn't any data for that board in $boards.

To fix it:

Sources/Subs-Boards.php

Find
reorderBoards();

// Let's do some serious logging.
foreach ($boards_to_remove as $id_board)
logAction('delete_board', array('boardname' => $boards[$id_board]['name']), 'admin');


Replace
// Let's do some serious logging.
foreach ($boards_to_remove as $id_board)
logAction('delete_board', array('boardname' => $boards[$id_board]['name']), 'admin');

reorderBoards();
Michael Eshom
Christian Metal Fans

Advertisement: