Ideas

This board is only for raising and voting on feature requests (Ideas / Suggestions).
Please raise any Bugs via "Get Help" button on your calendar admin dashboard.

Error message: Warning: http_build_query(): Parameter 1

Ben: It seems that the reason for this error is the latest WordPress version 4.6. I found this solution: https://wordpress.org/support/topic/read-this-first-wordpress-46-master-list?replies=5#post-8770164, but it seems that is not working.

User: I upgraded everything yesterday and now have this error message at the top of my event pages -- http://charmedinlittleton.com/event/soap-making-class/

Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /home/creativ3/public_html/charmedinlittleton.com/wp-includes/Requests/Transport/cURL.php on line 507

  • Benjamin
  • Aug 29 2016
  • Shipped to WP & Hosted
  • Dec 5, 2016

    Admin Response

    Hey everyone!

    After a lot of research, the http_build_query has finally been fixed in the version 2.5.14. We've found that on some very specific installations, the PHP object conversion wouldn't work as expected before calling our API, causing the reported error.

    Aristotel

  • Attach files
  • Admin
    Robert Whiteside commented
    December 05, 2016 19:57

    Hey everyone! - After a lot of research, the http_build_query has finally been fixed in the version 2.5.14. We've found that on some very specific installations, the PHP object conversion wouldn't work as expected before calling our API, causing the reported error.

  • Cindy Lutz commented
    April 04, 2017 17:40

    Hi - I hope I'm posting this in the correct place, but I am getting the same warning message.

    In WordPress 4.7.3 and All-in-One Event Calendar by Time.ly version 2.5.18.

    It reads: Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /home/.../public_html/wp-includes/Requests/Transport/cURL.php on line 508

  • PCC WEB commented
    April 24, 2017 19:48

    Also getting the same error.

     

    Running WP v.4.7.4 and Time.ly 2.5.19

     

    Error message: Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /home/.../public_html/wp-includes/Requests/Transport/cURL.php on line 508

     

    Any solutions for this?

  • Walt Wooden commented
    April 26, 2017 17:23

    I am getting the same warning in WordPress 4.7.4 Time.ly version 2.5.19

    Incorrect value given in /wp-includes/Requests/Transport/cURL.php on line 508

  • justme justme commented
    April 29, 2017 13:50

    same problem here. WP version 4.7.4 and AIOEK Version 2.5.19. PHP7. Is there finally a fix out there?

  • Paul Hartman commented
    May 02, 2017 01:02

    Same cURL error here: PHP 5.6; WP 4.7.4; AIOEC 2.5.19

  • Sarah Austin commented
    May 21, 2017 23:17

     Running - WP: 4.7.5 PHP: 5.6.3 Hosting: ixWebhosting

    Getting this error:

    Error message: Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /home/.../public_html/wp-includes/Requests/Transport/cURL.php on line 508

  • Jochen Ziegler commented
    June 09, 2017 06:46

    Same problem since several weeks and diffrent WP Versions

    current: Wordpress 4.8 Timely 2.5.19

  • Jonathan Eiseman commented
    June 26, 2017 04:15

    I found the problem is in the get_feed function in the following file:

    /wp-content/plugins/all-in-one-event-calendar/app/model/api/api-feeds.php

    In the following call:

    $response = $this->request_api( 'GET', AI1EC_API_URL . 'calendars/' . $calendar_id . '/feeds/get/' . $feed_id,
    json_encode( array( "max" => "9999" ))
    );

    Changing it to the following fixes the problem:

    $response = $this->request_api( 'GET', AI1EC_API_URL . 'calendars/' . $calendar_id . '/feeds/get/' . $feed_id);
  • Ria Von commented
    July 11, 2017 14:36

    Thank you Jonathan Eiseman your solution worked!!!

  • tissi larson commented
    August 07, 2017 13:51

     After inserting details about the location, the error will disappear.

  • Roger Cornwell commented
    August 16, 2017 11:04

    I am still getting this error, on AIOEC Version 2.5.22, Wordpress 4.81 and php 5.4.27

    When I added a print_r($data) to the cURL.php file right aftyer the line giving the error message, I see {"title":"Site Name","url"=>"http:\/\/domain.co.uk"}

    (Site Name and domain are substituted for the actual values; that is not a capital W before domain but  (spaced out) \ / \ / )

  • Susan K commented
    October 10, 2017 19:09

    Thanks Jonathan Eiseman, your solution worked!

    Using AIOEC version: 2.5.26, WP 4.8.2, PHP 5.4.45

    I hope taking out the json code doesn't hurt anything, or will it??

  • Brandon Connell commented
    28 Jan 22:07

    The error is back. PHP 7.1, newest version of the plugin and wordpress.

  • Brandon Connell commented
    28 Jan 22:33

    It wasn't playing nice with the Zoom API plugin.