Announcement

#1 2012-09-10 11:05:49

Aardvark
Guest

whats wrong with these names?

Heya,

I tested piwigo's "synchronize files structure with database", uploaded a folder named "2012-07-15" with 33 photos in it. All went perfect.

So I've uploaded 4 more folders and now I'm getting the following message when I try to synchronise:

[./galleries/2012-07-23 Balchik and Varna Mall] PWG-UPDATE-1 (wrong filename)
[./galleries/2012-07-26 Dolphinarium] PWG-UPDATE-1 (wrong filename)
[./galleries/2012-07-24 Cape Kaliakra] PWG-UPDATE-1 (wrong filename)
[./galleries/2012-07-25 Botanical Garden] PWG-UPDATE-1 (wrong filename)

Piwigo version
        Piwigo 2.4.3

Environment
        Operating system: Linux
        PHP: 5.2.17 (Show info) [2012-09-10 03:02:08]
        mysql: 5.1.65-community-log [2012-09-10 03:02:08]
        Graphics Library: External ImageMagick 6.7.7-7

Database
        33 photos (first photo added on Monday 10 September 2012)
        1 album including 1 physical and 0 virtual (33 associations)
        0 tags (0 associations)
        2 users
        0 groups
        0 comments
        no rate

When I try to synchronise, I tick the following options:
Directories and files
display max info
synchronise metadata
only perform a simulation
Search in sub-albums

Any help would be appreciated.

Thx!

 

#2 2012-09-10 11:14:33

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: whats wrong with these names?

there are spaces in you filenames

with the Plugin LocalFilesEditor add this to you local configuration (first tab)

Code:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. ]+$/';

(I added a space at the end from the default configuration)

Offline

 

#3 2012-09-10 11:28:56

Aardvark
Guest

Re: whats wrong with these names?

Thanks for your quick response. I never realised a space would not be allowed even when I 'studied' the allowed characters several times.

Can I add the '&' sign to that line?

 

#4 2012-09-10 11:42:31

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: whats wrong with these names?

it can be buggued an some system, but try it! there is no consequences but fail the sync

Offline

 

#5 2012-09-10 11:45:55

Aardvark
Guest

Re: whats wrong with these names?

Cool, thanks again!

 

#6 2013-08-20 12:09:22

memager
Member
1970-01-01
6

Re: whats wrong with these names?

Hi,
I can´t find the localfiles Editor in Piwigo Plugins.
I downloaded from piwigo.org but I don´t know how to get it in Piwigo!

please help!

Offline

 

#7 2013-08-20 12:13:11

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: whats wrong with these names?

this plugin is one of the three plugins provided with all Piwigo installations
perhaps you deleted it

to manually install a plugin, extract the ZIP inside your "plugins" directory
you must have a folder named "plugins/LocalFilesEditor" directly containing main.inc.php and other files

Offline

 

#8 2013-08-21 11:37:12

memager
Member
1970-01-01
6

Re: whats wrong with these names?

thanks! I have it.
I don´t know If I did it right? and still wrongfile list for 600 files :-(

With the last sycnorisation I deledet already over 2000 Pic? I can´t get them back, right? 



thanks in advance
Mehmet


Uploaded Images

Last edited by memager (2013-08-21 11:39:48)

Offline

 

#9 2013-08-21 11:47:15

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: whats wrong with these names?

in your filenames I see
-
+
(
)
;
À
ä
!
and perhaps some more

you must add ALL of them to the configuration
important : brackets must be escaped with an antislash \ or it will fail

Offline

 

#10 2013-08-21 12:53:26

memager
Member
1970-01-01
6

Re: whats wrong with these names?

thanks for quick replay!
I have no expreince with coding :-(
I have copied the code from

mistic100
2012-09-10 10:14:33

I thought it´s for all special signs?

I have no Idea which brackets and what antislash you mean. Can you show me the code I can copy it?
that would be great! 

thanks a lot!

Offline

 

#11 2013-08-21 13:07:24

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: whats wrong with these names?

the parameter is a list of allowed chars, just add the ones you need (it's not coding)

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. +!;äÀ\(\)]+$/';

Offline

 

#12 2013-08-21 15:22:04

memager
Member
1970-01-01
6

Re: whats wrong with these names?

hi mistic100,

after 6 tryes and adds! It worked out!
thanks a lot. one problem less :-)

Offline

 

#13 2013-08-22 00:16:59

XTed
Member
2013-08-22
6

Re: whats wrong with these names?

Hi mistic100

I have managed to resolve my sync errors with getting the allowed characters correct (I also missed the space!) but I face one problem and wondered if you could help?

The folder format that I use is like the following :


[./galleries/photos/2013_08_04 - Ickworth National Trust] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_08_04 - Ickworth National Trust/@eaDir] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_06_23 - Wicken Fen] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_06_23 - Wicken Fen/@eaDir] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_04_23 - Counting Crows] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_04_23 - Counting Crows/@eaDir] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_07_05 - Alton Towers] PWG-UPDATE-1 (wrong filename)
[./galleries/photos/2013_07_05 - Alton Towers/@eaDir] PWG-UPDATE-1 (wrong filename)


As you can see in this structure which is via a symlink from my Synology NAS it includes a default NAS system folder in each folder called "@eaDir", Is there a way to exclude this folder from each sync?

Thanks XTed

Last edited by XTed (2013-08-22 00:38:30)

Offline

 

#14 2013-08-22 08:51:52

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: whats wrong with these names?

please open a new thread, it's not related to the original question (forum rules)

Offline

 

#15 2013-08-22 14:09:45

XTed
Member
2013-08-22
6

Re: whats wrong with these names?

Opps - sorry! Will do

Offline

 

Board footer

Powered by FluxBB

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