Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FILESYSTEM_CHARSET setting - README update (?) #1

Open
upratathlavu opened this issue Jul 27, 2017 · 2 comments
Open

FILESYSTEM_CHARSET setting - README update (?) #1

upratathlavu opened this issue Jul 27, 2017 · 2 comments

Comments

@upratathlavu
Copy link

Hi, I would like to use your py script to migrate my current gallery3 to zenphoto. Zenphoto is already installed, but I have no zenphoto.cfg file in my installation, just zenphoto.cfg.php (inside zp-data folder) - is it the right one?

Also where in the file should I put define ('FILESYSTEM_CHARSET', 'UTF-8');?

Tnaks.

@dmwarren
Copy link
Owner

Hello!

Heads up: I've had lots of people mail for help and my success rate is pretty close to zero. ;) I should rewrite this script one day so it's easier to use and less crappy.

I have no zenphoto.cfg file in my installation, just zenphoto.cfg.php (inside zp-data folder) - is it the right one?

zenphoto.cfg.php should be fine, yes. I just double-checked the ZenPhoto code and it makes references to both filenames--maybe leftover stuff from an older version.

Also where in the file should I put define ('FILESYSTEM_CHARSET', 'UTF-8');?

Anywhere below where it says "do not edit above this line", and anywhere before the PHP closing tag at the end of the file ("?>"). I usually stick it after the database config stuff.

@upratathlavu
Copy link
Author

Thanks, that helped :) And another thing to improve: the script copies albums and photots to current working directory even though you set destination directory in its configuration... so you need to be in destination directory to it working correctly.

But besides this and some empty albums in my source gallery (so I had to restore everything and start again) it worked fine :) And for restoring: what worked to me was deleting albums from destination dir and refreshing database from zenphoto -> overview -> utility functions -> refresh the database (maybe it helps someone).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants