Updated to PHP 5.3 and now resolved. Thank you.
Do you have a specific recommendation which of these I should upgrade to?
5.3.29, 5.4.45 or 5.5.33
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.
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.