Mihalism Technologies: Not uploading!! - Mihalism Technologies

Jump to content

Welcome to the Mihalism Multi Host technical support forum. Mihalism Technologies does not have the funding or staffing required to provide direct support for everyone so we rely on our knowledgeable community to assist users. Therefore, answers to questions are not guaranteed. We do have the time to directly help a few users a day. If interested, you can find information regarding premium support here.

Need help with templates or creating custom designs? Read the Mihalism Template Engine Guide or ask for help in this forum.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Not uploading!! rev.160 Rate Topic: -----

#1 User is offline   TOXiC-DNA-RADiAL Icon

  • Member
  • PipPip
  • Group: Banned
  • Posts: 23
  • Joined: 19-April 09

Posted 21 August 2009 - 02:04 AM

Am download rev.160 and after upload image it said

<h1 style="color: rgb(255, 0, 0);">Warning!</h1>
The following error occurred during uploading:

  • The file 1ipb.png is not a true image and therefore could not be uploaded.
  • The file 2ipb.png is not a true image and therefore could not be uploaded.

0

#2 User is offline   Michael Icon

  • Administrator
  • PipPipPip
  • Group: Administrators
  • Posts: 526
  • Joined: 06-February 09

Posted 21 August 2009 - 02:25 AM

Could be an isolated incident. Try reinstalling from fresh copy. I have had no reports from anyone else having uploader errors.
0

#3 User is offline   beefy Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 24-August 09

Posted 24 August 2009 - 07:21 PM

Hi, I'm also getting this problem... reinstalled twice... I can upload from URL, but not normal upload

Same error, not a true image

Thanks in advance for any help
0

#4 User is offline   Michael Icon

  • Administrator
  • PipPipPip
  • Group: Administrators
  • Posts: 526
  • Joined: 06-February 09

Posted 24 August 2009 - 07:23 PM

GD or imagick
0

#5 User is offline   Josh D. Icon

  • Staff
  • PipPipPip
  • Group: Administrators
  • Posts: 474
  • Joined: 07-February 09

Posted 24 August 2009 - 10:13 PM

Topic Description:

Quote

rev.160


This is for an old release.
Do not PM me for support (message will be ignored), please use the support forum and one of the staff members will try to assist you.

Support Topic Guidelines
0

#6 User is offline   TOXiC-DNA-RADiAL Icon

  • Member
  • PipPip
  • Group: Banned
  • Posts: 23
  • Joined: 19-April 09

Posted 25 August 2009 - 12:57 AM

lol installed on localhost 5.0.0 FINAL ... Also GD the same error !
0

#7 User is offline   Josh D. Icon

  • Staff
  • PipPipPip
  • Group: Administrators
  • Posts: 474
  • Joined: 07-February 09

Posted 25 August 2009 - 01:23 AM

Seems to have something to do with this function:

		function is_image($filename)
		{
			if ($this->mmhclass->funcs->is_file($filename) == true) {
				if ($this->manipulator == "imagick") {
					try {
						if ($imageh = new Imagick($filename)) {
							return true;	
						}
					} catch (Exception $e) {
						return false;
					}
				} else {
					return getimagesize($filename);
				}
			} else {
				return false;
			}
		}

Do not PM me for support (message will be ignored), please use the support forum and one of the staff members will try to assist you.

Support Topic Guidelines
0

#8 User is offline   beefy Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 24-August 09

Posted 25 August 2009 - 03:13 AM

I did have a nightmare getting php to recognise the Imagick extension, but the scripts have found the library, so I assumed it was all sorted. I'll have another crack at it, also look into GD in case. Could it be my Imagick version?

Josh D.

In which script is the "is_image" function?
Is that function used when uploading via URL?

Again, thanks in advance, and sorry for all the questions (I can be a pain)
0

#9 User is offline   TOXiC-DNA-RADiAL Icon

  • Member
  • PipPip
  • Group: Banned
  • Posts: 23
  • Joined: 19-April 09

Posted 25 August 2009 - 07:24 AM

I havent imagck
0

#10 User is offline   sonicvn Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 29-July 09

Posted 25 August 2009 - 07:42 PM

The file 17462771.jpg is not a true image and therefore could not be uploaded.
0

#11 User is offline   Michael Icon

  • Administrator
  • PipPipPip
  • Group: Administrators
  • Posts: 526
  • Joined: 06-February 09

Posted 25 August 2009 - 09:14 PM

I'm developing blind since y'all have not uploaded the images to the forum to test on my end or shown error logs so here is a potential fix:

http://code.google.c...e/detail?r=191#
0

#12 User is offline   Masya Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 02-August 09

Posted 02 September 2009 - 01:14 AM

how to apply the fix? Is it possible to attach corrected files here

After copying I'vgot the following

Quote

Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
* Please contact the website owners to inform them of this problem.


I have this problem - The file 111.jpg is not a true image and therefore could not be uploaded.

This post has been edited by Masya: 02 September 2009 - 01:30 AM

0

#13 User is offline   Michael Icon

  • Administrator
  • PipPipPip
  • Group: Administrators
  • Posts: 526
  • Joined: 06-February 09

Posted 02 September 2009 - 01:21 AM

If you're running 5.0.2 it's already in it.
0

#14 User is offline   Masya Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 02-August 09

Posted 02 September 2009 - 01:31 AM

View PostMichael, on 02 September 2009 - 07:21 AM, said:

If you're running 5.0.2 it's already in it.

I have edited my post please have a look. I'm running 5.0.2 and the error is The file 1844.jpg is not a true image and therefore could not be uploaded.

This post has been edited by Masya: 02 September 2009 - 01:45 AM

0

#15 User is offline   Josh D. Icon

  • Staff
  • PipPipPip
  • Group: Administrators
  • Posts: 474
  • Joined: 07-February 09

Posted 02 September 2009 - 02:16 AM

Try this and see if it works:

In Root Folder:
Rename upload.php to upload.bak

In ./source/includes/
Rename imagemagick.php to imagemagick.bak

Then upload the files in the attached zip file.

Hope it helps.

Attached File(s)


This post has been edited by Josh D.: 02 September 2009 - 02:16 AM

Do not PM me for support (message will be ignored), please use the support forum and one of the staff members will try to assist you.

Support Topic Guidelines
0

#16 User is offline   swart Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 09-September 09

Posted 09 September 2009 - 08:43 AM

View PostJosh D., on 02 September 2009 - 04:16 AM, said:

Try this and see if it works:

In Root Folder:
Rename upload.php to upload.bak

In ./source/includes/
Rename imagemagick.php to imagemagick.bak

Then upload the files in the attached zip file.

Hope it helps.

it's not help( the problem is n't solved
I use windows Web server Vertrigo with php_imagick mode on!

This post has been edited by swart: 09 September 2009 - 08:46 AM

0

#17 User is offline   justcrack Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 23-December 09

Posted 23 December 2009 - 09:40 AM

Finally it is sorted.
Replace line 73 "return false;" with "return true;" in imagemagick.php(version 5.02).
Force is_image function to return true to avoid this error.
This is really not a good idea but it works.
0

#18 User is offline   RFiend Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 12-January 10

Posted 27 February 2010 - 07:02 PM

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

0

#19 User is offline   RFiend Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 12-January 10

Posted 02 March 2010 - 07:03 AM

Update: I'm not sure if this is something our Servage host is messing with, or whether it's something else entirely.

Looking back in previous error logs, one person has uploaded several files since this started happening, first on Jan. 19th. I asked and he hasn't seen any errors during uploading, although I can see a couple of the same error messages after that date (starts with Error String: mmhclass->image->is_image(): image does not exist) in that same period from other people.

To make life a bit more interesting, it's working fine for me this morning. I can use the direct upload OR the URL upload. I can't find or fix it if it ain't broke. ;)

What I'd suspected (and hadn't verified) was the 'direct upload' was using the host upload_tmp_dir and 'URL uploads' wasn't, but that's purely a guess as I haven't back-tracked the URL upload part in the code yet. That upload_tmp_dir directory is outside of the area I have any control or visibility of on a shared host. Its current value in phpinfo() is /shared/upload_tmp and attempting to modify it in .htaccess or a separate php.ini file didn't change it, which is common on shared hosts.
0

#20 User is offline   Sublemon Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 24-June 10

Posted 24 June 2010 - 04:18 PM

I am posting to this thread because it is the first that comes up when you google "The file is not a true image and therefore could not be uploaded."

I was getting this error because my images exceeded the 2 MB default upload_max_filesize set in my php.ini. So for future users who get this error, this would be one thing to check.

This post has been edited by Sublemon: 26 June 2010 - 01:50 PM

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic