Problem listing folders in albums folder Problem listing folders in albums folder
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problem listing folders in albums folder

Started by detyo, May 27, 2009, 09:11:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

detyo

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



detyo

I just found out that this has already been discussed in this topic: Batch Upload under Windows Server. So it seems that the fix has not been merged to 1.4.x, should I upgrade to Coppermine 1.5?

Regards,
   Detelin

Nibbler

No. Just disable the 'browsable' batch add feature.

Joachim Müller

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.

detyo