Advertisement:

CHMOD Package Manager?

Aloittaja ReptiGuy, marraskuu 26, 2008, 02:18:00 IP

« edellinen - seuraava »

ReptiGuy

I messed up my forum on accident so I uploaded the back-up and everything is fine but the files weren't CHMODed any more so I CHMODed the ones I knew had to be CHMODed.

When I try and delete one of my mods it says that I need to CHMOD a file in the package manager. Which one do I need to CHMOD? I already CHMODed the package file and the install package file.

Bigguy

Try adding a temp folder to the packages directory and chmodding it and then try to delete.

ReptiGuy


Bigguy

777 or 755 should be ok depending on server configuration.

ReptiGuy

I was able to delete the file through the package manager when I CHMODed the file but I wasn't able to install it.

Bigguy

The temp folder is probably gone then. Recreate it and chmod, then try instaling again.

ReptiGuy

It won't install packages but it will delete packages and I found out why.

It says

LainaaSome of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

So the files that it need to be modified are not writable. What files should be writable?

CSonic

I think I can help you on this one. Go to the package manager at the admin panel. Then choose Options. You should have 3 chmod or file write type options. One to allow all files to be written, another to allow the minimum, and another. Choose to allow all files to be written to. That isn't so secure. After you are done, put it back to the minimum, or default.

Quick tip, when you change the option, you may not notice a difference with the selection dot. It should work though. Just keep that in mind.

ReptiGuy

Didn't work.

It said this again:

"Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager."

Bigguy

Then you could try exactly what the message you got said. FTP in and change permissions on the Sources folder and the Themes/default folder. Probably 777 would do but try 755 as well. Another option: If you don't want to chmod all those files, run the package through a package parser and only chmod the folders and files it says its going to edit then change the permissions back after done.

CSonic

Yes, I am familiar with the message you are getting. There should also be a password box for you to enter your account password, not your smf forum password. After you enter your password, the files should be auto chmoded, and your modification should go through fine.

Are you trying to avoid that route?

ReptiGuy

I put in my 110mb username and password and it said this:

Session verification failed. Please try logging out and back in again, and then try again.

Apllicmz

have some problems...
i make folder temp...and try again she not work



Bigguy

I can suggest this and we can see if it works for you guys:

In Packages.php (Sources folder) find:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('get');


Replace with:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('request');


If that doesn't do it we'll try something else. :)

trieuphu

thanks very must
this stuff is very usefull

Gà Mái

Lainaus käyttäjältä: Bigguy - marraskuu 28, 2008, 12:31:47 IP
I can suggest this and we can see if it works for you guys:

In Packages.php (Sources folder) find:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('get');


Replace with:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('request');


If that doesn't do it we'll try something else. :)
Oh, it's good!
Thankssss
-- I love SMF --

Elysia

I'm getting the Session verification failed. Please try logging out and back in again, and then try again. error and have amended Packages.php as above and am still getting the error, even after logging out, back in again, logging out, closing browser, clearing cache, logging in again. This is driving me nuts, any other ideas please?

VeeDubbinMKIV

Lainaus käyttäjältä: Bigguy - marraskuu 28, 2008, 12:31:47 IP
I can suggest this and we can see if it works for you guys:

In Packages.php (Sources folder) find:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('get');


Replace with:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('request');


If that doesn't do it we'll try something else. :)

WOW THIS WORKED GREAT, THANKS! I just moved my site over to a NEW server and I was having problems but found your solution, and it really helped me out!

-  VeeDubbinMKIV -

Bigguy


ReptiGuy

Lainaus käyttäjältä: Bigguy - marraskuu 28, 2008, 12:31:47 IP
I can suggest this and we can see if it works for you guys:

In Packages.php (Sources folder) find:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('get');


Replace with:

function PackageInstallTest()
{
     global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

     checkSession('request');


If that doesn't do it we'll try something else. :)

What was this suppose to do?

I replaced what I use to have with this and an error message came up.

Advertisement: