1
PlaneGuy
xcGallery and Batch Upload Problem
  • 2004/11/1 6:22

  • PlaneGuy

  • Just popping in

  • Posts: 10

  • Since: 2004/11/1


I have just set up xcGallery v1.1, with XOOPS 2.09 Beta, on a system running PHP 5.0 (hence the beta). Everything is running fine, except for trying to use the batch add function in xcGalley.

When I select Batch Add in the admin menu, I get the following error message:
Fatal error: Cannot redeclare scandir() in C:\WebServer\jerrases.homeip.net\modules\xcgal\admin\searchnew.php on line 314

Any ideas where I can start to debug, and hopefully fix this. A search didn't reveal anyone else with a similar problem.

2
PlaneGuy
Re: xcGallery and Batch Upload Problem
  • 2004/11/2 19:58

  • PlaneGuy

  • Just popping in

  • Posts: 10

  • Since: 2004/11/1


Well, well. It looks like it was a very easy fix - wish I spotted it sooner

The problem is that there is a function newly added to PHP in v5, called scandir(), and thus the attempt to decalre a function in admin\searchnew.php called scandir() fails.

A simple search and replace of serchnew, replacing scandir with scandir2 (there are a few instances, limited to this file only).

Rudimentary testing shows that it hasn't introduced any new problems.

Login

Who's Online

399 user(s) are online (288 user(s) are browsing Support Forums)


Members: 0


Guests: 399


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits