Advanced search  

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]

Pages: [1] 2   Go Down

Author Topic: Batch add pictures error  (Read 10794 times)

0 Members and 1 Guest are viewing this topic.

amywkwan

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Batch add pictures error
« 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??
« Last Edit: December 30, 2004, 12:21:59 am by kegobeer »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Batch add pictures error
« Reply #1 on: March 21, 2004, 08:10:51 pm »

Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Batch add pictures error
« Reply #2 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
Logged

amywkwan

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Thank you
« Reply #3 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
Logged

ddanj

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #4 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch add pictures error
« Reply #5 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
Logged

ddanj

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #6 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch add pictures error
« Reply #7 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #8 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?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch add pictures error
« Reply #9 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #10 on: December 29, 2004, 03:00:51 am »

mmk, how do i know if im using php5?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Batch add pictures error
« Reply #11 on: December 29, 2004, 03:02:21 am »

Go into Admin tools -> phpinfo.
Logged

ddanj

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #12 on: December 29, 2004, 05:43:05 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Batch add pictures error
« Reply #13 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
Logged

ddanj

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #14 on: December 29, 2004, 06:15:04 am »

still don't see 'phpinfo'

here's what i see

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.freeride.org.vt.edu%2Fsctemp.jpg&hash=04d55c0d0a239eb35fbb40e21526052ee73e934b)
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch add pictures error
« Reply #15 on: December 29, 2004, 02:11:20 pm »

Create a php script with this:

<?php
phpinfo();
?>

Upload it to your site and run it.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch add pictures error
« Reply #16 on: December 29, 2004, 05:34:26 pm »

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
« Last Edit: December 30, 2004, 08:39:20 am by GauGau »
Logged

ddanj

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #17 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch add pictures error
« Reply #18 on: December 29, 2004, 06:46:48 pm »

That's what kegobeer already told you, isn't it?
And you should upgrade to 1.3.2, which will most likely solve your problem anyway.

Joachim
Logged

ddanj

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Batch add pictures error
« Reply #19 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?
Logged
Pages: [1] 2   Go Up
 

Page created in 0.033 seconds with 18 queries.