News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem with installing mods

Started by Wrathchild9, May 01, 2008, 07:06:55 AM

Previous topic - Next topic

Wrathchild9

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

madfiddler

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.

madfiddler

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>

Wrathchild9

Yep.... btw I'm using Firefox 2.0.0.14

madfiddler

I've also got suexec turned on, and safe mode is turned off.. Anyone please?

Metal_13

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...

madfiddler

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.

SleePy

I think this may be related to this bug: Bug #1899: Can't uninstall a package when FTP info is require
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 :)
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

SleePy

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']);
     }
}
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

madfiddler

Thanks :) Can you explain
QuoteThis the code from the patch file as well
?

Not sure what you mean.

THE BRA1N

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.

madfiddler

(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).

THE BRA1N

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.

metallica48423

hello

Did you still require assistance?
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

Advertisement: