Neo Neo - 7 months ago 5
PHP Question

Fatal error: Cannot use object of type stdClass as array after upgrading to Joomla 3.5.1

Fatal error: Cannot use object of type stdClass as array in dministrator/components/com_menus/models/item.php on line 548

Lines #546-#550:

// Get selected fields
$filters = JFactory::getApplication()->getUserState('com_menus.items.filter');
$data['published'] = (isset($filters['published']) ? $filters['published'] : null);
$data['language'] = (isset($filters['language']) ? $filters['language'] : null);
$data['access'] = (isset($filters['access']) ? $filters['access'] : null);


Error occurred while creating a new menu item in Menu Manager.

The Menu Manager works fine until upgrading from Joomla 3.4.1 to 3.5.1.

Answer

Ensure your extensions are running the latest versions.

You can also search for uses of

JFilterInput::clean(SOMETEXT);

and replace it with:

$filter = new JFilterInput;
$filter->clean(SOMETEXT);

Check this : https://docs.joomla.org/J3.x:Fatal_Error_in_Input_Filtering/en

Comments