Announcement

  •  » Extensions
  •  » Migrating from Gallery2 to Piwigo

#1 2015-09-07 22:12:58

rszumlak
Member
2015-09-07
1

Migrating from Gallery2 to Piwigo

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

 

#2 2015-10-28 18:28:16

Kikker
Member
2015-10-28
1

Re: Migrating from Gallery2 to Piwigo

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

 

#3 2016-11-11 17:00:16

spamsupernova
Guest

Re: Migrating from Gallery2 to Piwigo

here what I use for my language:

'/^[(a-zA-Z0-9-_.+&áéíóúàãõ@ )]+$/'

source: rfreitaz answer at http://piwigo.org/forum/viewtopic.php?id=20279

 

#4 2016-11-11 17:09:58

spamsupernova
Guest

Re: Migrating from Gallery2 to Piwigo

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.

 

#5 2017-01-22 20:42:44

Iva
Member
Serbia
2017-01-22
6

Re: Migrating from Gallery2 to Piwigo

Hi,

I don't have a file at that location, should I create one myself?

Offline

 
  •  » Extensions
  •  » Migrating from Gallery2 to Piwigo

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact