Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: ReptiGuy - marraskuu 26, 2008, 02:18:00 IP

Otsikko: CHMOD Package Manager?
Kirjoitti: ReptiGuy - marraskuu 26, 2008, 02:18:00 IP
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.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - marraskuu 26, 2008, 02:26:41 IP
Try adding a temp folder to the packages directory and chmodding it and then try to delete.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: ReptiGuy - marraskuu 26, 2008, 02:38:47 IP
What should I CHMOD it to?
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - marraskuu 26, 2008, 02:43:24 IP
777 or 755 should be ok depending on server configuration.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: ReptiGuy - marraskuu 26, 2008, 02:54:11 IP
I was able to delete the file through the package manager when I CHMODed the file but I wasn't able to install it.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - marraskuu 26, 2008, 03:11:53 IP
The temp folder is probably gone then. Recreate it and chmod, then try instaling again.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: ReptiGuy - marraskuu 26, 2008, 03:18:54 IP
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?
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: CSonic - marraskuu 26, 2008, 04:53:50 IP
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.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: ReptiGuy - marraskuu 26, 2008, 05:35:33 IP
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."
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - marraskuu 26, 2008, 06:10:50 IP
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.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: CSonic - marraskuu 26, 2008, 08:43:40 IP
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?
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: ReptiGuy - marraskuu 26, 2008, 10:14:00 IP
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.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Apllicmz - marraskuu 28, 2008, 02:38:20 AP
have some problems...
i make folder temp...and try again she not work
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: 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. :)
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: trieuphu - joulukuu 03, 2008, 02:37:08 AP
thanks very must
this stuff is very usefull
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Gà Mái - joulukuu 03, 2008, 02:44:12 AP
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
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Elysia - joulukuu 04, 2008, 12:25:42 AP
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?
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: VeeDubbinMKIV - joulukuu 06, 2008, 01:15:33 AP
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 -
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - joulukuu 06, 2008, 10:58:11 AP
Glad it worked for you.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: ReptiGuy - joulukuu 07, 2008, 10:52:25 IP
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.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - joulukuu 10, 2008, 11:11:58 IP
What was the error. ???
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: phpMyTony - joulukuu 20, 2008, 08:16:32 AP
dThis topic is probably really old, but I just done the thing that bigguy said, and OMG, it worked! I owe you one.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: JimM - tammikuu 04, 2009, 05:49:26 IP
@ReptiGuy - Is this issue solved or do you still require assistance?  I notice there are lots of others that had the same problem in the topic but seeing as ReptiGuy is the OP we'll need to mark it solved when his issue is!
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - tammikuu 08, 2009, 01:56:39 IP
I think it is and will mark it as such. If he comes back then we will handle it then. :)
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: darklord2 - tammikuu 25, 2009, 02:59:03 IP
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. :)

Thanks, Error Gone...
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Stumpy - heinäkuu 29, 2009, 03:35:11 IP
I'm still getting the error and I've made the suggested change to packages.php. 
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: farneville - kesäkuu 22, 2010, 02:33:35 AP
Hi I am getting this error when logging out. I checked the suggested mod but it is already applied...
Users cannot login as well as they are being redirected on a blank page unless they refresh the page.
If you want to know exactly what's happening please go to hxxp://www.pspmygames.org/forums

Cheers...
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Bigguy - kesäkuu 22, 2010, 09:12:07 AP
I don't even see a forum on your site.
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: farneville - kesäkuu 23, 2010, 11:27:27 IP
I had to re- install the entire forum...
it's back and while putting back everything
the issue went back...
I am trying to ask help with the package I suspected to have caused the issue.

see here: http://www.simplemachines.org/community/index.php?topic=32954.0;topicseen

FYi: This is happening with Mozilla Fire Fox only and not IE
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: outlawsys - elokuu 19, 2011, 09:34:38 IP
I too am getting the same error, made changes to packages.php, and chmod'd files/dir's to 755 and then 777, still a no go, every single package i try to install gives the same error
Otsikko: Re: CHMOD Package Manager?
Kirjoitti: Illori - elokuu 19, 2011, 09:35:31 IP
please open a separate topic for your issue, this thread belongs to someone else and is marked solved.