This topic was marked solved by its starter, on November 2nd, 2012, 06:21 PM

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Adding a profile field
« on November 2nd, 2012, 11:17 AM »
Have tried to add a field with various combinations of options however this message is always give right after Save is hit:
The database value you're trying to insert does not exist: string

In the admin error log there are two errors:
 http://bla.bla/index.php?action=admin;area=memberoptions;sa=pro…
 The database value you're trying to insert does not exist: string
Function: EditCustomProfiles
 File: /bla/Sources/ManageMemberOptions.php
 Line: 1212

Code: [Select]
1204: array(
1205: $colname, $_POST['field_name'], $_POST['field_desc'],
1206: $_POST['field_type'], $field_length, $field_options,
1207: $show_reg, $show_mlist, $show_display, $show_profile,
1208: $private, $guest_access, $active, $default,
1209: $can_search, $bbc, $mask, $enclose, $placement,
1210: ),
1211: array('id_field')
==>1212: );
1213: }


 http://bla.bla/index.php?action=admin;area=memberoptions;sa=pro…
 2: array_combine() [<a href='function.array-combine'>function.array-combine</a>]: Both parameters should have an equal number of elements
 File: /bla/Sources/Class-DB.php
 Line: 508

Code: [Select]
504: // Here's where the variables are injected to the query.
505: $insertRows = array();
506:
507: foreach ($data as $dataRow)
==>508: $insertRows[] = self::quote($insertData, array_combine($indexed_columns, $dataRow), $connection);

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Adding a profile field
« Reply #1, on November 2nd, 2012, 04:25 PM »
Bah, stupid bug on my part. I've fixed it locally, thanks for reporting!
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial