Support » Plugin: Image Rotation Fixer » Bug in this plugin when WP is installed on Windows

  • Line 43 of image-rotation-fixer.php should be:

    $filename = end( $sourceFile );

    instead of

    $filename = $sourceFile[5];

    Why? Here is what $sourceFile looks like when running on my Windows machine:

    [12-Sep-2016 14:23:32 UTC] Array
    (
        [0] => C:\MAMP\htdocs\test-site
        [1] => 
        [2] => wp-content
        [3] => uploads
        [4] => 04.jpeg
    )

    and here is the error I get:

    [12-Sep-2016 14:23:32 UTC] PHP Notice: Undefined offset: 5 in C:\MAMP\htdocs\test-site\wp-content\plugins\image-rotation-fixer\image-rotation-fixer.php on line 47

  • The topic ‘Bug in this plugin when WP is installed on Windows’ is closed to new replies.