Hello!
I'm trying to migrate my old crufty Gallery 2 photo website to Piwigo. I have 135 albums and about 1500 photos. Some of these album and photos have spaces in the filenames, sadly. Piwigo seems to be happier when there are no spaces in the filenames so I went and changed all the filenames to underscores. Things seemed to import happily after that. I tried the Menalto2Piwigo plugin to migrate the metadata but it doesn't set the metadata for the albums or directories that I had to rename. In fact, it seems to cause Piwigo to lose a lot of the data it already synchronized.
Can anyone suggest a way to migrate all of my metadata successfully? I've considered changing the Menalto2Piwigo scripts to change all of spaces in the file and directory names to underscores so that it can find the files it's supposed to update, but I'm not familiar with PHP and I hoped that someone could provide some guidance.
Piwigo version: 2.7.4
PHP version: 5.3.29
MySQL version: 5.1.56-log
Piwigo URL: http://photos.freepantsonline.com
Offline
I did add this to my local/config/config.inc.php
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_#. ]+$/';
And that solved my problems. And there was not need to change my files or dirs names afterwards.
Last edited by Kikker (2015-10-28 18:29:42)
Offline
here what I use for my language:
'/^[(a-zA-Z0-9-_.+&áéíóúàãõ@ )]+$/'
source: rfreitaz answer at http://piwigo.org/forum/viewtopic.php?id=20279
A quick note:
edit the file with an editor that can use UTF-8 and test the code using the synchronization tool in piwigo.
Kikker wrote:
I did add this to my local/config/config.inc.php
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_#. ]+$/';
And that solved my problems. And there was not need to change my files or dirs names afterwards.
Hi,
I don't have a file at that location, should I create one myself?
Offline