Occassionally, when loading a page with an image – using template Page Layout Normal Template – and setting the Page Heading Type to Standard – and selecting an image, the resulting page often throws and error when loading, as follows:
FOrtunately, refreshing/reloading the page, makes the error go away, but it is still a little concerning.
Any ideas for a fix?
Warning: imageantialias() expects parameter 1 to be resource, boolean given in /home/nzfireca/public_html/wp-includes/class-wp-image-editor-gd.php on line 284
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/nzfireca/public_html/wp-includes/class-wp-image-editor-gd.php on line 286
hi webkiwi, those warning only happen once after you uploading new file. you don’t need to worry about that. those parameter error is because when creating new image, we not set height of the image, we only set width.