coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Bottie on October 06, 2005, 04:21:05 PM

Title: Upload Approval -> Invalid action for form creation
Post by: Bottie on October 06, 2005, 04:21:05 PM
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
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Tranz on October 06, 2005, 04:43:51 PM
Could you please specify the exact text of the custom fields you are using?
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Bottie on October 06, 2005, 04:48:32 PM
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
Title: Re: Upload Approval -> Invalid action for form creation
Post by: 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

$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)
);
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Bottie on October 06, 2005, 04:52:23 PM
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  ;)
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Nibbler on October 06, 2005, 04:53:46 PM
Can you post your changes ?
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Bottie on October 06, 2005, 04:56:18 PM
All changes mentioned in http://forum.coppermine-gallery.net/index.php?topic=7803.0 were made
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Nibbler on October 06, 2005, 05:02:58 PM
If you made the changes correctly then it would be working :). Please post or attach your actual code.
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Bottie on October 06, 2005, 05:16:44 PM
see attach ;)
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Nibbler on October 06, 2005, 05:25:43 PM
Find:

array('', '', 6)

Put that back to

array('', '', 4)

No reason to change that line atall.
Title: Re: Upload Approval -> Invalid action for form creation
Post by: Bottie on October 06, 2005, 05:33:30 PM
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 ...