Calling flexipages() creates debug notices
-
When flexipages is called within the template (rather than as a widget) is creates a bunch of debug notices. These don’t stop execution but it would be nicer if they weren’t there. Mostly they arise because certain variables are evaluated without being defined.
Line 139 – change $show_home to isset($show_home)
Line 238 – added the following:
if(!isset($sort_order)) $sort_order = 'ASC';
if(!isset($show_home)) $show_home = '';
if(!isset($show_date)) $show_date = 0;
if(!isset($date_format)) $date_format = '';
if(!isset($dropdown)) $dropdown = '';
Line 245 – changed $include to isset($include)On my site, I exclude pages/posts but I don’t specifically include any. Nor do I set a value for Hierarchy. So, the routine starting on line 245 evaluates in the negative and doesn’t set a value for $include. So I added the following at line 256:
if(!isset($include)) $include = '';
- The topic ‘Calling flexipages() creates debug notices’ is closed to new replies.