Possible exception in class-field-groups.php | WordPress.org

[ad_1]

Hello,

There is a check for the product id in class-field-groups.php line 306.

But as typical in PHP/ WordPress the ID can be a “valid” string as well..

–> if it isn’t a int the logic will go on an may throw an error later, i.e.

PHP Fatal error: Uncaught Error: Call to a member function get_id() on string in /…/wp-content/plugins/advanced-product-fields-for-woocommerce/includes/classes/class-field-groups.php:310

Thanks Adrian

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer