Batch add pictures error Batch add pictures error
 

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

Batch add pictures error

Started by amywkwan, March 21, 2004, 05:57:42 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

amywkwan

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??

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

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

amywkwan

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

ddanj

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.

Joachim Müller

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

ddanj

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.

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ddanj

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?

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ddanj

mmk, how do i know if im using php5?

Tranz

Go into Admin tools -> phpinfo.

ddanj

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

Tranz

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

ddanj

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)

kegobeer

Create a php script with this:

<?php
phpinfo();
?>

Upload it to your site and run it.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

#16
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

ddanj

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

Joachim Müller

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

ddanj

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?