Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2015-04-08 20:37:47

serversponsor
Member
Registered: 2015-04-08
Posts: 13

[resolved] import from gallery3 error sync (Characters of dir and files)

Tags: [error, migration]

Hello/Hi/Greetings,

I Try to import my gallery3 to piwigo
and on the sync i got


the following errors


[./galleries/Chrissi-&-John] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Abschluss:-RUMMEL] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Familienfarm-Lübars] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Waldheim/22.+23.02.14] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Waldheim/Sandmännchen-mit-Oma] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Mambini-&-Piraten-Spielplatz] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Lana-&-Lena] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Spandauer-Forst/Mit-Kerstin-&-Torsten] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Auf´m-Spielplatz] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Auf´m-Spielplatz/"Baustelle"-und-Hakenfelderstraße] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Festwiese-F´see] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Kita/uploads/Onkel Frank08-2011] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Sophia,-Fiona-&-Dani] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Kerstin-&-Torsten] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Kerstin-&-Torsten/Kerstin-&-Lauri] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Traditionsfest-Späthstr] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Plätzchen-backen] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Röhrchen-Entfernung] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Götelstr.-] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Oldtimer-Treffen-im-Schloßpark] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Laurin-&-Jonas] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Hofladen-F´see] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Schlafender-Lauri-<3] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Südpark] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Fionas-(Schnattchens)-1.-Geburtstag] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Enten-füttern] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Bürgerablage] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Filmpark-Babelsberg/GZSZ-Außendreh-Set] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Suri-&-Lauri] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/...ein-verlängertes-Wochenende] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Alpacka-Farm-Börnicke-Version2] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Bei-Jenny-&-Family] PWG-UPDATE-1 (falscher Dateiname)
[./galleries/Tag-der-offenen-Tür-b.-d.-Feuerwehr] PWG-UPDATE-1 (falscher Dateiname)


just some of them:

i added :

$conf['authorized_characters_in_files'] = '/^[a-zA-Z0-9-_. +!;äÀ\(\)üäöÖÄÜ]+$/&ß^´`';


in  Zeige Referenz-Datei: "config_default.inc.php" /config/config.inc.php

with local files editor

but still not resolved

can someone help me please

thank you


Piwigo version:   Piwigo 2.7.4
PHP version: PHP Version 5.4.39-0+deb7u1
MySQL version: client API version     5.5.41
Piwigo URL: http://

Last edited by serversponsor (2015-04-09 11:09:49)

Offline

 

#2 2015-04-08 20:56:04

mistic100
Piwigo Team
Location: Lyon (FR)
Registered: 2008-09-27
Posts: 3261
Website

Re: [resolved] import from gallery3 error sync (Characters of dir and files)

Code:

$conf['authorized_characters_in_files'] = '/^[a-zA-Z0-9-_. +!;äÀ\(\)üäöÖÄÜ]+$/&ß^´`';

this is totally wrong (conf key and regex), sorry :-)

use

Code:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. +!;\(\)üäöÖÀÄÜ&ß^´`]+$/';

where did you find "authorized_characters_in_files" in first place ? this does not exist in Piwigo


» All my plugins  » My website
For an efficient support give the URL of your website

Offline

 

#3 2015-04-08 21:01:49

serversponsor
Member
Registered: 2015-04-08
Posts: 13

Re: [resolved] import from gallery3 error sync (Characters of dir and files)

Hi Mistic,

thanks alot only some now still not working :)





    [./galleries/Abschluss:-RUMMEL] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Auf´m-Spielplatz/"Baustelle"-und-Hakenfelderstraße] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Sophia,-Fiona-&-Dani] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Schlafender-Lauri-<3] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Auf'm-Boot] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Ceycan/DSC_0181[1].JPG] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/KLAX/DSC_0234[1].JPG] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Kita/DSC_0122[1].JPG] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Kita/DSC_0123[1].JPG] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Kita/DSC_0124[1].JPG] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Kita/DSC_0125[1].JPG] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Old-Motos-Photos/Little Trevar Goss (Beverly's Son)197.jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Old-Motos-Photos/Tammy Danny and Shawn Sasser (Linda's Kids) minus one199.jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/22.+23.02.14/IMG_220214_121156[1].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/22.+23.02.14/IMG_220214_121212[1].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/22.+23.02.14/IMG_220214_163252[1].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P160611_16_05_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_14_24_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_14_33_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_14_33_[02].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_14_39_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_14_40_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_15_34_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Waldheim/P200411_15_35_[01].jpg] PWG-UPDATE-1 (falscher Dateiname)


but all characters  included but where is my error  I used now your code :) 


maybe it was somewhere in an old entry I just copyed it.

thank you

cheers

serversponsor

Last edited by serversponsor (2015-04-08 21:05:25)

Offline

 

#4 2015-04-08 21:07:06

mistic100
Piwigo Team
Location: Lyon (FR)
Registered: 2008-09-27
Posts: 3261
Website

Re: [resolved] import from gallery3 error sync (Characters of dir and files)

just look arround, you use : [ ] < ' which are not in the list (no black magic you know)

Code:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. +!;\(\)üäöÖÀÄÜ&ß^´`:\[\]<]+$/';

» All my plugins  » My website
For an efficient support give the URL of your website

Offline

 

#5 2015-04-08 21:10:48

serversponsor
Member
Registered: 2015-04-08
Posts: 13

Re: [resolved] import from gallery3 error sync (Characters of dir and files)

I just got two left




    [./galleries/Auf´m-Spielplatz/"Baustelle"-und-Hakenfelderstraße] PWG-UPDATE-1 (falscher Dateiname)
    [./galleries/Sophia,-Fiona-&-Dani] PWG-UPDATE-1 (falscher Dateiname)



I added now : $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_., +!;\(\)üäöÖÀÄÜ&ß^´`:\[\]<\´\"]+$/';
and it works :)




thanks alot :)

cheers
serversponsor

edit Mistic: the single quote (') should never be added to the regex (because of a bug in Piwigo)

Last edited by mistic100 (2015-04-09 11:31:30)

Offline

 

Board footer

Powered by FluxBB

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