A
Anonymous
Guest
New to PHP and wordpress, but trying to create a contact form where I can upload an image then use IMagick to resize before its sent to recipient.
Problems so far were:
1. WP_Image_Editor_Imagick class wasn't found, so I added a
; to the calling function
2. WP_Image_Editor class from which Imagick class was extended also wasn't found, so added a require once just before the imagick class to bring that in too.
3. Now I have "Call to undefined method WP_Image_Editor_Imagick::resizeImage()" where resizeImage method can't be seen anywhere in the imagick class - so I switch to "resize" which is there...
4. then I find that "writeImage" is also not there, so I'm go with "save" instead which is there, but getting internal errors like this:
do I have a REALLY old Imagick install on my hosting company's server?
thanks
Guy
Problems so far were:
1. WP_Image_Editor_Imagick class wasn't found, so I added a
Code:
require_once('wp-includes/class-wp-image-editor-imagick.php')
2. WP_Image_Editor class from which Imagick class was extended also wasn't found, so added a require once just before the imagick class to bring that in too.
3. Now I have "Call to undefined method WP_Image_Editor_Imagick::resizeImage()" where resizeImage method can't be seen anywhere in the imagick class - so I switch to "resize" which is there...
4. then I find that "writeImage" is also not there, so I'm go with "save" instead which is there, but getting internal errors like this:
PHP Fatal error: Uncaught Error: Call to a member function getImageFormat() on null in /home/gariochc/public_html/wp-includes/class-wp-image-editor-imagick.php:626
do I have a REALLY old Imagick install on my hosting company's server?
thanks
Guy