I believe curl_setopt() errors are created because your server host security settings. The part of the script deals with cache images if you can’t change your server settings you could try turning this feature off (not ideal I know but the best I can do for now)