Closed (fixed)
Project:
Flag
Version:
6.x-2.0-beta2
Component:
Flag core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2010 at 12:13 UTC
Updated:
26 Jul 2012 at 08:11 UTC
Hi,
I've just updated my flag module to 6.x-2.x-dev and receiving the following errors on all page views in log entries. I cannot downgrade to flag 6.x-1.2
array_intersect() [<a href='function.array-intersect'>function.array-intersect</a>]: Argument #1 is not an array in /home/mysite/public_html/sites/all/modules/flag/flag.inc on line 407.
Would most appreciate a response on what the problem might be :)
Thank you for this wonderful module.
Lilian
Comments
Comment #1
liliplanet commentedI deleted flag.tpl.php in my theme folder and all is good :)
Comment #2
timcosgrove commentedI have this same issue. Deleting flag.tpl.php does not cause the error to stop, and furthermore prevents flags from being printed to page, and causes more errors to be thrown.Comment #3
timcosgrove commentedApologies: problem was due to us defining flags via install profile and not setting roles in our definition.
Liliplanet, I could be wrong but i'm pretty sure that if you deleted flag.tpl.php and you're not theming elsewhere you have rendered the flag module useless to you, and you should probably just turn it off.
Comment #5
mvidelgauz commentedI now have the same issue. It has been working for me some time ago but just today I discovered that I cannot set any flag. No records added to flag_content table. Error log shows the same message as mentioned in this issue and also another one:
Unknown column 'sid' in 'where clause' query: SELECT * FROM drupal_flag_content WHERE content_type = 'node' AND content_id = 67581 AND (uid = 1 OR uid = 0) AND sid = 0 in sites/all/modules/flag/flag.module on line 1479
Comment #6
mvidelgauz commentedForgot to mention that I have 6.x-2.0-beta2
Comment #7
quicksketchIf there is no "sid" column, your database is out of date or incorrect. Try running update.php. If that fails, disable and uninstall the module, then enable it again. I'm marking this issue as fixed, please reopen if you have further questions.
Comment #9
skepich commentedrepeated message. (del)
Comment #10
skepich commentedMay be this code help you.
Comment #11
joachim commentedOriginal issue seems to be resolved. Please open new issues for new problems.