Line 186 throws an array_keys() error when a node is submitted with the mail_handler module and NPBR calls array_keys($user->roles)

Fixing this means making sure $user->roles is set to something valid. It may be that mailhandler is not setting $user correctly... will need to research...

-Ankur

Comments

moshe weitzman’s picture

perhaps you mean listhandler? mailhandler doesn't create users.

killes@www.drop.org’s picture

Project: node privacy byrole » Mailhandler
Assigned: Unassigned » killes@www.drop.org

This is not erelated to npbr but to mailhandler alone. For some reason no roles get selected and not only does npbr fail, but also filter.module:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR format = 1' at line 1 query: SELECT * FROM filter_formats WHERE OR format = 1

moshe weitzman’s picture

Version: » 4.3.x-1.x-dev
Status: Active » Closed (fixed)

too ancient