Error - Script called without required parameter Error - Script called without required parameter
 

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

Error - Script called without required parameter

Started by rivers, January 25, 2008, 04:57:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rivers

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.



Nibbler


rivers

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



Joachim Müller

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.

rivers

#4
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. 







Nibbler

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

rivers

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.



Nibbler

You deleted the user galleries category. Put it back.


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

rivers

Fixed!  Works perfectly.

Thanks Nibbler.   I forgot all about that user category.


Drinks on me.  ;D