Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP warnings while generating products #126

Open
coreymckrill opened this issue Jun 15, 2023 · 1 comment
Open

PHP warnings while generating products #126

coreymckrill opened this issue Jun 15, 2023 · 1 comment
Labels
bug Issue that can be reproduced.

Comments

@coreymckrill
Copy link
Contributor

While the CLI is generating products, with WP_DEBUG turned on, the following warnings periodically show up:

Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/wc-smooth-generator/includes/Generator/Generator.php on line 99
Warning: Attempt to read property "term_id" on null in /var/www/html/wp-content/plugins/wc-smooth-generator/includes/Generator/Generator.php on line 99

It doesn't happen for every product generated. When generating 20 products, I am seeing the set of two warnings 5 times.

@coreymckrill coreymckrill added the bug Issue that can be reproduced. label Jun 15, 2023
@coreymckrill
Copy link
Contributor Author

Another warning when generating orders after already generating customers and products:

Generating orders  20 % [=============================>                                                                                                                     ] 0:00 / 0:00Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 797
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 798
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 799
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 805
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 806
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 807
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 812
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 813
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 814
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 819
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 820
Warning: Trying to access array offset on value of type bool in /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue that can be reproduced.
Projects
None yet
Development

No branches or pull requests

1 participant