Active
Project:
Flag Form
Version:
6.x-1.0-alpha3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2010 at 17:07 UTC
Updated:
16 Jun 2011 at 10:04 UTC
I have enabled this beta version and I searched the inc file and there are no declarations of the array_intersect. I am fairly new to PHP so i am not certain the rules with that code.
Please help =).
# warning: Illegal offset type in /home8/develos2/public_html/sites/all/modules/flag/flag.inc on line 407.
# warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /home8/develos2/public_html/sites/all/modules/flag/flag.inc on line 407.
Comments
Comment #1
quicksketchCould you describe the steps necessary to reproduce this problem? Did you upgrade from the 1.x version of the module or is this a clean install?
Comment #2
camaromelt commentedI was using your 1.x version. I than uninstalled that module so that I could reinstall the beta version. I had rules and views set-up to display the flags. I am thinking that might be the cause of the problem. I read elsewhere that its a PHP 4.0 issue but I am using Bluehost who uses 5.0 for their PHP. I checked your code and the function that you reference seems to be specific to PHP 5.0. Not sure why it would consider that an issue since I am using PHP 5.0. Should I uninstall my modules that were using Flags as well to see if that might alleviate the problem? Thank you for the quick response. Your module is amazing.
Comment #3
quicksketchYou should probably remove any Rules that you have set up around Flag. If you didn't completely uninstall Flag 1.x (at admin/build/modules/uninstall), make sure that you run update.php after dropping in the new version.
Comment #4
camaromelt commentedI will delete the rules and the view and then reinstall flags to see if that fixes the problem. I shall report with my findings. Thank you
**********Update************
I removed Flag Form and the error disappeared. That must be the module that is referencing that Function.
Comment #5
quicksketchExcellent thanks. Let's move this over to Flag Form for their reference. As noted on the project page, all Flag add-on modules must be upgraded to work with the 2.x version of the module, as there have been a few subtle changes. This sounds to me like a likely problem caused by Flag's new permissions system, where instead of $flag->access being a single-dimension array, it is now split into separate $flag->access['flag'] and $flag->access['unflag'] arrays.
Comment #6
camaromelt commentedYes indeed. How can I move this over them? I am mega newb here but I am eager to tear this product apart and help as much as I can =).
Comment #7
quicksketchI already transferred this issue. You just have to update the "Project" and "Version" fields when leaving a comment.
Comment #8
camaromelt commentedVerified Version and project are set properly. Thanks again.
Comment #9
jangolden commentedHi, I was wondering if you have a status on this issue? I am still getting this error with Flag 6.x-2.0 beta3 and Flagform (all versions). I need to use the 2.0 version of Flag for the anonymous flagging capabilities. I also need to display the flag link as a checkbox, so this module would come in handy! Thanks!
Comment #10
leilla commentedHello quicksketch ,
I am still getting this error with Flag(6.x-2.x-dev) and Flag Form(6.x-1.0-alpha3 ).
I need to use the dev version of Flag because I am using the 6.x-1.x-dev of flag lists .
Could you help me please to resolve this ?