Hello,

Thank you very much for your work on this module. It's exactly what I need.
After module installation my content disappeared and I received the following errors:

# warning: array_keys() [function.array-keys]: The first argument should be an array in D:\DEVELOPMENT\xampp\www\mysite.tld\includes\common.inc on line 3360.
# warning: Invalid argument supplied for foreach() in D:\DEVELOPMENT\xampp\www\mysite.tld\includes\common.inc on line 3363.

When I logout I receive an "Access denied" message through the website.

It would be so great to get this up & running.
Every help is much appreciated. Please let me know if you need more information.

Thank you very much.
Stefan

CommentFileSizeAuthor
#4 rlogin.install.zip296 byteselanghout

Comments

design.er’s picture

Title: Error messages after module installation and "access denied" message after logout » Error messages after module installation and "access denied" message after logout throughout the whole site
Component: User interface » Miscellaneous
Chris Johnson’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » Chris Johnson
Chris Johnson’s picture

Status: Active » Postponed (maintainer needs more info)

What happens if you disable the rlogin module? Does everything then work?

I'm confused as to how rlogin could cause this error at all. It has no database schema, and the function issuing the errors you quoted above all come from the drupal_schema_fields_sql() function, which is given the name of a database table for which to return the fields.

I think perhaps your problem is caused by something other than the rlogin module.

elanghout’s picture

StatusFileSize
new296 bytes

This problem is causes by two bugs in the rlogin.install script. The functions rlogin_schema() and rlogin_update_1() should return an (empty) array. Delete the rlogin.install script and the errors are gone.

Code-fix:

In rlogin.install change:

function rlogin_schema() {
}

function rlogin_update_1() {
}

Into:

function rlogin_schema() {
return array();
}

function rlogin_update_1() {
return array();
}

catorghans’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

I can confirm this problem AND the solution by elanghout.
Please add to code.