Jump to content

1 Click upgrade module says "Access Denied"


Recommended Posts

Hi

 

I would like to upgrade from 1.5.2 to 1.5.4.1 so I have asked the hosting provider to create an exact clone of the shop from http://givensa.com to the test subdomain http://update.givensa.com

 

My idea is to test the update in the test domain first and then do the cloning backwards when everything is working.

 

The hosting provider (Loading.es which is recommended by Prestashop) has done the cloning and the clone of the site works perfect. Except for one thing. When I try to start the 1 Click Upgrade module, it just says Access Denied.

 

- The test clone is on the same server, just another subdomain.

- I use the exact same user on http://update.givensa.com as on http://givensa.com and on the live site, the 1 click update module is working as expected.

 

The guys at loading.es has even tried to understand why this fails and they have no idea, everything looks ok except for that the upgrade module can not start. They assure that all permissions are correct and it is very strange that the live site can start the module while the copy can not so they have given up.

 

So if anyone has an idea I can test to get rid of the "Access Denied" it would be great since otherwise we are blocked from updating to 1.5.4.

 

Thanks in advance for any hints.

post-567490-0-38150000-1369419487_thumb.png

Link to comment
Share on other sites

Hi Bill

 

Thanks for the answer. I checked the version installed and it says 1.0.20 which is the same version number displayed at the Prestashop addons listing.

 

I did also uninstall and delete the existing module, downloaded the one from the addons site and installed it but still the same problem.

 

Somewhere there must be a very logical explaination for this. In the Prestashop Addons site it says:

Warning, this module requires write permission in your root directory. Your custom template will not be updated.

 

This seems to indicate something that could cause an "Access Denied" problem. However the live site on the same location works fine with 1-Click upgrade and the hosting provider assures that I have all the proper permissions.

 

I was really hoping that this would be solvable so any other ideas are warmly welcome.

 

Thanks again

  • Like 1
Link to comment
Share on other sites

>>the hosting provider assures that I have all the proper permissions

 

I hate to point the finger back at them, but you are right, the error message does indicate that there is a write permission problem.

 

Because this is a temporary directory, could you try giving it and all sub directory's read and write permissions. If that works you can turn that off and then set only needed permissions. In fact I would ask your host to do this for you.

Link to comment
Share on other sites

Another friend has now also downloaded the whole site locally and tried to do the update locally and the same error happens. On the local computer there is no problems with permissions on the folders so it has to be something else.

 

I think cloning a site for testing purposes is a quite common task and we have no special tricks installed so it is a bit strange if no one else has encountered this problem.

Link to comment
Share on other sites

  • 1 month later...

If anybody is facing the same problem.

Here was my solution after lots of debugging:

I tried it from 1.5.3.1 to 1.5.4.1 with 1-Click Upgrade MOdule version 1.0.25

I got the Access denied error. I tried to upgrade with a SuperAdmin, but not with SuperAdmin having ID 1 but 2. (there are 2 superadmin profiles in our system)

 

The code causing a problem is in AdminSelfUpgrade.php in method viewAccess($disable = false) {...}

 

Actually the code is allright, but most certainly your cookie profile id is wrong:

1. Make sure you are in SuperAdmin group

2. Logout of Admin

3. Delete all cookies from your browser for your shop domain

 

Login again-> this should work now.

 

 

If not: You can do it the hard way: ( Open AdminSelfUpgrade.php in your modules/autoupgrade folder), find method viewAccess, comment everything out and just return "true".

 

 

Hope that helps...

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

If anybody is facing the same problem.

Here was my solution after lots of debugging:

I tried it from 1.5.3.1 to 1.5.4.1 with 1-Click Upgrade MOdule version 1.0.25

I got the Access denied error. I tried to upgrade with a SuperAdmin, but not with SuperAdmin having ID 1 but 2. (there are 2 superadmin profiles in our system)

 

The code causing a problem is in AdminSelfUpgrade.php in method viewAccess($disable = false) {...}

 

Actually the code is allright, but most certainly your cookie profile id is wrong:

1. Make sure you are in SuperAdmin group

2. Logout of Admin

3. Delete all cookies from your browser for your shop domain

 

Login again-> this should work now.

 

 

If not: You can do it the hard way: ( Open AdminSelfUpgrade.php in your modules/autoupgrade folder), find method viewAccess, comment everything out and just return "true".

 

 

Hope that helps...

 

It worked for me! I did it the hard way ;)

Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...