Active
Project:
Commerce
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Apr 2012 at 00:19 UTC
Updated:
26 Feb 2016 at 13:23 UTC
Jump to comment: Most recent
Pretty much the title says it all.
This is a fresh installation - no modules, no nothing. Just as it is from http://ftp.drupal.org/files/projects/drupal-7.12.tar.gz.
And it's running on:
Apache 2.2.10
PHP 5.3.6
PostgreSQL 8.3.5
Slackware 11
Comments
Comment #1
berdir$item +=... is line 2107.
Sounds like it fails to load the menu item, are you sure that your installation didn't abort or something like that? *Something* must have gone wrong for you, looks like you're the first one to report this.
Try to re-install into a clean database and check if you still experience this bug? Does it also happen when you are using MySQL or SQlite?
Comment #2
filijonka commentedwell purely technicly adding arrays with += is wrong and db_query()->fetchassoc always do return an array(?).
we do though use this construction on other places without problem.
so if Berdirs suggestion doesn't help perhaps we should see if changing that line to a more correct way of adding an array to another will help.
Comment #3
berdirAs per xjm's instructions (thanks!), I'm changing this to an un-critical support request until this has been confirmed and can be reproduced by someone else.
Please provide more information as requested in #1 and detailed steps to reproduce this, starting from the installer.
Comment #4
vivdrupal commentedWorking on MySql -
Fatal error: Unsupported operand types in ....\modules\system\system.module on line 2107
while trying to access
/admin/commerce/products/add
Comment #5
spgd01 commentedI get this error when trying to go to admin/config/messaging
Comment #6
naveenk.php commentedUnsupported operand types in ..........l/drupal/modules/system/system.module on line 2107
i am also got this error
Comment #7
balagan commentedI also got similar error with a new install, using PHP/5.4.10, Apache and Postgresql 9.2.1 as a database.
The error pointed to: htdocs\\drupal\\includes\\theme.inc on line 1071,
I got the same error with xampp (mysql). Just install ctools plugin example clicking its menu item gives this error (http://localhost/drupal/admin/settings/ctools_plugin_example)
Comment #8
maerys commentedSame here with the Commerce module. When hitting the store button the error appears...
Comment #9
Paul B commentedThis test module will trigger this error:
As it's a MENU_CALLBACK it's not in the menu_links table.
Comment #9.0
Paul B commented( ! ) Fatal error: Unsupported operand types in /.../drupal-7.12/modules/system/system.module on line 2107
Call Stack
# Time Memory Function Location
1 0.0013 327372 {main}( ) ../index.php:0
2 0.4324 15915112 menu_execute_active_handler( ) ../index.php:21
3 0.4487 16701600 call_user_func_array ( ) ../menu.inc:517
4 0.4487 16701732 system_admin_menu_block_page( ) ../menu.inc:517
5 0.4488 16701732 system_admin_menu_block( ) ../system.admin.inc:68
Comment #10
jochen wendebaum commentedSame error as in #4 here, too.
Changing line 2128 from
$item += db_query("SELECT mlid, menu_name FROM {menu_links} ml WHERE ml.router_path = :path AND module = 'system'", array(':path' => $item['path']))->fetchAssoc();to$item = array_merge ( $item, db_query("SELECT mlid, menu_name FROM {menu_links} ml WHERE ml.router_path = :path AND module = 'system'", array(':path' => $item['path']))->fetchAssoc());could solve that problem if I would dare to change that file.Comment #11
filijonka commentedHi @jochen
We need more information, we need steps to be able to reproduce this Based on your comment this is an error in commerce module and not in core, have you reported this in commerce module issue queue?
Comment #12
jochen wendebaum commentedWell, no.
This is a strange issue, because by searching this issue for some hours, the solution was to rearrange entries in the management menu. Now the error has disappeared.
Nevertheless, there seems to be some issue with this part of the code, as a wrongly arranged management menu it appears again.
Comment #13
gbyteHi Jochen, facing the same issue here. How exactly did you rearrange the items to fix the issue?
Comment #14
Madhura BL commentedHi, I have the same problem with the Commerce module. When hitting the store button the error appears...
@gbyte.co, were you able to find a fix for this? please help
Comment #15
shablm commentedcleared the cache_menu table, disabled and re-enabled the menu module, Error gone :)
Comment #16
gbyte@madhura_bl, this did not work for me including disabling all commerce and menu related modules and clearing all caches.
What did work for me however, was simply editing the broken link and clicking save. Don't have time resources to investigate ATM, maybe in the future.
Comment #17
land0 commented@madhura_bl your solution worked for us. Thank you. :)
Comment #18
marko b commented#14 didnt work for me
Comment #19
cilefen commented@Marko B Since this is an old issue, could you please detail the steps you took and the error message in full?
Comment #20
marko b commentedIt's pretty simple. I have DC installed, I go to http://site.local/admin/commerce and I just get this error, this is on different setups, computers and servers.
Rest of the pages are fine. All working, just this link above is crashing.
Comment #21
cilefen commentedI cannot reproduce the error.
I am moving this to the commerce module queue since that is what seems to be the issue. Please put the steps to reproduce in the issue summary.
Comment #22
bember commentedIt seems that this happen because router_path != link_path on some commerce links. I have fixed the problem by running the following code:
Comment #23
Nkendall commentedI ran #22 in devel execute php and that solved the problem for me.
Comment #24
Nkendall commentedSo, now this error started popping up after running the code in #22.
. Might have further diagnostic utility.
Comment #25
Nkendall commentedHappens with update to 7.43, # 22 still fixes it.