mjaepel / ZbxWallboard

Wallboard with active triggers/problems of Zabbix Monitoring
19 stars 10 forks source link

CURLOPT_FOLLOWLOCATION vs open_basedir #3

Closed mjaepel closed 5 years ago

mjaepel commented 5 years ago

Message: Warning: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /var/www/zbxwallboard/classes/RemoteData.php on line 137

Cause: classes/RemoteData.php - Line 124 CURLOPT_FOLLOWLOCATION => true

Solution: Move this flag to config file :)

mjaepel commented 5 years ago

Maybe easier to set CURLOPT_FOLLOWLOCATION = false. It follows only redirects. In this case we could set the redirect target directly as URL in config.

mjaepel commented 5 years ago

Fixed in 11137f1