I'm running 5.1 on a LAMP machine. MySQL version: 5.0.24a and PHP 5.2.2.
When I submit my newsletter with related content, I get the following errors:
- # warning: array_keys() [function.array-keys]: The first argument should be an array in /home/.tella/norwalkadmin/norwalksandbox.com/html/modules/user/user.module on line 361.
- # warning: implode() [function.implode]: Bad arguments. in /home/.tella/norwalkadmin/norwalksandbox.com/html/modules/user/user.module on line 361.
- # user warning: 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 ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/.tella/norwalkadmin/norwalksandbox.com/html/includes/database.mysqli.inc on line 151.
- # warning: Invalid argument supplied for foreach() in /home/.tella/norwalkadmin/norwalksandbox.com/html/sites/all/modules/cck/fieldgroup.module on line 395.
It looks as though the module is somehow unsetting my $user object, which is totally weird? Any idea where it's doing that, or if it's something else entirely?
Comments
Comment #1
nicholas_w commentedactually, it's probably failing to call user_load() somewhere along the line...
Comment #2
nicholas_w commentedTheming theme_relatedcontent() seems to solve the problem, which seems to suggest that that function needs to call user_load()...
Comment #3
TBarregren commentedI'm closing this bug report since it seems to have nothing to do with RelatedContent. If you are of opposite opinion, please don't hesitate to reopen it again.