WordPress.org

Ready to get started?Download WordPress

Forums

Facebook AWD All in one
[resolved] curl_setopt() error since upgrading WordPress (3 posts)

  1. makibird
    Member
    Posted 1 year ago #

    Hi guys

    Since upgrading wordpress to 3.5.1 I'm getting these errors on my new post page:

    Warning: curl_setopt(): Invalid curl configuration option in wp-content/plugins/facebook-awd/inc/classes/facebook/base_facebook.php on line 965 Warning: curl_setopt_array(): Array keys must be CURLOPT constants or equivalent integer values in wp-content/plugins/facebook-awd/inc/classes/facebook/base_facebook.php on line 941

    It's only showing them for the Facebook AWD plugin, no others. Any idea how I can fix it?

    Thanks!

    Vicky

    http://wordpress.org/extend/plugins/facebook-awd/

  2. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, can you turn the mode debug on and verify the curl_options is present in your the options list at the bottom.

    the default options are stored in the AWD_facebook_options class

    At the bottom of the check config method.

    $this->options['curl_options'] = array(
    			CURLOPT_CONNECTTIMEOUT => 10,
    			CURLOPT_RETURNTRANSFER => true,
    			CURLOPT_TIMEOUT        => $this->options['timeout'],
    			CURLOPT_USERAGENT      => 'facebook-php-3.2',
    			CURLOPT_SSL_VERIFYPEER => 0
    		);

    As you can see Array keys are already CURLOPT constants.
    What is your version of php ? something < 5.3 ?

  3. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    closed as no feedback

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.