Wedge
Public area => Bug reports => The Pub => Archived fixes => Topic started by: Farjo 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
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
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);
-
Bah, stupid bug on my part. I've fixed it locally, thanks for reporting!