I was debugging occasional fatal errors on a client site due to signup views going missing. I then put some debug in signup_views_default_views() and discovered that while it works the first time it's called, it then returns an empty array every subsequent time it's called later in the request.

This is just because it uses require_once instead of require, which means on subsequent runs, $view never gets set (because the file is not required again), so nothing gets returned.

Patch coming up once I have an nid.

CommentFileSizeAuthor
#4 signup.zip118.72 KBHardik C
#1 signup_1357802.patch564 bytescatch

Comments

catch’s picture

Status: Active » Needs review
StatusFileSize
new564 bytes

Here it is.

dww’s picture

Status: Needs review » Fixed

Oh, FFS. I already solved that problem in my other modules over at #708474: Views go missing if hook_views_default_views() is called multiple times and #716756: issue views broken with latest Views 6.x-2 . Apparently I forgot to fix signup at the same time. Sorry! Committed and pushed. Thanks for the patch.

Status: Fixed » Closed (fixed)

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

Hardik C’s picture

StatusFileSize
new118.72 KB

Hi,

Hope, This solution patch would have been useful to resolve this issue.

It works for me..!! :) :)