csymeou
Forum Replies Created
-
Hello – I had the same problem, with upload picture functionality working on my localhost but not on my server. I have my wordpress installation on an AWS server I had set up myself.
Anyway, I noticed the error was reported from um-image-upload.php, and debugged line by line, and figured out that it was generated by the line $image = imagecreatefromjpeg($filepath); You need the php-gd library in order for the imagecreatefromjpeg function to be available. Once I installed that on my server (for a typical AWS instance, that’s yum install php70-gd) and restarted the server the problem was resolved.
Hope this helps some other people as well! If you don’t have direct access to your server, check with your host provider.
Hello – I had the same problem, with upload picture functionality working on my localhost but not on my server. I have my wordpress installation on an AWS server I had set up myself.
Anyway, I noticed the error was reported from um-image-upload.php, and debugged line by line, and figured out that it was generated by the line $image = imagecreatefromjpeg($filepath); You need the php-gd library in order for the imagecreatefromjpeg function to be available. Once I installed that on my server (for a typical AWS instance, that’s yum install php70-gd) and restarted the server the problem was resolved.
Hope this helps some other people as well! If you don’t have direct access to your server, check with your host provider.