Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
using drupal 6, and every thing is up to current version.
Here is the log: (have dozens of these same errors)
Type php
Date Saturday, April 17, 2010 - 19:31
User Ireful
Location http://floridafurs.com/user/57/edit
Referrer http://floridafurs.com/user/57
Message in_array() [function.in-array]: Wrong datatype for second argument in /www/floridafurs.com/htdocs/sites/all/modules/forum_access/forum_access.admin.inc on line 860.
Severity error
Hostname 70.121.248.41
Operations
Comments
Comment #1
Yappyfox CreditAttribution: Yappyfox commentedI also just upgraded to -dev on this module.. And problem still exists. (Thought I would try it to rule it out)
Comment #2
Lapaj CreditAttribution: Lapaj commentedI can confirm this on my site: http://androidportal.hu
Drupal 6.14
Comment #3
salvisI'm puzzled by your report.
$form['account']['roles']['#default_value']
is an array containing the rids of the roles that the user has, and he always has at least the 'authenticated user' role, so it's always at leastarray(2)
.When you use user 1 to look at the offending user's profile page, don't you see a list of roles with at least the 'authenticated user' role checked (and disabled)?
Comment #4
Yappyfox CreditAttribution: Yappyfox commentedYes they do show up.. "Authenticated User" is selected and unable to be edited,
Forum Moderator is unselected and unable to be edited
and "Anonymous User" is there as well, and is able to be checked, but is defaulted off.
These are the only roles that appear.
Comment #5
Yappyfox CreditAttribution: Yappyfox commentedlemme try to give you a lil more info.. here is a DB dump of "roles"
SQL query: SELECT * FROM `role` LIMIT 0, 30 ;
Rows: 3
rid name
1 anonymous user
2 authenticated user
4 Forum Moderator
Dunno what other db dumps would be of any further assistance.
Comment #6
salvisWhat? Anonymous is there???
Are we not talking about the user/UID/edit page? Anonymous should not appear on that page!
If you see Anonymous, then you must be using a third-party module that messes with that page.
Comment #7
Yappyfox CreditAttribution: Yappyfox commentedyes anonymous is there.. don't know which module would do that.. Here is a list of modules I have that -might- have bearing?
accountmenu, acl, advanced_forum, advanced_help, advanced_profile, author_pane, birthdays, calendar, calendar_block, captcha, cck, ctools,
date, ed_classified, embed_gmap, forum_access, jqp, jquery_plugin, jquery_ui, jstools, jump, ljxp, mailman_manager,
menu_admin_per_menu, menu_node, menu_node_edit, menu_node_views, mibbit_irc, mobile_tools, node_permissions_grid, panels, profile_permission,
rotor, rules, signup, site_user_list, spamspan, taxonomy_access, token, upload_element, user_mailman_register,
userloginbar, views, wysiwyg
Comment #8
salvisAnonymous is the opposite of authenticated. Being able to assign the 'anonymous user' role to an (authenticated) user is nuts. Core doesn't offer that.
Whichever module is doing that is probably responsible for trashing
$form['account']['roles']['#default_value']
, too.Comment #9
Yappyfox CreditAttribution: Yappyfox commentedSo is this line 860 only responsible for throwing the "forum access" check box on the user edit page, and harmless to any other functions of the module? ie all the access information is getting written out?
Is there a way to trap the anonymous rid from that function, so it won't throw the php errors?
Comment #10
salvisI don't think it's the anonymous rid per se that causes the errors, but the showing up of Anonymous proves that someone is messing with those checkboxes in a reckless and uninformed way.
As long as we can't either reproduce the problem on a site with nothing but FA (and ACL) or identify the offending module, there's nothing we can do.
Comment #11
Yappyfox CreditAttribution: Yappyfox commented"mobile tools" is the culprit. I'm going to open a bug report there referring back to this thread.
Comment #12
Lapaj CreditAttribution: Lapaj commentedThis is the list of modules i'm using too (picked from comment #7): acl, advanced_forum, author_pane, captcha, cck, mobile_tools, token, views, wysiwyg
These can possibly cause the problem.
Comment #13
Yappyfox CreditAttribution: Yappyfox commentedDisable mobile_tools.. I suspect the php error will go away..
Comment #14
salvisPlease test the -dev version of mobile_tools, see #778738: $form['account']['roles']['#default_value'] Gets messed up..
Comment #15
Yappyfox CreditAttribution: Yappyfox commentedYes! everything seems to be happy now.. Thanks so much for spending the time on the issue, even tho it was not your module at fault!
Comment #16
salvisGreat, thanks for letting us know.
Please set issues to fixed rather than closed, so that everyone who's following them (including the maintainer) sees the status change.
Closing an issue immediately removes it from the radar screen.