Now, when I update WC Vendors and log in as if I’m a vendor and try to add a new product, I see this error on the product page:
parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Hello
You should not be modifying the plugin templates. These templates should be copied to your theme.
Please see the documentation here: https://docs.wcvendors.com/knowledge-base/changing-the-vendor-templates/
The second bug was resolved in the next update available tomorrow.
cheers,
Jamie.
Thank you for the information. I’m still seeing the error when I log in after updating the plugin, however. When I log in as a vendor and click “add new product” I see this on the top of the page:
parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 174
Underneath the “product data” area, I’m seeing this error:
Warning: in_array() expects parameter 2 to be array, string given in /home/ponojewels/public_html/wp-content/plugins/wc-vendors/classes/admin/class-admin-users.php on line 193
Any update? Also, I added the directory to my theme, but no changes took effect when I customized it.
Still nothing?? I’m still getting the error. Are you monitoring this thread?