• Resolved gorico

    (@gorico)


    I just wanted to notify this issue that emerged from UM versione 2.10 concerning the loading of default image (images?) in the User Home page. The error is like this

    Warning: getimagesize(/web/htdocs/www.adeimf.it/home/wp/wp/wp-content/uploads/ultimatemember/1/profile_photo-190×190.png): failed to open stream: No such file or directory in /web/htdocs/www.adeimf.it/home/wp/wp-content/plugins/ultimate-member/includes/core/um-actions-profile.php on line 745

    Since the file actually exists, and nothing ever changed, I just assumed that something new concerning the system path management in *this* specific situation was implemented, but I really don’t know what it is.

    That said, I just added this silly fix inside the code of um-actions-profile.php (that of course I have to apply whenever a new version is installed):

            if (file_exists($image_path)) {
                $imagesizes = getimagesize( $image_path );
                if ( is_array( $imagesizes ) ) {
                    list( $image_width, $image_height ) = $imagesizes;
                }
            }

    Hope this could help some other user having the same issue.

    Regards
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hello @gorico
    Sorry for the delayed reply. Try to update to the latest version of the UM plugin. Perhaps this is already fixed.

    Regards

    Plugin Support Yurii

    (@yuriinalivaiko)

    Hi @gorico

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Image path problem with version 2.10’ is closed to new replies.