Fatal error: Cannot use object of type stdClass as array in www/includes/theme.inc on line 813
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | langiconfix-1176922-2.patch | 760 bytes | emilkarl |
| #2 | langiconfix-1176922-1.patch | 596 bytes | emilkarl |
Fatal error: Cannot use object of type stdClass as array in www/includes/theme.inc on line 813
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | langiconfix-1176922-2.patch | 760 bytes | emilkarl |
| #2 | langiconfix-1176922-1.patch | 596 bytes | emilkarl |
Comments
Comment #1
emilkarl commentedI get the same error, it only occurs if I have languageicons module installed as well. Looking for solution...
Comment #2
emilkarl commentedFix for language icons problem.
Comment #3
emilkarl commentedUpdated the code a bit to remove notices.
Comment #4
juves commentedFront: Fatal error: Unsupported operand types in /www/includes/form.inc on line 1681
Admin: Notice: Array to string conversion in form_builder() (Line 1768 in /iwww/includes/form.inc).
--------------------------------------------
This lines
should be changed to
because $flag_position is only defined if js-widget is enabled
Comment #5
juves commentedI have applied your patch and changed this
to this
No notices and icons are there
Comment #6
juves commentedNow, if change the language on a node, I get the same node and translated interface, not the translated node.
Comment #7
JGO commentedI applied #3, #4 & #5 and I can only say it works terrific. Please fix asap :)
My only problem left is that my layout gets a bit messed up inside the block.
Comment #8
metakel commentedI got the same error in line number 813.
And I can't apply the patches. They were rejected, no match I patched with -p0 or -p2.
Hope that there will be an integrated and patched module soon.
Comment #9
dbiot commentedAfter applying all these patches it seems to work because I see the language icons, but I still get error messages:
Notice: Undefined index: flag_position in lang_dropdown_form() (line 168 of /home/aurelied/domains/aurelie-david.be/public_html/modules/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: flag_position in lang_dropdown_form() (line 172 of /home/aurelied/domains/aurelie-david.be/public_html/modules/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: flag_position in lang_dropdown_form() (line 168 of /home/aurelied/domains/aurelie-david.be/public_html/modules/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: flag_position in lang_dropdown_form() (line 172 of /home/aurelied/domains/aurelie-david.be/public_html/modules/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: flag_position in lang_dropdown_form() (line 168 of /home/aurelied/domains/aurelie-david.be/public_html/modules/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: flag_position in lang_dropdown_form() (line 172 of /home/aurelied/domains/aurelie-david.be/public_html/modules/lang_dropdown/lang_dropdown.module).
My theme is a custom Zen theme.
Comment #10
sag3r commentedI applied #3, #4 & #5 and I have 2 notices:
Notice: Undefined index: flag_position in lang_dropdown_form() (line 168 of /modules/lang_dropdown/lang_dropdown.module).
Comment #11
pebosi commented#3 works to fix the fatal error.
Comment #12
mohammed j. razemShould be fixed in new 7.x-1.0 release.