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: Upload Approval -> Invalid action for form creation  (Read 3916 times)

0 Members and 1 Guest are viewing this topic.

Bottie

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Upload Approval -> Invalid action for form creation
« 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
« Last Edit: October 07, 2005, 12:24:47 am by GauGau »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Upload Approval -> Invalid action for form creation
« Reply #1 on: October 06, 2005, 04:43:51 pm »

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

Bottie

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upload Approval -> Invalid action for form creation
« Reply #2 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
Logged

Nibbler

  • Guest
Re: Upload Approval -> Invalid action for form creation
« Reply #3 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

Code: [Select]
$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)
);
Logged

Bottie

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upload Approval -> Invalid action for form creation
« Reply #4 on: October 06, 2005, 04:52:23 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  ;)
Logged

Nibbler

  • Guest
Re: Upload Approval -> Invalid action for form creation
« Reply #5 on: October 06, 2005, 04:53:46 pm »

Can you post your changes ?
Logged

Bottie

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upload Approval -> Invalid action for form creation
« Reply #6 on: October 06, 2005, 04:56:18 pm »

Logged

Nibbler

  • Guest
Re: Upload Approval -> Invalid action for form creation
« Reply #7 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.
Logged

Bottie

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upload Approval -> Invalid action for form creation
« Reply #8 on: October 06, 2005, 05:16:44 pm »

see attach ;)
Logged

Nibbler

  • Guest
Re: Upload Approval -> Invalid action for form creation
« Reply #9 on: October 06, 2005, 05:25:43 pm »

Find:

Code: [Select]
array('', '', 6)
Put that back to

Code: [Select]
array('', '', 4)
No reason to change that line atall.
Logged

Bottie

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upload Approval -> Invalid action for form creation
« Reply #10 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 ...
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.