That error just started happening to me, hasn't happened until today, and it's been working fine since 11 Jan 10 when I installed it. However, the remote URL upload seems to be working OK, it's only the normal "upload from your PC" that appears to be effected.
We're on 5.0.2 at Servage, no ImageMagick, only had GD since it was installed.
BTW Justacrack, that 'workaround' of yours doesn't work... maybe you have some other edits in your file already? Line 73 of source/includes/imagemagick.php is already 'return true',
66 // Well, well, well. Looks like the image doesnt exist.
67
69 trigger_error("mmhclass->image->is_image(): image does not exist. ({$filename})", E_USER_ERROR);
69
70 return false;
71 }
72
73 return true;
74 }
that's directly from the current distribution files. I tried flipping line 70 to 'return true' and I still get the error. Undoubtedly something changed at our host, be darned if I know what has killed MMH. Here's the GD info from phpinfo()
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.5
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
(again, zero ImageMagick at Servage, but I don't need the souped-up thumbnails, watermarking or anything else)
edit: that error message is generated by /upload.php on line 115/160:
} elseif ($mmhclass->image->is_image($mmhclass->input->file_vars['userfile']['tmp_name'][$i]) == false) {
$uploadinfo[]['error'] = array(sprintf($mmhclass->lang['006'], $origname), "message");
I tried bypassing that by remarking those two lines and it didn't generate a thumbnail, and the 'file' it saved in the /images directory was empty.
I haven't touched anything at our host in weeks, although there's nothing to say the host hasn't upgraded something.
Here are the errors we got:
Quote
====================================================================
Time Encountered: February 28, 2010, 12:07:33 AM
Error Type: User Error (Error #256)
Error String: mmhclass->image->is_image(): image does not exist. (/{ourhost}/images/03013863864977889040_thumb.jpg)
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 68
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:07:33 AM
Error Type: Warning (Error #2)
Error String: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Unable to access /{ourhost}/images/03013863864977889040_thumb.jpg
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 113
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:07:33 AM
Error Type: Warning (Error #2)
Error String: getimagesize(/{ourhost}/images/03013863864977889040_thumb.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 113
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:07:33 AM
Error Type: Warning (Error #2)
Error String: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /{ourhost}/images/03013863864977889040_thumb.jpg
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 122
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:07:33 AM
Error Type: Warning (Error #2)
Error String: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for /{ourhost}/images/03013863864977889040_thumb.jpg
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 123
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:25:19 AM
Error Type: User Error (Error #256)
Error String: mmhclass->image->is_image(): image does not exist. (/{ourhost}/images/72195094552694304071_thumb.jpg)
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 68
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:25:19 AM
Error Type: Warning (Error #2)
Error String: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Unable to access /{ourhost}/images/72195094552694304071_thumb.jpg
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 113
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:25:19 AM
Error Type: Warning (Error #2)
Error String: getimagesize(/{ourhost}/images/72195094552694304071_thumb.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 113
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:25:19 AM
Error Type: Warning (Error #2)
Error String: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /{ourhost}/images/72195094552694304071_thumb.jpg
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 122
====================================================================
====================================================================
Time Encountered: February 28, 2010, 12:25:19 AM
Error Type: Warning (Error #2)
Error String: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for /{ourhost}/images/72195094552694304071_thumb.jpg
Error File: /{ourhost}/source/includes/imagemagick.php
Error Line: 123
====================================================================
First I tried to upload a JPG, then I tried to upload a GIF, both good files.
This post has been edited by RFiend: 28 February 2010 - 04:24 PM