Image path problem with version 2.10
-
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
The topic ‘Image path problem with version 2.10’ is closed to new replies.