Hi guys,
I installed Coppermine 1.4.24 on Windows XP using the following prerequisites:
- Apache 2.2.11 (using msi installer for windows)
- PHP -5.2.9-2 (again using the installer)
- MySQL 5.1.34
Coppermine was installed successfully and runs fine, I'm able to upload photos one by one, but have trouble when trying to upload in batch mode.
The path to my albums folder looks like this: F:\Apache2.2\htdocs\gallery\albums (gallery is the Coppermine context folder).
However, when I open the batch upload form it is displayed with a '/' prefix:
/F:\Apache2.2\htdocs\gallery\albums
I have some understanding about web development, though I have no experience with PHP. I investigated the problem using PHP print function and found out that a the leading slash is added in the minibrowser.php:
$base_folder = rtrim(cpg_get_webroot_path(), '/').'/';
for some reason, the $base_folder variable is set to '/' (I guess the cpg_get_webroot_path() returns empty string ?)
The start folder is initially F:\Apache2.2\htdocs\gallery\albums (set by the searchnew.php when creating the minibrowser link), then after prepending the
$base_folder (being /), it becomes an invalid path, which cannot be listed.
Do you have any idea why this might happen? May be the Apache and/or PHP versions are too new or there is another reason?
Thanks,
Detelin
I just found out that this has already been discussed in this topic: Batch Upload under Windows Server (http://forum.coppermine-gallery.net/index.php/topic,57921.0.html). So it seems that the fix has not been merged to 1.4.x, should I upgrade to Coppermine 1.5?
Regards,
Detelin
No. Just disable the 'browsable' batch add feature.
Quote from: detyo on May 27, 2009, 09:20:00 PM
should I upgrade to Coppermine 1.5?
Hasn't been released yet. Goes unsupported.
Ok, thanks.