PDA

View Full Version : photoplog error- Bad Type - File is of the Wrong MIME Type


weedheaven
02-14-2007, 05:55 PM
Since 2 days ago i installed photoplog lite v.2.0.6 on my vbulletin 3.6.4 board.
Now i get the problem of:

Error
Sorry, Admin: Bad Type - File is of the Wrong MIME Type

i already readed the other mesages but didnt saw any solution. Maybe anyone knows something i hope.

php safe mode = off <-- for sure! already needed my host for that to enable it so thats obvious disabled. I asked if GD was installed YES

see the below( asked my host that i only have acces to httpdocs folder and plesk panel)
--test output

GD Version Yes

FreeType Support Yes

FreeType Linkage Yes

T1Lib Support Yes

GIF Read Support Yes

GIF Create Support Yes

JPG Support Yes

PNG Support Yes

WBMP Support Yes

XBM Support No

JIS-mapped Japanese Font Support No


PHP 4.3.10
Web Server Apache v2.0.53
Server Type Linux
MySQL Version 4.1.10a

Already thanks for the help ;)

I hope that there is some solution what i can try. Ore what i can ask my host to do.

Morgan
02-15-2007, 03:09 PM
What browser are you using? If IE7, try this (http://www.photoplog.com/forum/showthread.php?t=954) thread. Also check the Maximum File Size set via the Usergroup Manager.

weedheaven
02-15-2007, 03:34 PM
Content visible to registered users only.

Yes i knew about that thread, but i get the same message in firefox ;)
And one of my moderators still uses ie6 and same problem comes up.
The folders are chmodded, and the folders within.
even when setting maximum size to unlimited the same message ;)

Morgan
02-15-2007, 04:48 PM
The post here (http://www.photoplog.com/forum/showpost.php?p=10259&postcount=3) lists all the reasons that you'd get that message, save for the IE7 issue. If it's not safe mode, not GD, not Maximum File Size, and the file is a GIF, JPG, or PNG image, then check whether your /tmp directory, the one that takes uploads, is writable and not full.

weedheaven
02-16-2007, 09:04 AM
My /tmp directory i don't have acces to, wich is outside the httpdocs folder where i do have acces in. is there an option that i can do it a other way. Ore can ask my host something to do. I already am in contact with them about this. So if there is a other way. I would like to know it. thanks for ur time

Morgan
02-16-2007, 06:25 PM
If you have hell access, cd /tmp and then du -ks to see file space usage. Otherwise have your host check it out.

weedheaven
02-17-2007, 04:28 PM
NO i dont have hell acces.
I got ftp/plesk acces
But no hell/perl acces

I am in contact with my host about this problem. well i do have a other quistion i did ask my host if gd was installed.
But is there a difference between GD and GD2?
I do got what you see in my post what is installed but it only says : GD version installed <-- but what version. if there is difference maybe that could be the problem aswell.

But i think the problem is the /tmp folder. I contacted my host if they can chmod it. Have to wait for an answer.

Morgan
02-17-2007, 07:42 PM
Look for GD Version on your PHP info page. If you don't see the version, run the following:
Content visible to registered users only.
What you need is 2.0 or higher.

weedheaven
02-19-2007, 10:19 AM
i have used info.php to retrieve it:

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

So that is installed, so then it could be the /tmp folder? Isnt there a way to set a temporary directory someway?

Morgan
02-20-2007, 03:30 AM
In php.ini upload_tmp_dir (http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir) can be set.

weedheaven
02-20-2007, 04:21 PM
Content visible to registered users only.

after some long mailing with my host. Today he made some changes to the hostings /tmp dir ;)

And now image uploading is working fine without errors. So it was indeed my hosts /tmp folder not having write acces. Thanks for ur time and help !!! :D