{"id":18455395,"date":"2025-05-07T20:23:04","date_gmt":"2025-05-07T20:23:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-maxitems\/"},"modified":"2025-05-07T20:23:04","modified_gmt":"2025-05-07T20:23:04","slug":"undefined-variable-maxitems","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-maxitems\/","title":{"rendered":"Undefined variable $maxitems"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In happy-elementor-addons\/classes\/dashboard-widgets.php line 56 sets $maxitems if there is not an error pulling content from the rss feed, if there is an error then $maxitems doesn&#8217;t get defined and so when it is later used on line 107 the page throws an error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I assume you could just default $maxitems to 0 on line 54 so it is defined but I&#8217;ve not tried that out.<\/p>\n","protected":false},"template":"","class_list":["post-18455395","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18455395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18455395\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18455395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}