How to Fix "Cannot use object of type stdClass() as array" Error in OSMeta Pro

In some use cases, you may encounter the Cannot use object of type stdClass() as array error when you navigate to Components > OSMeta Pro > Menu Items in your Joomla administrator dashboard.

cannot use object error message

A simple fix that worked for one of our customers is to check and remove trashed menu items.

  • In your Joomla administrator dashboard, go to Menus > All Menu Items.

the all menu items link

  • This will bring you to the Menus: All Menu Items screen, as you can see in the next screenshot. Click Filter Options:

the filter options button

  • Click inside the - Select Status - box and select the Trashed option:

the trashed menu item

  • Delete trashed menu items one at a time, checking after each deletion to see if the error is resolved.