Upload Approval -> Invalid action for form creation Upload Approval -> Invalid action for form creation
 

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

Upload Approval -> Invalid action for form creation

Started by Bottie, October 06, 2005, 04:21:05 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Bottie

Hi,

Since I added 2 customfields, I'm not able to use the Upload Approval. I get the 'well kwown' Invalid action for form creation error'.

Is there something additional I have to change in the editpics.php-file?


Thx,


B

Tranz

Could you please specify the exact text of the custom fields you are using?

Bottie

I added 2 extra customfields (total is 6, but 5 used):

Aircraft Type
Operator / Airline
Location / Airport
Registration
Discuss this picture at


All works fine, except Upload Approval


Thank You

Nibbler

You need to add info about the fields you added into the $data array in editpics.php

$data = array(
        array($lang_editpics_php['pic_info'], '', 3),
        array($lang_editpics_php['album'], 'aid', 1),
        array($lang_editpics_php['title'], 'title', 0, 255),
        array($captionLabel, 'caption', 2, $CONFIG['max_img_desc_length']),
        array($lang_editpics_php['keywords'], 'keywords', 0, 255),
        array($CONFIG['user_field1_name'], 'user1', 0, 255),
        array($CONFIG['user_field2_name'], 'user2', 0, 255),
        array($CONFIG['user_field3_name'], 'user3', 0, 255),
        array($CONFIG['user_field4_name'], 'user4', 0, 255),
        array('', '', 4)
);

Bottie

Quote from: Nibbler on October 06, 2005, 04:50:16 PM
You need to add info about the fields you added into the $data array in editpics.php

These changes were already made when modifying  ;)



Nibbler

If you made the changes correctly then it would be working :). Please post or attach your actual code.

Bottie


Nibbler

Find:

array('', '', 6)

Put that back to

array('', '', 4)

No reason to change that line atall.

Bottie

aaah, damn ..... I'm sorry for wasting your time  :-[

I've been looking over and over ...


Thank You very much, Topic can be closed now ...