1
jorge
Error loading mimetypes definition
  • 2007/4/12 9:10

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello,

I've problems with upload avatars system.

All my site runs very well instead of this point.

I have applied the patch 2.0.9.2 to 2.0.9.3 and the problem was corrected for a few days. Now I have the same problem again, and I don't know what to do. I'm really confused, because It was running ok at the beginings.

The system response is:

Errors Returned While Uploading
Error loading mimetypes definition

Thans in advance,
Jorge P

2
tom
Re: Error loading mimetypes definition
  • 2007/4/12 9:14

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Just wondering why on earth you don't upgrade to to 2.0.16 as this is more secure.

Perhaps it might also fix your problem?

https://xoops.org/modules/core/
Kind Regards.
Tom

http://bassmanthemes.com
http://www.xoopslance.com

3
Reintjan
Re: Error loading mimetypes definition
  • 2007/4/12 9:23

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Upgrading to 2.0.16 is not the solution to this problem as it's also a problem in this version. The systems imagemanager does not work properly uploading images (gif files...) Also uploading files in news module doesn't work except for Word documents. I already overlooked the defined mimetypes, it seems that types are defined well...

Anyone with a solution?
Be smart, stay smart. Stay one step ahead...

4
tom
Re: Error loading mimetypes definition
  • 2007/4/12 9:38

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Quote:
Upgrading to 2.0.16 is not the solution to this problem


Ok, maybe not but still worth plugging those security holes, and upgrading to 2.0.16 (latest Version), to avoid possibly being hacked.

Look in edituser.php and find some code like:

include_once XOOPS_ROOT_PATH.'/class/uploader.php';
        
$uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH, array('image/gif''image/jpeg''image/pjpeg''image/x-png''image/png'), $xoopsConfigUser['avatar_maxsize'], $xoopsConfigUser['avatar_width'], $xoopsConfigUser['avatar_height']);


Add the mime type in there.
Kind Regards.
Tom

http://bassmanthemes.com
http://www.xoopslance.com

5
tom
Re: Error loading mimetypes definition
  • 2007/4/12 9:39

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


ohh for gif, I believe the mime type is:

image/gif

not sure why it's not already in there, perhaps a security risk, I don't know.
Kind Regards.
Tom

http://bassmanthemes.com
http://www.xoopslance.com

6
jorge
Re: Error loading mimetypes definition
  • 2007/4/12 9:40

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello Tom,

thanks for you answer.

I have a replication of my site and I have already made the upgrade in it to 2.0.16, but the problem persists.

I realice that this is not a bug o XOOPS, maybe some file is corrupted or I have done something that affects that system.

If someone have a clue about this problem, It will be very helpful for me.

Thanks,
Jorge P

Login

Who's Online

223 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 223


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits