• Resolved mariosprob

    (@mariosprob)


    Hi i am getting this error : invalid parameter line_items
    {“code”:”rest_invalid_param”,”message”:”\u039c\u03b7 \u03ad\u03b3\u03ba\u03c5\u03c1\u03b7 \u03c0\u03b1\u03c1\u03ac\u03bc\u03b5\u03c4\u03c1\u03bf\u03c2(\u03bf\u03b9): line_items”,”data”:{“status”:400,”params”:{“line_items”:”\u03a4\u03bf line_items[0][price] \u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf\u03c5 \u03c4\u03cd\u03c0\u03bf\u03c5 string.”}}}
    when i am trying to push the button pay and i cant finish the payment.What can i do?

    Photo of the error
    https://www.dropbox.com/s/t42ax5ohxlydtfm/poserror.PNG?dl=0

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m getting the same error – updated wordpress yesterday – is this causing the problem?

    Yes it seems it was causing the problem – rolling back the wordpress update!

    Yeah I am getting the similar error

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

    @strongumdog does rolling back solve the issue?

    Plugin Author kilbot

    (@kilbot)

    Hi All,

    Yes, rolling back to WordPress 4.8 will fix the issue. I apologise for the inconvenience. The fix itself will only take a couple of hours … but I am currently without a laptop, I’m trying to organise something as quickly as possible.

    In the meantime, this serves as a good reminder …
    1. Always wait a week or so before updating WordPress or WooCommerce major release
    2. Never, ever, ever buy anything from Dell computers

    Thanks @kilbot rolling back to 4.8 does fixed the issue.

    Could you notify us here once you have fixed the plugins?

    Thanks.

    Any news on when the update to fix this issue will be ready?

    Plugin Author kilbot

    (@kilbot)

    Hi all, apologies for the delay while I wait for my new laptop to be delivered.

    I have had a look at the changes in WordPress 4.9 and have identified the line of code which is causing the compatibility issue. If you cannot rollback to WordPress 4.8 and you need a fix immediately please do the following:

    1. FTP to your server
    2. Find /wp-includes/rest-api/endpoints/class-wp-rest-controller.php
    3. Go to line 548
    4. Remove properties and additionalProperties from the array

    This will be a temporary fix to get you through until an update to WooCommerce POS can be released.

    The above does not entirely fix the compatibility issue. The only solution at the moment is to rollback to WordPress 4.8.

    • This reply was modified 7 years, 5 months ago by kilbot.
    Plugin Author kilbot

    (@kilbot)

    I have just released 0.4.16 of WooCommerce POS which fixes the ‘rest_invalid_param’ error. Thank you all for your patience.

    (UPDATE) I HAVE DISABLED VARNISH ON THE SERVER HOSTING AND THIS SOLVED THE PROBLEM BELOW.

    Hi there, still getting the same error. I have cleared all browsing data and all plugins are up to date. No cachiing is currently activated.

    Invalid parameter(s): line_items

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

    • This reply was modified 7 years, 5 months ago by just2zang.

    Hi All

    I am getting an error message that is somewhat similar but a little different:

    Invalid parameter(s): line_items

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

    Will I need to roll back to a previous WP version or should this be fixed by now?

    Plugin Author kilbot

    (@kilbot)

    Hi @ripebr, updating WooCommerce to 3.2.5+ should fix the tax_class type setting.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error Invalid parameter’ is closed to new replies.