Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: No longer able to upload PDFs #735567

    Updated to PHP 5.3 and now resolved. Thank you.

    in reply to: No longer able to upload PDFs #735078

    Do you have a specific recommendation which of these I should upgrade to?
    5.3.29, 5.4.45 or 5.5.33

    in reply to: No longer able to upload PDFs #735063

    5.2.17 version. I can ask my hosting to switch it to 5.3.29, 5.4.45 or 5.5.33 if you think that will help. Will await your advice.

    in reply to: No longer able to upload PDFs #735022

    Thank you for the link. I added this code to the functions.php file via the WP backend Editor:

    <?php

    /*
    * Enfold Child theme functions file
    */

    function my_myme_types($mime_types){
    $mime_types[‘pdf’] = ‘application/pdf’; //Adding pdf extension
    return $mime_types;
    }
    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

    ?>

    but am still getting this warning:
    Warning: finfo_open() expects parameter 1 to be long, string given in /hsphere/local/XXX/wp-includes/functions.php on line 2325 Warning: finfo_file(): supplied argument is not a valid file_info resource in /hsphere/local/XXX/wp-includes/functions.php on line 2326 Warning: finfo_close(): supplied argument is not a valid file_info resource in /hsphere/local/XXX/wp-includes/functions.php on line 2327
    Dismiss“XXX.pdf” has failed to upload.
    Sorry, this file type is not permitted for security reasons.

    • This reply was modified 7 years, 11 months ago by umeworks.
Viewing 4 posts - 1 through 4 (of 4 total)