• Resolved digitaleffex

    (@digitaleffex)


    When logging into my test account on this site, and then logging into my vendor account, the links on the dashboard are all on one line. I can see this being confusing to users. So I updated the links.php file to put each link on its own line. But each time the plugin updates, I lose that customization.

    In addition, I’ve modified the application-status.php file to explain some more to a potential vendor, but this is also lost with each update. Are there any ways to keep these files the same when updating the plugin?

    I’ve tried to save them, then reupload the saved files, however, I get errors upon logging in.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter digitaleffex

    (@digitaleffex)

    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.

    Thread Starter digitaleffex

    (@digitaleffex)

    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

    Thread Starter digitaleffex

    (@digitaleffex)

    Any update? Also, I added the directory to my theme, but no changes took effect when I customized it.

    Thread Starter digitaleffex

    (@digitaleffex)

    Still nothing?? I’m still getting the error. Are you monitoring this thread?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Modifications being lost when updating’ is closed to new replies.