WordPress.org

Forums

CafePress Widget
[resolved] Cafepress widget throwing warning (1 post)

  1. rebthegreat
    Member
    Posted 1 year ago #

    Just in case other people are were getting this same warning
    warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION

    Around line 354 in cafepress-widget.php replace curl_setopt($ch, CURLOPT_URL, $url); with:

    if(ini_get('safe_mode') || ini_get("open_basedir")) {
    curl_setopt($ch, CURLOPT_URL, $url);}

    And around line 362 in cafepress-widget.php replace curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); with:

    if(!ini_get('safe_mode') && !ini_get("open_basedir")) {
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);}

    Reference: http://www.francesco-castaldo.com/2009/10/warning-curl_setopt-function-curl-setopt-curlopt_followlocation-cannot-be-activated-when-in-safe_mode-or-an-open_basedir-is-set/

    http://wordpress.org/extend/plugins/cafepress-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic