Member
Member
tunafish   2011-12-01, 10:48
#1

I wanted to rename my albums folder.
I changed
define('ALBUMFOLDER', 'highres');
and than renamed my albums folder to highres but I am getting a lot of errors and it's not working. Did I miss something?

Administrator
Administrator
acrylian   2011-12-01, 12:13
#2

You can and should actually do that in the zp-config.php file ("zenphoto.cfg" on the 1.4.2 beta). You can even change the location of that folder to outside the webroot (note that multimedia will not work then).

Member
Member
sbillard   2011-12-02, 01:51
#3

"Can and should" is a little too loose. You must make the changes in the config file as all other references tree down from there. See the file for documentation.

Member
Member
tunafish   2011-12-02, 14:29
#4

Unfortunatly it doesn't work :-(

I am running Zenphoto version 1.4.2-BETA [8541] (Official Build)
In zenphoto.cfg changed to $conf['album_folder'] = '/albumshighres/';
Than changed the albums folder to albumshighres

Tried also re-defining in zp-core/global-definitions.php
define('ALBUMFOLDER', 'albumshighres');

My PHP log says:
[02-Dec-2011 14:22:36] PHP Warning: opendir(/Applications/MAMP/htdocs/tunafish/albums/) [function.opendir]: failed to open dir: No such file or directory in /Applications/MAMP/htdocs/tunafish/zp-core/class-gallery.php on line 165

ZP is still looking for the albums folder.
I tried also refreshing the DB from ZP admin and clearing browser cache, cookies etc.

Administrator
Administrator
acrylian   2011-12-02, 14:44
#5

Again, don't edit core files. I just tried it on my test install with 1.4.1.x and it works perfectly.
http://zenphoto.maltem.de/

MAke sure you also deleted the cache in case you have the static html cache plugin active. Maybe there is something related with your htaccess change experiments from the other topic.

Member
Member
tunafish   2011-12-02, 22:40
#6

OK, I finally found what was wrong...
I was editing zp-core/zenphoto.cfg
not in zp-data/zenphoto.cfg

The file in zp-core is a left over duplicate not in use?

Member
Member
sbillard   2011-12-02, 23:15
#7

That file is the source if Setup needs to create the zp-data folder file. We have attempted to make it so zenphoto never writes files within the zp-core folder. Unfortunately, some third party plugins may not be so kind so it may not work to remove write priviledges from the folder. Wish that were possible, it would have prevented the recent hack.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.