Closed (fixed)
Project:
Language Assignment
Version:
6.x-1.3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
15 May 2011 at 10:39 UTC
Updated:
4 Jul 2011 at 05:02 UTC
this error occur in Fatal error: Unsupported operand types in /home/modules/languageassign/languageassign.module on line 67
i'm using drupal 7.0 and languageassign 7.x-1.x-dev dated 2011-Feb-25
this are the lines
66 $form['admin']['options']['operation']['#options'] =
67 $options + array(t('Set language') => $LAopts);
Comments
Comment #1
dgastudio commentedsame here, trying to delete a node:
Fatal error: Unsupported operand types in /home/u2911/domains/******/sites/all/modules/languageassign/languageassign.module on line 66
Comment #2
dgastudio commentedand in error log
Notice: Undefined index: admin в функции languageassign_form_node_admin_content_alter() (строка 56 в файле /home/u2911/domains/********/sites/all/modules/languageassign/languageassign.module).
Warning: Invalid argument supplied for foreach() в функции languageassign_form_node_admin_content_alter() (строка 58 в файле /home/u2911/domains/********/sites/all/modules/languageassign/languageassign.module).
Comment #3
Andrew Schulman commentedThank you for reporting this. Whew, this was a bad one.
I've committed a fix for this bug. It works in my testing. Those of you who've also encountered this problem, please also test it and let me know if it works for you. To test:
Without the patch, this operation will give the "Unsupported operand types" error message. After the patch, it should work fine. Please let me know.
Comment #4
Andrew Schulman commentedThis bug doesn't occur in D6.
Comment #5
Andrew Schulman commentedFixed in 7.x-1.2. Please reopen this bug if you think otherwise.
Comment #6
summit commentedHi, I have exactly the same problem, but I am on D6. Trying to delete nodes, and this is not working correctly. Will try to apply the patch.
greetings, Martijn
Comment #7
Andrew Schulman commentedComment #8
Andrew Schulman commentedMartijn, I just committed a patch for this. Please try it out, or wait for the next 6.x-1.x-dev release to become available later today and try that, and see if it fixes the problem for you.
I am surprised by this because although I was able to reproduce this problem in D7, I couldn't reproduce it in D6, so I thought it wasn't a problem there. But there may be an interaction with another module that triggers the error. Since I can't reproduce it here, I need for you to test it and tell me if this patch fixes the problem. If it does, please tell me and I'll issue a new release right away.
Andrew.
Comment #9
summit commentedHi,
I added the patch, but I deleted all content all with disabling the module first.
I will look into it when I have to delete content again. Thanks a lot for your quick reply!
greetings, Martijn
Comment #10
Andrew Schulman commentedWould you mind creating a dummy page, then deleting it again, in order to test whether the deletion works?
Comment #11
Andrew Schulman commentedMarking fixed. I'll release version 6.x-1.4 with this fix.