{"id":8458533,"date":"2016-11-19T21:51:51","date_gmt":"2016-11-19T21:51:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-errors-notices\/"},"modified":"2016-11-19T21:51:51","modified_gmt":"2016-11-19T21:51:51","slug":"php-errors-notices","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-errors-notices\/","title":{"rendered":"PHP Errors (Notices)"},"content":{"rendered":"<p>Good addition to the Elementor community, thank you \ud83d\ude42<\/p>\n<p>Few PHP NOTICE issues that need addressing.<\/p>\n<p>In the main file dz-elementor-addon.php the variable <code>$i<\/code> is undefined. If its a must use then you can open the foreach loop with <code>$i = 0;<\/code> just before the <code>$widget_file<\/code> variable.<\/p>\n<p>Files: ProductCategories1Widget.php and Products1Widget.php<br \/>\nFor both files line 34 is not required + the variable $title is not defined<\/p>\n<p>In both the files above + the PostsWidget.php use <code>wp_reset_postdata()<\/code> only instead of <code>wp_reset_query()<\/code>. Do not use a combination of both.<\/p>\n","protected":false},"template":"","class_list":["post-8458533","topic","type-topic","status-publish","hentry","topic-tag-php-errors","topic-tag-php-notice"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8458533","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\/8458533\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8458533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}