•  » Extensions
  •  » Synchronize Local Directories gets stuck in loop

#1 2012-05-03 06:56:09

JJF
Member
2011-10-06
121

Synchronize Local Directories gets stuck in loop

Hi, tried to use the Synchronize Local Directories plugin, but it gets stuck in this while statement until PHP execution times out.

Code:

             while (strcmp($source_dir, $piwigo_dir) > 0)
            {
                #TODO: there is a dir in piwigo, which doesnt exist in the source. Delete it in piwigo.
                next($piwigo_dirs);
                $piwigo_dir = current($piwigo_dirs);
            }

The inequality in the comparison stays true as soon as $source_dir has a value larger than "/".
My source directory has an extensive tree of directories and sub-directories with photos, but my destination directory, the piwigo galleries directory, is empty.

Any suggestions?

Offline

 
  •  » Extensions
  •  » Synchronize Local Directories gets stuck in loop

Board footer

Powered by FluxBB

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