When playing with Commerce Shipping + Flat Rate (commerce_flat_rate) I've created a shipping service called "10" (with the same as machine name). Now I'm not able to either edit or delete it from UI - perhaps would be good to either disallow such machine names, or handle them properly...

Comments

rszrama’s picture

Project: Commerce Shipping » Drupal core
Version: 7.x-2.x-dev » 7.x-dev
Component: Code » field_ui.module

This is a core issue apparently, not isolated to Commerce Shipping. I reproduced the issue with product and node bundles - in other words, go create a node type named 10 and you'll get the same error. The issue is that the menu item has an array for the title instead of a string, like it's seeing the integer as an excuse to go load a list of bundle titles instead of a single one.

The specific error is:

Notice: Array to string conversion in _menu_tree_check_access() (line 1516 of /drupal/includes/menu.inc)

I can't say for certain if this has something to do with the Field UI system of defining menu items itself or if it's just a general problem with the menu system where perhaps this argument is being construed as an array index when passed as an argument.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.