The attached patch will initialize the variable and prevent a php warning. It looks like the var should get initialized from all code paths I could see, yet I do get the warning. Since there are array initializations in other places that could theoretically pass an empty $args array to this function, I hope that the initialization here is acceptable.

warning: Missing argument 2 for panels_page_view_page() in /home/clients/websites/w_cbi/sites/cbi-dev.civicactions.net/modules/contrib-5--2/panels/panels_page/panels_page.module on line 608.
CommentFileSizeAuthor
panels_page_view_page_init.patch690 bytesdouggreen

Comments

merlinofchaos’s picture

Did you try clearing your menu cache before applying this patch? That usually solves this problem.

douggreen’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

No I didn't. I just cleared the cache, and the problem's no longer there, so I'll go with your suggestion that that was the problem.