Chris

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Facebook import "is not a valid image" Error #739664
    Chris
    Participant

    That did it, thanks

    in reply to: Facebook import "is not a valid image" Error #737715
    Chris
    Participant

    I’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.

    in reply to: Facebook import "is not a valid image" Error #737701
    Chris
    Participant

    Guess 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 );

    in reply to: Facebook import "is not a valid image" Error #737489
    Chris
    Participant

    Just 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

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