The flag module continues to blow up on me on:
\flag\includes\flag\flag_flag.inc on line 130

I assume it has to do with views, but that is just a guess.

Here is the serialize data that is causing the issue:

a:15:{s:10:"flag_short";s:6:"Select";s:9:"flag_long";s:0:"";s:12:"flag_message";s:8:"Deselect";s:12:"unflag_short";s:16:"Unflag this item";s:11:"unflag_long";s:0:"";s:14:"unflag_message";s:0:"";s:18:"unflag_denied_text";s:0:"";s:9:"link_type";s:6:"toggle";s:6:"weight";i:0;s:13:"show_in_links";a:5:{s:4:"full";i:0;s:6:"teaser";i:0;s:3:"rss";i:0;s:10:"node_block";i:0;s:5:"print";i:0;}s:13:"show_as_field";i:0;s:12:"show_on_form";i:0;s:13:"access_author";s:0:"";s:20:"show_contextual_link";b:0;s:4:"i18n";i:0;}

Comments

joachim’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)

The problematic line is:

    $options += $flag->options();

Can you debug to figure out why either of those is not an array at that point?

stldrupal’s picture

I looked and it was beyond me.

Since the error hoses the entire site, I had to go in to the DB, manually uninstall the module, then go through and manually delete the rows out of all the cache tables.

joachim’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Shame... we can't figure out what caused it now. A backtrace might have been useful, or even the flag type.

I'm closing this as this isn't something I've reproduced on my dev site.

shabbir’s picture

Issue summary: View changes

hey guys,

Same problem here as well, I had a drupal 6 site which I migrated to drupal 7 (the version is 7.24) with flags 7.x-3.2, and i get the same error on flag_flag,inc at line 130 which was with this code

$options += $flag->options();

if i keep it to $options = $flag->options(); (removing + operator) my site is working else the error of unsuported operands on line 130 persists....can anyone help..

Regards,
Shabbir

shabbir’s picture

Hi guys,

comment #2 (or the patch at #8 by Aciid over here) worked for me, I wrapped the if condition around the statement " $options += $flag->options(); " (on line 130 in flag_flag.inc) and it worked for me, you can try and test it on your local machine as well. Still learning drupal :)

Regards,
Shabbir