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]   Go Down

Author Topic: Error - Script called without required parameter  (Read 14049 times)

0 Members and 1 Guest are viewing this topic.

rivers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Error - Script called without required parameter
« on: January 25, 2008, 04:57:56 pm »

Hi

I'm getting this error:

Script called without the required parameter(s). (aid19901)
File: .../editpics.php - Line: 84


This occurs when I have done the following:
(1) logged in as Admin,
(2) selected "Edit Files" for one of the albums
(3) Make changes to one or more of the images' fileds and click on "Apply Modifications"

Also, while in the "Edit Files" screen (editpics.php), the "Album" drop down menu for each pic is blank (ie. not populated).

I have uninstalled all plugins and tested using the "Classic" theme.  I have attached debug info as txt file.


Thanks for any help.


« Last Edit: January 25, 2008, 11:52:39 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Error - Script called without required parameter
« Reply #1 on: January 25, 2008, 05:08:20 pm »

Have you tried a clean copy of editpics.php?
Logged

rivers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Error - Script called without required parameter
« Reply #2 on: January 25, 2008, 05:23:52 pm »

Thanks for the post Nibbler:

As you suggested, I uploaded a fresh copy of editpics.php.  This did not resolve the issue.  All symptoms are exactly the same. (Oddly, the new editpics.php was a few hundred bytes larger than the old copy running on the server.  I have no clue why - I did not make any changes to it.)

I have replaced a few other scripts with fresh original copies (includes folder, custom theme) but to no avail.



Here are the Notices I receive during these errors:

When I click on "Edit Files", I receive the following:

/editpics.php

    * Notice line 408: Undefined variable: or
    * Notice line 408: Undefined variable: or
    * Notice line 408: Undefined variable: or
    (etc...)


When I click on "Apply Modifications", I receive the following:

/editpics.php


Thanks again for any help.

    * Notice line 99: Undefined index: galleryicon


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Error - Script called without required parameter
« Reply #3 on: January 25, 2008, 05:27:36 pm »

Ignore notices unless you're a coder and know what they mean. Turn notices_display off if notices don't mean anything to you.
I assume that you're not running the most recent stable release. Perform a complete upgrade as suggested in the docs.
Posting a link to your gallery won't hurt neither.
Logged

rivers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Error - Script called without required parameter
« Reply #4 on: January 25, 2008, 07:51:29 pm »

Thanks for the replies:

I am running latest 1.4.14.  I have done the following to isolate the issue:

(1) Installed fresh copy of Coppermine 1.4.14.
(2) Uploaded a backup copy of the /albums/ folder and batch added some images to an album
(3) tested "Edit Files" and "Apply Modifications"
 :) Works as expected so far.

(4) Upload a backup copy of the DB through phpMyAdmin
 :( Same errors as noted in previous posts.

Does this mean the problem is within my DB somewhere?


Thank's again for your time. 






« Last Edit: January 26, 2008, 03:14:41 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Error - Script called without required parameter
« Reply #5 on: January 25, 2008, 07:54:33 pm »

Probably. See if you can narrow it down to the albums or category tables. Attach SQL dumps of these tables if you can.
Logged

rivers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Error - Script called without required parameter
« Reply #6 on: January 25, 2008, 10:28:10 pm »

Thanks again for the quick replies Nibbler.

I have done mysql table repairs and rebuilt the indexes, which has not been effective.  Here is a dump of my categories and albums tables.  Please note that I do not have any categories in the gallery, only albums.  I hope this is not causing the issue.


Mysql dump is attached.

Thanks.


Logged

Nibbler

  • Guest
Re: Error - Script called without required parameter
« Reply #7 on: January 25, 2008, 11:05:29 pm »

You deleted the user galleries category. Put it back.

Code: [Select]
INSERT INTO cpg14x_categories( cid, name, description ) VALUES ( 1, 'User galleries', 'This category contains albums that belong to Coppermine users.' ) ;
Logged

rivers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Error - Script called without required parameter
« Reply #8 on: January 25, 2008, 11:51:20 pm »

Fixed!  Works perfectly.

Thanks Nibbler.   I forgot all about that user category.


Drinks on me.  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.