WordPress.org

Ready to get started?Download WordPress

Forums

Bing Maps for WordPress
Also doesn't work with 3.1.1 (3 posts)

  1. c6ke
    Member
    Posted 3 years ago #

    Same here with 3.1.1:
    Fatal error: Call to undefined function curl_init() in /var/www/vhosts/##mypage.de##/httpdocs/wp/wp-content/plugins/bing-maps-for-wordpress/content.php on line 199

  2. George Mamadashvili
    Member
    Posted 3 years ago #

    c6ke There is no cURL script installed on your server.

    It's easy to fix using WordPress HTTP API, I just changed few line of code. Here is snippet:

    change this

    $curl = curl_init($url);
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
     $contents = curl_exec($curl);
     curl_close($curl);

    to this

    $response = wp_remote_get( $url );
    $contents = wp_remote_retrieve_body( $response );

    or just comment old code and paste new one.

    I hope they will fix this in future release

  3. c6ke
    Member
    Posted 3 years ago #

    That works like a charm! Though it's a workaround -> so i'll keep it "not resolved" But still: Great, thanks - that works for me!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic