Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Wrathchild9 on May 01, 2008, 07:06:55 AM

Title: Problem with installing mods
Post by: Wrathchild9 on May 01, 2008, 07:06:55 AM
I have a problem with the mods... I made a temp folder to to the Packages and I made it 777 with Total Commander, and then I want to install a mod, and it says "FTP information required". So I delete cookies to the site, and I try again, but I get "You cannot download or install new packages because the Packages directory or one of the files in it are not writable!" and I can't enter to the folder with Total Commander, but I can make new folder with the same name... What the hell is that? :D
Title: Re: Problem with installing mods
Post by: madfiddler on May 02, 2008, 06:14:49 PM
I'm getting this too in both Opera and IE7

Basically, the "FTP Information Required" section shows the title, but doesn't show the rest of the page where you enter your FTP password, so you cannot continue with the mod install.
Title: Re: Problem with installing mods
Post by: madfiddler on May 02, 2008, 06:45:23 PM
If this is any help to the developers, viewing source of the page to install the mods, this is all that is shown for entering FTP infomation


<td class="catbg">FTP Information Required</td>
</tr><tr>
<td class="windowbg2">

</td>
Title: Re: Problem with installing mods
Post by: Wrathchild9 on May 03, 2008, 05:43:36 AM
Yep.... btw I'm using Firefox 2.0.0.14
Title: Re: Problem with installing mods
Post by: madfiddler on May 03, 2008, 07:14:29 AM
I've also got suexec turned on, and safe mode is turned off.. Anyone please?
Title: Re: Problem with installing mods
Post by: Metal_13 on May 04, 2008, 05:23:23 PM
im also getting an error... is this a bug?
i took a screenshot of mine... i need help with this pls...

i cant see any install button... its just blank at the last part...
Title: Re: Problem with installing mods
Post by: madfiddler on May 04, 2008, 09:04:32 PM
Either this problem is solved elsewhere and we're not getting any replies - so we're doing something so stupid it doesn't warrent a reply. Think I'll take advantage of my charter membership and create a support ticket. I'll post the results when I get something.
Title: Re: Problem with installing mods
Post by: SleePy on May 05, 2008, 12:39:42 PM
I think this may be related to this bug: Bug #1899: Can't uninstall a package when FTP info is require (http://dev.simplemachines.org/mantis/view.php?id=1899)
I will need to wait until I get home though to look up the revision edits and provide the changes that where done for you. Unless another team member is able to do this :)
Title: Re: Problem with installing mods
Post by: SleePy on May 05, 2008, 11:50:23 PM
Try this..

Open Packages.php

Find:
     if (!empty($chmod_files))
     {
         $ftp_status = create_chmod_control($chmod_files);
        $context['ftp_needed'] = !empty($ftp_status['files']['notwritable']);
     }


Replace:
     if (!empty($chmod_files))
     {
         $ftp_status = create_chmod_control($chmod_files);
        $context['ftp_needed'] = !empty($ftp_status['files']['notwritable']) && !empty($context['package_ftp']);
     }


This the code from the patch file as well

Index: Sources/Packages.php
===================================================================
--- Sources/Packages.php    (revision 7095)
+++ Sources/Packages.php    (revision 7096)
@@ -640,7 +640,7 @@
     if (!empty($chmod_files))
     {
         $ftp_status = create_chmod_control($chmod_files);
-        $context['ftp_needed'] = !empty($ftp_status['files']['notwritable']);
+        $context['ftp_needed'] = !empty($ftp_status['files']['notwritable']) && !empty($context['package_ftp']);
     }
}
Title: Re: Problem with installing mods
Post by: madfiddler on May 07, 2008, 06:05:58 PM
Thanks :) Can you explain
QuoteThis the code from the patch file as well
?

Not sure what you mean.
Title: Re: Problem with installing mods
Post by: THE BRA1N on May 10, 2008, 02:45:56 PM
Same problem when installing simple award mod. Cleared cache and tried it with both IE7 and FF and no solution. It just shows - FTP Information Required and nothing else to enter it or proceed. The FTP info was previously entered and the connection tested in the page before that.
Title: Re: Problem with installing mods
Post by: madfiddler on May 10, 2008, 10:29:20 PM
(SMF2 caused me too many probs as I have other 3rd party apps linked into the database, so I've reverted back to V1 - looking forward to a V2 release candidate though, looks great).
Title: Re: Problem with installing mods
Post by: THE BRA1N on May 11, 2008, 05:32:28 AM
Even though I had no clue what SleePy was talking about either with the "code from the patch file", I did what he said in the first part of his post and it worked. It got rid of the "FTP Information Required" dead end and replaced it with an install button. Thanks for the tip.
Title: Re: Problem with installing mods
Post by: metallica48423 on July 21, 2008, 01:01:05 PM
hello

Did you still require assistance?