-
Notifications
You must be signed in to change notification settings - Fork 124
EpiOAuth.php fails on PHP 5.5 #200
Comments
A quick fix (until this is depecrated) is to change function httpPost to read:
I did try using the following code to post media with images:
However, that gives other errors within buildHttpQueryRaw() and encode_rfc3986() as the parameters now contain an object. |
This is no longer valid in PHP 7 - "curl_setopt(): Disabling safe uploads is no longer supported" So the whole routine will need to be re-written for PHP v7 - I understand that we need to use something along the lines of new \CURLFile($localFile) |
Upon upgrading from PHP 5.4 straight to 5.6, we started getting this error when using the "@" upload syntax:
The fix above didn't help; we must be using the library a bit differently, or are perhaps using an outdate version. I was able to fix the problem by simply adding the following line right before the return statement in
Hope this helps someone else! |
On PHP v5.5, you get the error message:
Deprecated: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead in .../EpiOAuth.php on line 270.
There needs to be a check for PHP v5.5 along the lines of:
However, what is the correct code to use?
The text was updated successfully, but these errors were encountered: