coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: amywkwan on March 21, 2004, 05:57:42 PM

Title: Batch add pictures error
Post by: amywkwan on March 21, 2004, 05:57:42 PM
I got this error when I press the batch add pictures

Fatal error: Cannot redeclare scandir() in C:\Program Files\Apache Group\Apache2\htdocs\copper\searchnew.php on line 309

why is that??
Title: Batch add pictures error
Post by: Casper on March 21, 2004, 08:10:51 PM
See this thread, http://forum.coppermine-gallery.net/index.php?topic=1888
Title: Batch add pictures error
Post by: Joachim Müller on March 21, 2004, 11:08:04 PM
as a sidenote: using PHP5 isn't recommended yet unless you're comfortable with beta software and you know how to handle such errors, as they may happen with other PHP-based software as well.

GauGau
Title: Thank you
Post by: amywkwan on March 22, 2004, 01:24:57 AM
Thanks a lot. I am new to this product so wasn't sure where to look for the old posting. Thanks for pointing it out.

AW
Title: Re: Batch add pictures error
Post by: ddanj on December 28, 2004, 06:08:57 AM
Hi, I have the same problem with batch adding, and I read through the links posted, but I an completely clueless about php, and I don't know what and how I need to change to fix this error, could someone guide me through it? please ? you can reach me here: mtsukanov at hotmail dot com, or on AIM through m t s u k a n o v

thank you

-Mike T.
Title: Re: Batch add pictures error
Post by: Joachim Müller on December 28, 2004, 06:57:12 AM
we don't do direct support by email - it'd defeat the purpose of a board (enabling others to benefit from solutions that worked for you). What is it you have issues with? Post a link to your site and an exact error message.
You shouldn't use the outdated version cpg1.2.x - upgrade recommended.

Joachim
Title: Re: Batch add pictures error
Post by: ddanj on December 28, 2004, 11:06:17 PM
alright sorry, I wasn't sure how u guys deal with detail help.

ok here is the error I get when i try to do 'batch add'

Fatal error: Cannot redeclare scandir() in /www/virtualhosts/www.freeride.org.vt.edu/coppermine/searchnew.php on line 309

and like I said before, I read through the posted info, but I don't know much about php, and don't know what where and how to change, so I was wondering if someone could guide me through it

thanx again

-Mike T.
Title: Re: Batch add pictures error
Post by: kegobeer on December 28, 2004, 11:32:50 PM
Please search the boards before posting.
http://forum.coppermine-gallery.net/index.php?topic=1888.0

Upgrade to 1.3.2.
Title: Re: Batch add pictures error
Post by: ddanj on December 29, 2004, 12:17:29 AM
Please read posts before u reply


like i said before - I read through previous threads on this matter, including that one.
so can anyone help?
Title: Re: Batch add pictures error
Post by: kegobeer on December 29, 2004, 01:22:24 AM
Yeah, you were really specific on what solutions you've tried.   ???

The function scandir is in the file searchnew.php.  If you aren't using php5, which has a function called scandir, then you need to track down where another function named scandir is being declared.

And you should upgrade to 1.3.2, which will most likely solve your problem anyway.
Title: Re: Batch add pictures error
Post by: ddanj on December 29, 2004, 03:00:51 AM
mmk, how do i know if im using php5?
Title: Re: Batch add pictures error
Post by: Tranz on December 29, 2004, 03:02:21 AM
Go into Admin tools -> phpinfo.
Title: Re: Batch add pictures error
Post by: ddanj on December 29, 2004, 05:43:05 AM
Quote from: TranzNDance on December 29, 2004, 03:02:21 AM
Go into Admin tools -> phpinfo.

where's that? i'm loged in and all... but i dont see phpinfo anywhere, i just see the usuall stuff like my profile, comments, etc
Title: Re: Batch add pictures error
Post by: Tranz on December 29, 2004, 05:45:55 AM
You must be in Admin mode to see admin buttons. If you can't see them, add this filename to the end of your gallery URL:
util.php
Title: Re: Batch add pictures error
Post by: ddanj on December 29, 2004, 06:15:04 AM
still don't see 'phpinfo'

here's what i see

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.freeride.org.vt.edu%2Fsctemp.jpg&hash=04d55c0d0a239eb35fbb40e21526052ee73e934b)
Title: Re: Batch add pictures error
Post by: kegobeer on December 29, 2004, 02:11:20 PM
Create a php script with this:

<?php
phpinfo();
?>

Upload it to your site and run it.
Title: Re: Batch add pictures error
Post by: Joachim Müller on December 29, 2004, 05:34:26 PM
Quote from: TranzNDance on December 29, 2004, 03:02:21 AM
Go into Admin tools -> phpinfo.
@TranzNDance: cpg1.2.x didn't come with phpinfo, on the cpg1.2 support board you should ask people to look this up: http://coppermine.sourceforge.net/faq.php#VersionPHP

@ddanj: I wouldn't fumble with the PHP version (especially if you have no clue how to find out about your php version - you won't be able to change it if you're not administering your own server), but rather do as suggested several times already: upgrade your coppermine version to the most recent stable release cpg1.3.2

Joachim
Title: Re: Batch add pictures error
Post by: ddanj on December 29, 2004, 05:48:01 PM
alright, then I will do that. So this version fixes this error i'm having as well, right? (just want to make sure)

thanx again
Title: Re: Batch add pictures error
Post by: Joachim Müller on December 29, 2004, 06:46:48 PM
That's what kegobeer already told you, isn't it?
Quote from: kegobeer on December 29, 2004, 01:22:24 AM
And you should upgrade to 1.3.2, which will most likely solve your problem anyway.

Joachim
Title: Re: Batch add pictures error
Post by: ddanj on December 29, 2004, 10:18:19 PM
alright, i downloaded cpg1.3.2.zip

now how do I upgrade? do i have to unzip the files and overwrite the current stuff on the server?? do i have to go through the whole setup again? will all my pictures be lost? how do I do this?
Title: Re: Batch add pictures error
Post by: Tranz on December 29, 2004, 10:27:44 PM
http://coppermine.sourceforge.net/manual.php#13
Title: Re: Batch add pictures error
Post by: kegobeer on December 29, 2004, 11:43:09 PM
Have you read the upgrade instructions?  /docs/index.html
Title: Re: Batch add pictures error
Post by: ddanj on December 30, 2004, 12:19:01 AM
yey, it works! ;D

thanx for all the help
Title: Re: Batch add pictures error
Post by: Joachim Müller on December 30, 2004, 08:40:08 AM
unzip it to your hard drive and read the docs that come with it, there is an update section.

Joachim