News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Having problems with the package manager?

Started by [Unknown], February 20, 2005, 12:32:26 AM

Previous topic - Next topic

Sandwich

Quote from: patrick on March 30, 2005, 04:41:54 PM
Bypassed the Safe_mode.
It takes some time but ik worked for me

- At 1st safe mode error : go with ftp client to the packages folder
- delete the temp folder
- create temp folder an chmod it to 777
- go back to page, click on REFRESH PAGE
- repeat this at al safe mode errors.

With de permission denieds, find the files and chmod them manualy.
( or do a complete chmod to you're site  ::))

took me 10 minutes to upgrade to 1.0.3.

I've been trying to install the Show Multiple Badges mod into a clean 1.0.3 install, but ran into the safe mode problem. So then I semi-successfully used the method patrick here used, but after a few back-and-forth steps between the browser and the FTP client, I got to a slightly more serious problem:
Quote
Fatal error: Cannot redeclare getgroupstars() (previously declared in /home/www/web20/html/smf/Sources/Load.php:1233) in /home/www/web20/html/smf/Sources/Load.php on line 1256

And that's it. White page, nothing displayed but that.

Help?

Oldiesmann

Go into Load.php and delete one of the getgroupstars() functions (there should be two of them - one after the other). This has happened to several others before, although I'm not sure exactly what causes this.
Michael Eshom
Christian Metal Fans

Sandwich

Quote from: Oldiesmann on April 08, 2005, 10:02:54 AM
This has happened to several others before, although I'm not sure exactly what causes this.

Well, if it helps at all, I can probably narrow down the cause a bunch.

I installed a fresh 'n clean SMF 1.0.3 onto a server with PHP safe_mode set to on. Created a few categories and boards, but didn't have any problems until I tried to install the Multiple Badges mod I linked to above. It gave me typical "safe mode restriction" errors, so I used Patrick's method of recreating the temp folder via FTP so it would have the FTP UserID. Once I'd gone through the 4 or 5 stages of bypassing the safe mode, I got the redeclaration error in load.php.

alvinleephd

Quote from: Gidget on April 04, 2005, 10:42:11 AM
Quote from: patrick on March 30, 2005, 04:41:54 PM
Bypassed the Safe_mode.
It takes some time but ik worked for me

- At 1st safe mode error : go with ftp client to the packages folder
- delete the temp folder
- create temp folder an chmod it to 777
- go back to page, click on REFRESH PAGE
- repeat this at al safe mode errors.

With de permission denieds, find the files and chmod them manualy.
( or do a complete chmod to you're site  ::))

took me 10 minutes to upgrade to 1.0.3.

Just wanted to thank you Patrick for these instructions  :D

I've just successfully upgraded to 1.0.3 with Safe Mode enabled.

I did get stuck for a while when I would CHMOD a file and it would just reject it again - then I found from another post (thanks [Unknown]) that if I also CHMOD'd the directory that the file resided in, it all came good and I could move onto fixing the permissions of the next file  ;)

All this might seem like a little victory to you gurus, but to a Noob like me it was great to be able to work through the issues myself and successfully install the upgrade.

Cheers

Gidget

Patrick, I tried your instructions; It wouldn't let me delete the temp folder, nor would it let me chmod any of the files inside of the folder.  This is really screwed up.. will this package manager problem be fixed in 1.1? :(
Worthless Forums-A Place to Kill Time.  Get your fix.

toontastic

Quote from: Oldiesmann on April 07, 2005, 09:42:56 PM
Don't know what to tell you about execution, but the other two are probably due to improper CHModding on those folders (they need to be 777).

I'm sure I've done this though. Is there a way to install mods by hand this package manager doesn't seem to work to well and I really need to get these mods added.

toontastic

Just pushing back up in case anyone can help. Is there a way to install the mods without package manager ?

Owdy

Yes, manually. Read .mod file and do what it says -> <edit file> <addafter> etc.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

toontastic


dragon52225

well help me, I can use the file, I fill out the ftp info, then I get this
QuoteAn error occured while trying to connect. The error was:
It doesn't say what error comes up.

Spurblade

We'll the same goes with me. After applying patrick's solution, and comment of a successful installation. This err goes out after trying to test and go back to the home. Now I can't run my SMF, what seems to be the problem ?

Fatal error: Cannot redeclare smfshout() (previously declared in /home/eric1/public_html/smf/Sources/Subs.php:1822) in /home/eric1/public_html/smf/Sources/Subs.php on line 1829

Spurblade

OK, I applied the same solution as above that is I deleted the redundant config but I can't see where my shoutbox is ( the package that I installed )

Oldiesmann

Yeah. Download the package to your hard drive and extract all the files. Then, open the ".mod" file in a text editor such as Notepad and follow the instructions. If you don't see a ".mod" file, look for something like "install.xml" or "modification.xml" and open that up in a text editor. However, the XML format is a bit trickier to understand:

<search position="before"> means that the following code should come before the code that you're adding
<search position="replace"> means replace the following code with the code that you're adding
<search position="after"> means that the following code should come after the code that you're adding
<add>...</add> = the code we're adding
Michael Eshom
Christian Metal Fans

Vicious

I am having trouble adding in modifications. I try to use package manager and it tells me


Sorry, your PHP configuration doesn't have support for zlib. Without this, the package manager cannot function. Please contact your host about this for more information.

8: Undefined index: mm_mm
File: c:\ibserver\www\smf\Themes\default\Themes.template.php (eval?)
Line: 452

im new at this so if ne one can help talk to me thanks

JYM

I browsed for the redirection board's mod, I downloaded it, I clicked apply mod, I typed in my ftp info, and so far nothing said "Error"... but when I check under "installed mods", it isn't in there... why is that? i thot i just installed it..

Dannii

Vicious, without zlib you wont be able to use it at all. You'll have to uncompress the mod yourself and then make the modifications manually.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Tammie

Before I try some of the tips previously in the thread I just want to verify my problem.

I am trying to install the chat package but it keeps asking for FTP username and password when it tries to execute code: add_settings.php, #11 down.  I *think* this may be because I am still installing using my ip address because DNS hasnt kicked in yet.  I had to manually chmod to install the board and I tried to chmod all files and folders it looks like it is asking for but still it wont install.

Is it because localhost is looking at the dns name?

[Unknown]

No, it's asking for FTP information because of the files it's trying to modify.

-[Unknown]

cdR

hi all,

i cant even apply mod for SMFMamboMod_1.3.1.zip

ive try everything n even read all forum about this but still no luck. BTW there if no error for me n the ftp box still appear.

im stuck here


try everything on FTP server, local path... pls help.

[Unknown]

Have you used the attachment in this topic to determine your path?

-[Unknown]

cdR

where to pun that fix_owbnership.php...   need to run it??

im a noob.

Advertisement: