PHP warning

curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set

/srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(69)

57             CURLOPT_RETURNTRANSFER => true,     // return web page
58             CURLOPT_HEADER         => false,    // don't return headers
59             CURLOPT_FOLLOWLOCATION => true,     // follow redirects
60             CURLOPT_ENCODING       => "",       // handle all encodings
61 //            CURLOPT_USERAGENT      => "tieste", // who am i
62             CURLOPT_AUTOREFERER    => true,     // set referer on redirect
63             CURLOPT_CONNECTTIMEOUT => 5,      // timeout on connect
64             CURLOPT_TIMEOUT        => 10,      // timeout on response
65             CURLOPT_MAXREDIRS      => 10,       // stop after 10 redirects
66         ];
67 
68         $ch      = curl_init($url);
69         curl_setopt_array($ch, $options);
70         $content = curl_exec($ch);
71         $err     = curl_errno($ch);
72         $errmsg  = curl_error($ch);
73         $header  = curl_getinfo($ch);
74         curl_close($ch);
75 
76         return $content;
77     }
78 
79     /**
80      * Load applications info
81      *

Stack Trace

#0
+
 /srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(69): curl_setopt_array(resource, array(19913 => 1, 42 => 0, 52 => 1, 10102 => "", ...))
64             CURLOPT_TIMEOUT        => 10,      // timeout on response
65             CURLOPT_MAXREDIRS      => 10,       // stop after 10 redirects
66         ];
67 
68         $ch      = curl_init($url);
69         curl_setopt_array($ch, $options);
70         $content = curl_exec($ch);
71         $err     = curl_errno($ch);
72         $errmsg  = curl_error($ch);
73         $header  = curl_getinfo($ch);
74         curl_close($ch);
#1
+
 /srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(109): App\Service\Lookup->_getContent("http://proxy.itunes.cron/lookup?id=548684238")
104                     $issetResults[] = $ids[$j];
105                     continue;
106                 }
107                 $itIds[] = $ids[$j];
108             }
109             $content = $this->_getContent(self::$_itunesSearchUrl . implode(",", $itIds));
110             $results = json_decode($content, true)['results'];
111             if (!$results) {
112                 return false;
113             }
114             foreach ($results as $result) {
#2
+
 /srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(174): App\Service\Lookup->getAppInfo(array("548684238"))
169 
170         foreach (array_chunk($ids, self::MAX_LOOKUP_APPS) as $idsChunk) {
171             $i = 0;
172             do {
173                 sleep($i);
174                 $apps = $this->getAppInfo($idsChunk);
175                 ++$i;
176             } while ($apps === false && $i < 3);
177 
178             if (empty($apps)) {
179                 $failedSaves += $idsChunk;
2024-03-19 01:57:02 nginx/1.20.1 Yii Framework/1.1.16