Unfortunately I'm not sure what's causing this one, but when I navigate to admin/settings/tinymce/add to add my first profile I get the following error:

* warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/form.inc on line 1194.
* notice: Undefined offset: 73 in /path/to/drupal/sites/all/modules/tinymce/tinymce.admin.inc on line 424.
* notice: Undefined offset: 74 in /path/to/drupal/sites/all/modules/tinymce/tinymce.admin.inc on line 425.

Comments

Anonymous’s picture

Same here for the first warning, subscribing.

pishycat’s picture

Title: Undefined offset line 424 » Undefined offset line 1194

getting the same error, no idea why. guess i need to find a solution!

This is whats in the file, word 'foreach appears in said line 1194.

function form_type_checkboxes_value($form, $edit = FALSE) {
if ($edit === FALSE) {
$value = array();
$form += array('#default_value' => array());
foreach ($form['#default_value'] as $key) {
$value[$key] = 1;
}
return $value;
}
elseif (!isset($edit)) {
return array();
}
}

If you have any advice / a solution please let me know.

Tschachim1’s picture

To fix the "warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/form.inc on line 1194." error, open "tinymce.admin.inc", look for the function "tinymce_profile_form_build" and there look for the line:

'#default_value' => isset($edit->rids) ? array_keys((array) $edit->rids) : NULL,

and replace it with

'#default_value' => isset($edit->rids) ? array_keys((array) $edit->rids) : array(),

dr.fox’s picture

thanks Tschachim1 :)

brei9000’s picture

Good fix Tschachim1.

mupsi’s picture

Issue summary: View changes
Status: Active » Closed (outdated)