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
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
There is a typo in the "// check for duplicates" section: Line 85.
Missing the "prefix" in the SQL, correct it to:
$sql="SELECT path FROM `{$prefixeTable}images` WHERE path='".$dbc->real_escape_string($dupe_file_path)."'";
Offline
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
Hello,
I'm interested as well.
Would it be possible to include this feature directly in Piwigo?
Thank you.
Offline