Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I did experience the same problem. And while I do use Gravity Forms, too, it doesn’t seem to be connected to a certain plugin.

    Following this advice:
    https://stackoverflow.com/questions/14344289/fancybox-doesnt-work-with-jquery-v1-9-0-f-browser-is-undefined-cannot-read

    … I de-registered jQuery > 1.9 and use ver. 1.8.3 now.

    This is an ok solution for the time being – and works.

    You’re welcome. ??

    Hello there,

    I believe to have found (one) solution.

    I ran into that problem when uploading an image file with two extensions, say “xyz.jpg.gif”. In that case wordpress will double-check allowed mime types.

    The function that is supposed to do that & that is called (in wp-includes/functions.php) seems to be removed from one of the newer wordpress versions (2.8.5 or 2.8.6) eventhough it is called in this situation. I think the latter version.

    So I copy-&-pasted the appropriate function at the end of functions.php:

    /**
    * Retrieve list of allowed mime types and file extensions.
    *
    * @since 2.8.6
    *
    * @return array Array of mime types keyed by the file extension regex corresponding to those types.
    */
    function get_allowed_mime_types() {
    static $mimes = false;

    if ( !$mimes ) {
    // Accepted MIME types are set here as PCRE unless provided.
    $mimes = apply_filters( ‘upload_mimes’, array(
    ‘jpg|jpeg|jpe’ => ‘image/jpeg’,
    ‘gif’ => ‘image/gif’,
    ‘png’ => ‘image/png’,
    ‘bmp’ => ‘image/bmp’,
    ‘tif|tiff’ => ‘image/tiff’,
    ‘ico’ => ‘image/x-icon’,
    ‘asf|asx|wax|wmv|wmx’ => ‘video/asf’,
    ‘avi’ => ‘video/avi’,
    ‘divx’ => ‘video/divx’,
    ‘mov|qt’ => ‘video/quicktime’,
    ‘mpeg|mpg|mpe’ => ‘video/mpeg’,
    ‘txt|c|cc|h’ => ‘text/plain’,
    ‘rtx’ => ‘text/richtext’,
    ‘css’ => ‘text/css’,
    ‘htm|html’ => ‘text/html’,
    ‘mp3|m4a’ => ‘audio/mpeg’,
    ‘mp4|m4v’ => ‘video/mp4’,
    ‘ra|ram’ => ‘audio/x-realaudio’,
    ‘wav’ => ‘audio/wav’,
    ‘ogg’ => ‘audio/ogg’,
    ‘mid|midi’ => ‘audio/midi’,
    ‘wma’ => ‘audio/wma’,
    ‘rtf’ => ‘application/rtf’,
    ‘js’ => ‘application/javascript’,
    ‘pdf’ => ‘application/pdf’,
    ‘doc|docx’ => ‘application/msword’,
    ‘pot|pps|ppt|pptx’ => ‘application/vnd.ms-powerpoint’,
    ‘wri’ => ‘application/vnd.ms-write’,
    ‘xla|xls|xlsx|xlt|xlw’ => ‘application/vnd.ms-excel’,
    ‘mdb’ => ‘application/vnd.ms-access’,
    ‘mpp’ => ‘application/vnd.ms-project’,
    ‘swf’ => ‘application/x-shockwave-flash’,
    ‘class’ => ‘application/java’,
    ‘tar’ => ‘application/x-tar’,
    ‘zip’ => ‘application/zip’,
    ‘gz|gzip’ => ‘application/x-gzip’,
    ‘exe’ => ‘application/x-msdownload’,
    // openoffice formats
    ‘odt’ => ‘application/vnd.oasis.opendocument.text’,
    ‘odp’ => ‘application/vnd.oasis.opendocument.presentation’,
    ‘ods’ => ‘application/vnd.oasis.opendocument.spreadsheet’,
    ‘odg’ => ‘application/vnd.oasis.opendocument.graphics’,
    ‘odc’ => ‘application/vnd.oasis.opendocument.chart’,
    ‘odb’ => ‘application/vnd.oasis.opendocument.database’,
    ‘odf’ => ‘application/vnd.oasis.opendocument.formula’,
    ) );
    }

    return $mimes;
    }

    I think there is a solution (I hope to same problem you describe):

    So in my case: I have WIN-XP running inside VirtualBox. Trying to access a WordPress installation outside of the VirtualBox (Ubuntu-Host) by typing 10.0.2.2 inside the WinXP-Browser.

    This of course works fine – accept for the problem you describe: no theme seems to work. In fact, there seem to be many links with “localhost” hard coded in various places within the wordpress installations and add ons.

    Solution:
    1.) I installed xampp in WinXP.

    2.) Added a line to my Win-Hostfile (C:\WINDOWS\system32\drivers\etc\hosts) so that it looks like this:

    127.0.0.1 localhost
    10.0.2.2 outer

    3.) Simply added a .htaccess file to my … /xampp/htdocs/ directory which contains only this line:
    Redirect / https://outer/

    Now when I enter “localhost” into my WinXP-Browser or whenever the browser comes accross a hard coded localhost-link it correctly maps (rather redirects) all “localhost” requests to “outer” which is resolved as 10.0.2.2 thru the host file.

    Of course I would have liked to simply map localhost to 10.0.2.2 in the host file (which doesn’t work). But hey, the xampp-solution works fine for me.

Viewing 4 replies - 1 through 4 (of 4 total)