Warning image size
-
Error : PHP Warning: getimagesize(/xxx/yyy/blog/files/2022/03/vlcsnap-2021-10-12-15h10m39s325-1024×250.png): failed to open stream: No such file or directory in /applis/www/devblog/wp-content/themes/graphene/inc/functions.php on line 519
In function : graphene_get_image_size( $file ).
With multisite wordpress with image loading for theme and without crop (because the function is not call if crop), the absolute value of $file need /wp-content/blogs.dir/[number_of_blog]/ between ABSPATH and image path but only with image load, not with image in the theme.
In error : /xxx/yyy/blog/ is the ABSPATH and files/2022/03/vlcsnap-2021-10-12-15h10m39s325-1024×250.png is the image path, original $file is : https://zzzzzz.ac-poitiers.fr/demodoc/files/2022/03/vlcsnap-2021-10-12-15h10m39s325-1024×250.png and site_url() : https://zzzzzz.ac-poitiers.fr/demodoc.
With an image in graphene theme dir, it’s work.Graphene ver 2.9 (2022-3-19)
- The topic ‘Warning image size’ is closed to new replies.