• michaelsunier

    (@michaelsunier)


    Hello dear WordPress community,

    Since I did not find any similar issues by searching on Google or even here on the forums, I allowed myself to create this topic.

    The issue I am facing is when I try to add a new image in the widgets, I get the following error: There was an error. Invalid parameter(s): requests

    When I looked at the Devtools in the Console, I can see a failed POST with the following response:

    {“code”:”rest_invalid_param”,”message”:”Invalid parameter(s): requests”,”data”:{“status”:400,”params”:{“requests”:”requests must contain at most 25 items.”},”details”:{“requests”:{“code”:”rest_too_many_items”,”message”:”requests must contain at most 25 items.”,”data”:null}}}}

    It looks like the widget contains too many items? Is there any way to increase that limit or am I looking at the wrong place?

    The website is running with:

    WordPress 5.8
    PHP 7.4
    MySQL 5.7

    Thank you so much in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anton Vlasenko

    (@antonvlasenko)

    Hello,
    Thanks for contacting the support forum.

    It would be helpful if you could list the steps to reproduce this bug.
    Which widget did you try to add images to exactly, which button did you press, and so on?
    I’ve searched for similar issues here but couldn’t find anything.

    As for the error, yes, this kind of error can happen 100 %.
    Requests with more than 25 items must be split into multiple smaller requests not to exceed that limit.
    Another request: could you please confirm that the Gutenberg plugin is not activated on your WordPress installation?

    Thread Starter michaelsunier

    (@michaelsunier)

    Hello Anton,

    Thank you so much for your reply.

    Sorry I should have mentionned more details on this issue.

    When I go to Appearance –> Widgets, I then click on one of the items and try to add an image block. I am adding images to a gallery used by slick slider. I then add an image from the media library and click then on Update. This is when I get the error.

    Ok I see. How can I split the requests exactly?

    No the Gutenberg plugin is not activated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘There was an error. Invalid parameter(s): requests rest_too_many_items’ is closed to new replies.