XAMPP issues (Windows)
-
For people suffering from an issue when saving files, ie
Unable to save image, check your server permissions.
The error is the default one, and misleading for me under Windows. The issue for me was not the ability to write to the plugin’s tmp folder (tho I’m really not sure why a location inside the plugin’s folder was chosen- surely a folder inside
/wp-content/uploads/
would be a better bet?).The problem was that CURL was unable to create a secure (https) connection to unsplash to retrieve the image, as, by default, the relevant certificates are not installed. Result – the
tmp
directory was full of zero byte attempted downloads, that CURL could not complete.The correct solution is to read up on configuring CURL for secure connections. The hack way is to remove the host & peer verifications for the curl call, ie line 245 of
admin.php
:curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
Nothing to be proud of, but works.
- The topic ‘XAMPP issues (Windows)’ is closed to new replies.