Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 7.43
7.x-1.11 Rooms install
Creates the following error when clicking on the following link... /admin/rooms
Fatal error: Unsupported operand types in /modules/system/system.module on line 2134
The following modules are installed and activated.
Rooms
Rooms Availability
Rooms Availability Reference
Rooms Booking
Rooms Booking Manager
Rooms Pricing
Rooms UI
Rooms Unit
Rooms Weekly/Monthly Pricing
Comments
Comment #2
cecrs CreditAttribution: cecrs commentedThis sounds like a borked installation to me. Are you getting the error at any other url? If not, you can try running the following in devel execute php:
This error is generally triggered when a router_path is not the same as the link_path.
Comment #3
slipit CreditAttribution: slipit commentedOnly link. All the other rooms module links work fine.
Not sure how it could be borked. Upgraded to 7.43 before installing the latest version of the module. Below is line 2134 the error references.
$item += db_query("SELECT mlid, menu_name FROM {menu_links} ml WHERE ml.router_path = :path AND module = 'system'", array(':path' => $item['path']))->fetchAssoc();
What will the db_update actually do? Does it actually change anything or simply look for mismatches?
Comment #4
slipit CreditAttribution: slipit commentedcesrc,
Ran update.php and it returned clean results without error.
I was asking the questions about devel/php because it was throwing an error. Had to apply a patch to it before I could run the suggested script.
Then ran the script at devel/php and the link now appears to be working.
If this turns out differently than anticipated I will post again.
Thank you cesrc!