Announcement

  •  » Extensions
  •  » [resolved] [Tool] Convert all Virtual albums to Physical ones

#16 2018-06-03 22:37:16

terminus
Member
2014-11-17
19

Re: [resolved] [Tool] Convert all Virtual albums to Physical ones

georg441 wrote:

This script doesn't work on my system. I think it gets caught in a loop right from the first iteration.

I'm getting no errors but I see the script running the same commands for the first picture in my database in MySQL without an end.

I'm not a PHP expert so I leaving this here in case anyone's interested to look into the script and find if there's a problem.

What's the filename and full path of that photo, if it's OK to ask?

Offline

 

#17 2020-02-02 23:36:37

frobozz
Member
2017-11-15
4

Re: [resolved] [Tool] Convert all Virtual albums to Physical ones

I have the same problem... It creates the first directory then hangs trying to create the first file.

Also, I found a bug at line 64.  The regex gives an error and I think it's because they changed the way PHP parses it so you have to escape the hyphen now.  E.g.

$fs_dir = preg_replace("/[^\\w-_\ ]+/",'',$virt_dir);

needs to be:

$fs_dir = preg_replace("/[^\\w\-_\ ]+/",'',$virt_dir);

That is "\-" instead of just "-" on that line.

Any help would be greatly appreciated.  Thx.

Offline

 

#18 2020-09-25 16:29:31

WollyCGN
Member
Cologne-Germany
2020-09-11
8

Re: [resolved] [Tool] Convert all Virtual albums to Physical ones

There is a typo in the "// check for duplicates" section: Line 85.
Missing the "prefix" in the SQL, correct it to:

Code:

$sql="SELECT path FROM `{$prefixeTable}images` WHERE path='".$dbc->real_escape_string($dupe_file_path)."'";

Offline

 

#19 2024-02-20 23:10:47

octosquid
Member
2020-09-15
1

Re: [resolved] [Tool] Convert all Virtual albums to Physical ones

Has anyone used this script recently, and does it still work?  Or, is there a newer way to convert virtual albums to physical?  Thank you.

Offline

 

#20 2024-08-23 09:47:02

karkaaa
Member
2024-08-23
1

Re: [resolved] [Tool] Convert all Virtual albums to Physical ones

Hello,

I'm interested as well.

Would it be possible to include this feature directly in Piwigo?

Thank you.

Offline

 
  •  » Extensions
  •  » [resolved] [Tool] Convert all Virtual albums to Physical ones

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact