0905700007
Tủ
NotReadableException {#11012 #message: "Unable to init from given binary data." #code: 0 #file: "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php" #line: 115 trace: { /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:115 { › if ($resource === false) { › throw new NotReadableException( › "Unable to init from given binary data." } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:343 { › case $this->isBase64(): › return $this->initFromBinary(base64_decode($this->data)); › } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66 { › { › return $this->decoder->init($data); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54 { › { › return $this->createDriver()->init($data); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58 { › { › return self::getManager()->make($data); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/functions.php:175 { › }\r › $image = Image::make($srcPath);\r › $image->fit($maxWidth, $maxHeight, static function ($constraint) {\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/functions.php:486 { › if (!file_exists($filepath)) {\r › resizeImage($attachment_realpath, $filepath, $width, $height, $extension);\r › // Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/template_tags.php:41 { › {\r › $defaultImage = getImageUrlById(getOption('hinh_anh_mac_dinh'), $width, $height);\r › try {\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/template_tags.php:129 { › {\r › echo getPostThumbnailUrl(get_the_ID(), $width, $height);\r › }\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/templates/template-product-listing.php:7 { › <a class="blog-item__more" href="<?=the_permalink()?>">\r › \t<img class="" src="<?php thePostThumbnailUrl(400, 300) ?>">\r › </a>\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template.php:732 { › } else { › \trequire $_template_file; › } arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/templates/template-product-listing.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template.php:676 { › if ( $load && '' !== $located ) { › \tload_template( $located, $require_once, $args ); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/general-template.php:204 { › › if ( ! locate_template( $templates, true, false, $args ) ) { › \treturn false; } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/template_tags.php:17 { › {\r › get_template_part('templates/' . $name);\r › }\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/archive-product.php:14 { › \t<!-- Product item template -->\r › \t<?php template("template-product-listing"); ?>\r › </div>\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:345 { › › include $action_args['located']; › arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/archive-product.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php:22 { › › wc_get_template( 'archive-product.php' ); › } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template-loader.php:106 { › if ( $template ) { › \tinclude $template; › } elseif ( current_user_can( 'switch_themes' ) ) { arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-blog-header.php:19 { › // Load the theme template. › require_once ABSPATH . WPINC . '/template-loader.php'; › arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template-loader.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/index.php:17 { › /** Loads the WordPress Environment and Template */ › require __DIR__ . '/wp-blog-header.php'; › arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-blog-header.php" } } } }
if ($resource === false) {
throw new NotReadableException(
"Unable to init from given binary data."
case $this->isBase64():
return $this->initFromBinary(base64_decode($this->data));
{
return $this->decoder->init($data);
}
return $this->createDriver()->init($data);
return self::getManager()->make($data);
}\r
$image = Image::make($srcPath);\r
$image->fit($maxWidth, $maxHeight, static function ($constraint) {\r
if (!file_exists($filepath)) {\r
resizeImage($attachment_realpath, $filepath, $width, $height, $extension);\r
// Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize\r
{\r
$defaultImage = getImageUrlById(getOption('hinh_anh_mac_dinh'), $width, $height);\r
try {\r
echo getPostThumbnailUrl(get_the_ID(), $width, $height);\r
<a class="blog-item__more" href="<?=the_permalink()?>">\r
\t<img class="" src="<?php thePostThumbnailUrl(400, 300) ?>">\r
</a>\r
} else {
\trequire $_template_file;
if ( $load && '' !== $located ) {
\tload_template( $located, $require_once, $args );
if ( ! locate_template( $templates, true, false, $args ) ) {
\treturn false;
get_template_part('templates/' . $name);\r
\t<!-- Product item template -->\r
\t<?php template("template-product-listing"); ?>\r
</div>\r
include $action_args['located'];
wc_get_template( 'archive-product.php' );
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';
NotReadableException {#11099 #message: "Image source not readable" #code: 0 #file: "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php" #line: 346 trace: { /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:346 { › default: › throw new NotReadableException("Image source not readable"); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66 { › { › return $this->decoder->init($data); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54 { › { › return $this->createDriver()->init($data); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php:58 { › { › return self::getManager()->make($data); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/functions.php:175 { › }\r › $image = Image::make($srcPath);\r › $image->fit($maxWidth, $maxHeight, static function ($constraint) {\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/functions.php:486 { › if (!file_exists($filepath)) {\r › resizeImage($attachment_realpath, $filepath, $width, $height, $extension);\r › // Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/template_tags.php:52 { › \r › return getImageUrlById($imageId, $width, $height);\r › } catch (\Exception $ex) {\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/template_tags.php:129 { › {\r › echo getPostThumbnailUrl(get_the_ID(), $width, $height);\r › }\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/templates/template-product-listing.php:7 { › <a class="blog-item__more" href="<?=the_permalink()?>">\r › \t<img class="" src="<?php thePostThumbnailUrl(400, 300) ?>">\r › </a>\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template.php:732 { › } else { › \trequire $_template_file; › } arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/templates/template-product-listing.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template.php:676 { › if ( $load && '' !== $located ) { › \tload_template( $located, $require_once, $args ); › } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/general-template.php:204 { › › if ( ! locate_template( $templates, true, false, $args ) ) { › \treturn false; } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/framework/helpers/template_tags.php:17 { › {\r › get_template_part('templates/' . $name);\r › }\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/archive-product.php:14 { › \t<!-- Product item template -->\r › \t<?php template("template-product-listing"); ?>\r › </div>\r } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:345 { › › include $action_args['located']; › arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/themes/nrglobal/archive-product.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php:22 { › › wc_get_template( 'archive-product.php' ); › } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template-loader.php:106 { › if ( $template ) { › \tinclude $template; › } elseif ( current_user_can( 'switch_themes' ) ) { arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-blog-header.php:19 { › // Load the theme template. › require_once ABSPATH . WPINC . '/template-loader.php'; › arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-includes/template-loader.php" } } /home/vietnhat/domains/govietnhat.nrglobal.top/public_html/index.php:17 { › /** Loads the WordPress Environment and Template */ › require __DIR__ . '/wp-blog-header.php'; › arguments: { "/home/vietnhat/domains/govietnhat.nrglobal.top/public_html/wp-blog-header.php" } } } }
default:
throw new NotReadableException("Image source not readable");
\r
return getImageUrlById($imageId, $width, $height);\r
} catch (\Exception $ex) {\r
Liên hệ
Đang online: 0 |
Tổng: 147048