Download & Extend

Warning: Invalid argument supplied for foreach() in menu_unserialize() line 400 of includes/menu.inc

Project:Webform
Version:7.x-4.0-alpha6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This error occurs when editing a view that uses webform components. It may be ajax related.

applications = view name
applications_complete = display name
admin/structure/views/ajax/config-item/applications/applications_complete/relationship/data_2

Comments

#1

Fixed this issue.

Go to your include/menu.inc file and replace the function with the following

function menu_unserialize($data, $map) {
  if ($data = unserialize($data)) {
     if ((!is_array($data)) && (!is_object($data))) {
         return $data;
         }
    foreach ($data as $k => $v) {
      if (is_int($v)) {
        $data[$k] = isset($map[$v]) ? $map[$v] : '';
      }
    }
    return $data;
  }
  else {
    return array();
  }
}