• Had been happily uploading t-shirt designs to my wordpress ecommerce site via Street shirts plugin – however today came across the following error:

    “code”:”rest_invalid_param”,”message”:”Invalid parameter(s): variations”,”data”:{“status”:400,”params”:{“variations”:”variations[0][price] is not of type string.”}

    No idea what this means – chat function on Street shirts suggested something to do with .htaccess file (??)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author stevewinn

    (@stevewinn)

    Hello,

    I think this is a result of an API change. Can you let me know the version of wordpress you are using and the version of woocommerce?

    We are tested up to WP 4.8 and WC 3.0.8

    Thanks

    Steve

    Thread Starter greenbubba

    (@greenbubba)

    Thanks Steve,

    I’d reverted to WC 3.0.8 but hadn’t realized that the WP upgrade had also had an impact. Currently reverting to WP 4.8 and hopefully all will be back to normal.

    Cheers,
    Mark

    Plugin Author stevewinn

    (@stevewinn)

    No problem – did this help?

    If it’s WP 4.9 that caused the problem, then it must have changed the typing for the API. I will update the plugin in due course.

    Steve

    Thread Starter greenbubba

    (@greenbubba)

    No – unfortunately not. Reverted to WP 4.7.5 (WP 4.8.0 auto updated to 4.8.3) and WC 3.0.5. Now have the follow error code

    {“code”:”woocommerce_rest_cannot_create”,”message”:”Sorry, you are not allowed to create resources.”,”data”:{“status”:401}}

    Any ideas?

    Plugin Author stevewinn

    (@stevewinn)

    woocommerce_rest_cannot_create

    Our back-end connects to your woocommerce API and authenticated using Basic Auth. Therefore you will need to enable this in your .htaccess for the plugin to be able to add products. Other features are available without this.

    I am working on updating to support WP 4.9 but the data typing has changed.

    Plugin Author stevewinn

    (@stevewinn)

    Hi again,

    I have tested with WP 4.9 and WC 3.2.5 and products add correctly.

    I have updated the compatibility of the plugin in its tags.

    Steve

    Thread Starter greenbubba

    (@greenbubba)

    Thanks Steve for updating to the latest versions of WP & WC. Quick question, how do I enable .htaccess for the plugin to be able to add products? I’ve got custom htaccess plugin enabled or could download the file via FTP – but not sure which piece of code is relevant

    Cheers
    Mark

    Plugin Author stevewinn

    (@stevewinn)

    Hi,

    I don’t know as I’m a c# developer by trade, so I am not familiar with php much.

    Have a look here and see if it helps.

    https://stackoverflow.com/questions/38610599/woocommerce-rest-api-woocommerce-rest-cannot-create

    Steve

    I’m having exactly the same problem, but don’t even know where to start with these fixes.

    Any simple walkthroughs to help?

    I’m using WP 4.9.1 and WC 3.2.6

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error submitting products from Streetshirts to Woocommerce’ is closed to new replies.