NotReadableException {#6067 #message: "Image source not readable" #code: 0 #file: "/home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php" #line: 346 trace: { /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:346 { › default: › throw new NotReadableException("Image source not readable"); › } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66 { › { › return $this->decoder->init($data); › } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54 { › { › return $this->createDriver()->init($data); › } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58 { › { › return self::getManager()->make($data); › } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/framework/helpers/functions.php:153 { › } › $image = Image::make($srcPath); › if ($maxWidth !== 0 || $maxHeight !== 0) { } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/framework/helpers/functions.php:484 { › if (!file_exists($filepath)) { › \tresizeImage($attachment_realpath, $filepath, $width, $height, $extension); › \t// Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/framework/helpers/template_tags.php:52 { › › return getImageUrlById($imageId, $width, $height); › } catch (\Exception $ex) { } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/framework/helpers/template_tags.php:129 { › { › echo getPostThumbnailUrl(get_the_ID(), $width, $height); › } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/single-thu-vien-hoat-dong.php:50 { › <div class="c-news wow fade-in-bottom"> › <a class="d-block waves-effect waves-light" href="<?php echo get_permalink()?> "><img class="news__img" src="<?php thePostThumbnailUrl( 470, 330) ?>" alt=""></a> › <h4 class="news__title"><a href="<?php echo get_permalink()?> " class="fs-15 font-weight-normal text-uppercase"><?php echo get_the_title()?></a></h4> } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-includes/template-loader.php:106 { › if ( $template ) { › \tinclude $template; › } elseif ( current_user_can( 'switch_themes' ) ) { arguments: { "/home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-content/themes/DuyAn/single-thu-vien-hoat-dong.php" } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-blog-header.php:19 { › // Load the theme template. › require_once ABSPATH . WPINC . '/template-loader.php'; › arguments: { "/home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-includes/template-loader.php" } } /home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/index.php:17 { › /** Loads the WordPress Environment and Template */ › require __DIR__ . '/wp-blog-header.php'; › arguments: { "/home/datxanhmt/domains/datxanhnammientrung.nrglobal.asia/public_html/wp-blog-header.php" } } } }
default:
throw new NotReadableException("Image source not readable");
}
{
return $this->decoder->init($data);
return $this->createDriver()->init($data);
return self::getManager()->make($data);
$image = Image::make($srcPath);
if ($maxWidth !== 0 || $maxHeight !== 0) {
if (!file_exists($filepath)) {
\tresizeImage($attachment_realpath, $filepath, $width, $height, $extension);
\t// Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize
return getImageUrlById($imageId, $width, $height);
} catch (\Exception $ex) {
echo getPostThumbnailUrl(get_the_ID(), $width, $height);
<div class="c-news wow fade-in-bottom">
<a class="d-block waves-effect waves-light" href="<?php echo get_permalink()?> "><img class="news__img" src="<?php thePostThumbnailUrl( 470, 330) ?>" alt=""></a>
<h4 class="news__title"><a href="<?php echo get_permalink()?> " class="fs-15 font-weight-normal text-uppercase"><?php echo get_the_title()?></a></h4>
if ( $template ) {
\tinclude $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';