Knowledge base/Help /Inside the control panel

Error 500 or Error 2038 when trying to upload files to the Media Library

Bruce Miller
posted this on March 15, 2011 08:43

There are several possible solutions for this problem:

  1. Please make sure that permissions for the following files and folders are set to 777 (drwxrwxrwx for the folders and -rwxrwxrwx for the files):

    admin/data/users.xml
    admin/logs/
    admin/xml/
    admin/xml/all files
    admin/config.xml
    fonts/
    images/
    media/
    music/
    xml/
    xml/all files
    config.xml
    admin/_tmp/
    admin/actions/backup/_backups/


    Also, following files should have permissions set to 755 (-rwxr-xr-x):
    /admin/actions/upload_media.php
    /admin/actions/upload_fonts.php
    /admin/gateway.php

    The rest of the files should have the permissions set to 644. The rest of the folders should have the permissions set to 755.

  2. Please create (using the NotePad)  .htaccess file in the admin/actions/ folder with the following lines (or add these lines to the existing .htaccess file):
    <IfModule mod_security.c>
    <Files *.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

  3. Please make sure, that /admin/ folder is uploaded in binary mode.

  4. Please make sure that the cookies are enabled in your browser.

  5. Sometimes web-server, or the PHP's mod_security are not allowing the “Shockwave Flash” browser, which is used for files upload. In that case, you should contact your hosting provider and ask them to allow the POST method for “User-Agent: Shockwave Flash”
 

Comments

User photo
Christian

If you're on a Mac using Firefox (latest/10.2), try switching to Safari just for editing/uploading media files.

It realy does it for me. I get "Error #2038" when using Firefox for uploading, but when doing the SAME in

Safari (same media files!) it just works. It's kinda strange, i run Firefox "normally" without any Add-Ons.

However, Safari does it perfect (also pop-up blocker is active) It may be just a "do and forget" thing :->

(Februar 2012/MacOSX 10.6.8/MotoCMS 1.7/Firefox 10.2/Safari 5.1)

 

I want to point out that it's just the media uploading which won't work on Firefox, anything else works

in the MotoCMS control panel. HEY! ..and browsing the final MotoCMS website works for shure on any

browser (Safari/Firefox/Chrome/Opera). It is JUST the media uploading when using the control panel.

 

OH! ..them browsers. Let's check some waves.

 

Regards, CBoerner

February 22, 2012 11:18
User photo
Mathew Brown
CMS Guide

Hello,

Please, try to clear the cache in your browser Firefox and refresh the page. If it works with Safari so it should work with other browsers as well.

Best regards,

Mathew Brown

February 24, 2012 00:51
User photo
Christian

Hi Matthew Brown,

i did flush the cache, deactivated all add-ons and also did allow pop-ups.

It's not working with Firefox 10.2 on the Mac, i have tested it again. It does

upload with Firefox on PC, i checked this too. I've detailed screenshots of

the process (Firefox/settings/Moto-Gui+Safari/settings/Moto-Gui). If you

want, i can send them to you right away.

 

Regards, CBoerner

February 24, 2012 06:09