Forum Replies Created
-
AuthorPosts
-
Chris
ParticipantThat did it, thanks
Chris
ParticipantI’ve seem to have solved it temporarily (and with a hack) by making my own filetype check:
private function check_filetype( $filename, $mimes = null ) {if ( empty($mimes) )
$mimes = get_allowed_mime_types();$type = false;
$ext = false;foreach ( $mimes as $ext_preg => $mime_match ) {
$ext_preg = ‘!\.(‘ . $ext_preg . ‘)!i’;if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
$type = $mime_match;
$ext = $ext_matches[1];
break;
}
}
return compact( ‘ext’, ‘type’ );
}And then sub:
$wp_filetype = wp_check_filetype($event_picture[‘url’], null );
with:
$wp_filetype = $this -> check_filetype($event_picture[‘url’], null );But should be a more permanent fix for the plugin as I can now not update the plugin.
Chris
ParticipantGuess the problem is with the image type check that fails because the file url does not end with .jpg. That is when the upload gets to this line of code $wp_filetype = wp_check_filetype($event_picture[‘url’], null );
Chris
ParticipantJust tested on a clean install of wp 3.9.2 with only the 3 plugins (The Events Calendar PRO, The Events Calendar: Facebook Events, The Events Calendar PRO) and still getting the same problem. Here is an event I get the problem on: 713170382063875
-
AuthorPosts
