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??
See this thread, http://forum.coppermine-gallery.net/index.php?topic=1888
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
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
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.
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
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.
Please search the boards before posting.
http://forum.coppermine-gallery.net/index.php?topic=1888.0
Upgrade to 1.3.2.
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?
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.
mmk, how do i know if im using php5?
Go into Admin tools -> phpinfo.
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
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
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)
Create a php script with this:
<?php
phpinfo();
?>
Upload it to your site and run it.
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
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
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
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?
http://coppermine.sourceforge.net/manual.php#13
Have you read the upgrade instructions? /docs/index.html
yey, it works! ;D
thanx for all the help
unzip it to your hard drive and read the docs that come with it, there is an update section.
Joachim