Hey Berdir and all,

I've been the testing process on the latest 7.x-dev snapshot. I noticed that when a user who has a new private message logs in there is a White Screen of Death. Checking the Apache error logs, here is the message I'm getting:

PHP Fatal error: Cannot use string offset as an array in /home/sandboxes/sandbox10/public_html/sites/all/modules/contrib/privatemsg/privatemsg.module on line 1956

I tried unchecking "Inform the user about new messages on login," but that didn't fix the error.

Navigating to the home page or a node page causes the error (even after initial login). But navigating to /user or an admin page still works fine.

Thoughts?

--Ben

Comments

BenK’s picture

Title: Fatal Error When a User Logs In Who Has a New Message » D7: Fatal Error When a User Logs In Who Has a New Message
BenK’s picture

Note that the user can navigate to /messages even though he can't visit the homepage or a node page.

I also tried deleting the message thread altogether, but that didn't fix the White Screen of Death.

--Ben

BenK’s picture

Title: D7: Fatal Error When a User Logs In Who Has a New Message » Fatal Error When a User Logs In Who Has a New Message
berdir’s picture

Title: Fatal Error When a User Logs In Who Has a New Message » Fatal error when displaying send message to author links on nodes
StatusFileSize
new7.73 KB

See title, this happens when you have the setting to display privatemsg links enabled because Privatemsg still assumes that node titles are fields.

The patch fixes that and also two separate bugs for blocks and comes with tests (Took them together so that I can write a single test class for both).

berdir’s picture

Status: Active » Needs review
berdir’s picture

Version: 7.x-1.x-dev »
Status: Needs review » Patch (to be ported)

Same here, commited and backport to 6.x-2.x-dev is planned.

berdir’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new5.83 KB
berdir’s picture

StatusFileSize
new5.83 KB

files with D6 are still ignored... :)

berdir’s picture

StatusFileSize
new5.86 KB

With ending newline

BenK’s picture

Just wanted to let you know that Patch #4 solved this problem for me in D7... thanks!

--Ben

berdir’s picture

Status: Needs review » Fixed

Commited the tests to 6.x-2.x-dev and (a adapted version without node link tests) to 6.x-1.x-dev. Yay for more tests!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.