Hello,
Happy new year to all the team !
I cannot succeed to upgrade to 1.2.8 (from 1.2.5 [4022]). My internet provider is free.fr, and does not allow to any permission directory changes. It has also some limitations, and I have no chance to make them change.
For example, I have to create a directory "sessions" at the root of my web site, and to create a .htaccess contaning "php 1"... to make zenphoto works.
So... when I run upgrade.php, I get several warning (php version 5.1, safe mode, etc) as usual, but then some errors are listed about file permissions... Then I am asked to make the changes, and run setup.php again. No way to go further with the 1.2.8 install script.
Is there a way to bypass these errors, so that I can run the upgrade ?
Thank you,
Comments
Anyway, you can delete the code that does that check. That would be the only way to disable it and not get the errors. (Unless the actual error messages give us a different clue.)
About the only suggestion I can make is that you set the zenphoto permissions default to match whatever the site has set permissions to. Then at least zenphoto will not attempt to change them unnecessarily.
I can try your suggestion, but where can I change the zenphoto default permissions level ?
When connected via ftp, I can see the following permissions :
- directory : 0700
- files : 0644
It may be in the setup.php file, but I need more information, I have no php knowledge. :-(
Thanks !
Sorry to not get back earlier.. I tried your suggestion locally on my desktop, but without success.
I have to say I did not investigate deeper, as I found another workaround on a french zenphoto forum (http://www.zenbien.com) where the following is proposed :
Comment $good variable in setup.php for permissions tests, i.e. Comment // lines 1408, 1413, 1416, 1417, 1418 in /zp-core/setup.php. Then cancel .htaccess update (Comment line 244, and line 1241 variable set to false).
I did it and it worked fine.
Not sure you will agree, but considering Zenphoto is working fine on that environment, couldn't be a new option in the setup to skip these steps, or make then optional ? with any warning about limitations doing that (not tested, etc.) ?
I agree this is easy to do manually. The point is all that was not required before (is zenphoto becoming more complex ?) and last but not least IT WORKS FINE in such env.
Thank you anyway, as always...
That is why setup makes the test. It is much easier for us to know what is going on if setup reports potential problems than if they are just ignored. The code was added to setup for just this reason.