If a user does not have a MySite account, trying to access any of the View Edit or Content pages will cause an infinite loop. This is due to a missing 'page' argument causing the submenu routines to crash.

Fix seems to be to edit function mysite_get_pages()

Edit line 1204 to:

  $pages = array(0);

This will cause the $page array to have at least one value so that the submenu routines do not fail.

CommentFileSizeAuthor
#2 mysite3.patch3.87 KBagentrickard

Comments

agentrickard’s picture

There is a related issue with not creating the first page entry for a user, which requires an additional patch.

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new3.87 KB

Attached patch addresses both issues.

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

agentrickard’s picture

Title: Redirect failure when no user pages exist » 5.x.3 Redirect failure when no user pages exist
Anonymous’s picture

Status: Fixed » Closed (fixed)

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