Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Problem listing folders in albums folder  (Read 2932 times)

0 Members and 1 Guest are viewing this topic.

detyo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Problem listing folders in albums folder
« on: May 27, 2009, 09:11:33 pm »

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


Logged

detyo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Problem listing folders in albums folder
« Reply #1 on: May 27, 2009, 09:20:00 pm »

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
Logged

Nibbler

  • Guest
Re: Problem listing folders in albums folder
« Reply #2 on: May 27, 2009, 09:27:53 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem listing folders in albums folder
« Reply #3 on: May 29, 2009, 01:01:37 am »

should I upgrade to Coppermine 1.5?
Hasn't been released yet. Goes unsupported.
Logged

detyo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Problem listing folders in albums folder
« Reply #4 on: May 29, 2009, 10:24:09 am »

Ok, thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.038 seconds with 19 queries.