NotSupportedException {#2172 #message: "Encoding format (P-Rib) is not supported." #code: 0 #file: "/home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/vendor/intervention/image/src/Intervention/Image/AbstractEncoder.php" #line: 200 trace: { /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/vendor/intervention/image/src/Intervention/Image/AbstractEncoder.php:200 { › default: › throw new NotSupportedException( › "Encoding format ({$this->format}) is not supported." } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:79 { › { › return $this->encoder->process($image, $format, $quality); › } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/vendor/intervention/image/src/Intervention/Image/Image.php:121 { › { › return $this->driver->encode($this, $format, $quality); › } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/framework/helpers/functions.php:159 { › }\r › $image->encode($type);\r › $image->save($destinationPath, 85);\r } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/framework/helpers/functions.php:483 { › if (!file_exists($filepath)) {\r › \tresizeImage($attachment_realpath, $filepath, $width, $height, $extension);\r › \t// Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize\r } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/framework/helpers/template_tags.php:52 { › \t\r › \treturn getImageUrlById($imageId, $width, $height);\r › } catch (\Exception $ex) {\r } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/framework/helpers/template_tags.php:129 { › {\r › \techo getPostThumbnailUrl(get_the_ID(), $width, $height);\r › }\r } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/templates/product_item.php:7 { › <a href="<?=get_permalink()?>">\r › \t<img src="<?php thePostThumbnailUrl(400,300) ?>" alt="">\r › \t<div class="menu-item__wrap">\r } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/template.php:812 { › } else { › \trequire $_template_file; › } arguments: { "/home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/archive.php" } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/template.php:745 { › if ( $load && '' !== $located ) { › \tload_template( $located, $load_once, $args ); › } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/general-template.php:206 { › › if ( ! locate_template( $templates, true, false, $args ) ) { › \treturn false; } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/framework/helpers/template_tags.php:17 { › {\r › \tget_template_part('templates/' . $name);\r › }\r } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/archive.php:16 { › while(have_posts()) : the_post(); › template('product_item'); › endwhile; } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/template.php:812 { › } else { › \trequire $_template_file; › } arguments: { "/home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/archive.php" } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/template.php:745 { › if ( $load && '' !== $located ) { › \tload_template( $located, $load_once, $args ); › } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/general-template.php:206 { › › if ( ! locate_template( $templates, true, false, $args ) ) { › \treturn false; } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/category.php:1 { › › <?php get_template_part('archive') ?> › } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/template-loader.php:106 { › if ( $template ) { › \tinclude $template; › } elseif ( current_user_can( 'switch_themes' ) ) { arguments: { "/home/redskymain/domains/redskydanang.com.vn/public_html/wp-content/themes/tuananh/category.php" } } /home/redskymain/domains/redskydanang.com.vn/public_html/wp-blog-header.php:19 { › // Load the theme template. › require_once ABSPATH . WPINC . '/template-loader.php'; › arguments: { "/home/redskymain/domains/redskydanang.com.vn/public_html/wp-includes/template-loader.php" } } /home/redskymain/domains/redskydanang.com.vn/public_html/index.php:17 { › /** Loads the WordPress Environment and Template */ › require dirname(__FILE__) . '/wp-blog-header.php'; › arguments: { "/home/redskymain/domains/redskydanang.com.vn/public_html/wp-blog-header.php" } } } }
default:
throw new NotSupportedException(
"Encoding format ({$this->format}) is not supported."
{
return $this->encoder->process($image, $format, $quality);
}
return $this->driver->encode($this, $format, $quality);
}\r
$image->encode($type);\r
$image->save($destinationPath, 85);\r
if (!file_exists($filepath)) {\r
\tresizeImage($attachment_realpath, $filepath, $width, $height, $extension);\r
\t// Bổ sung vào metadata để sau này khi user xóa ảnh thì xóa luôn cả ảnh resize\r
\t\r
\treturn getImageUrlById($imageId, $width, $height);\r
} catch (\Exception $ex) {\r
{\r
\techo getPostThumbnailUrl(get_the_ID(), $width, $height);\r
<a href="<?=get_permalink()?>">\r
\t<img src="<?php thePostThumbnailUrl(400,300) ?>" alt="">\r
\t<div class="menu-item__wrap">\r
} else {
\trequire $_template_file;
if ( $load && '' !== $located ) {
\tload_template( $located, $load_once, $args );
if ( ! locate_template( $templates, true, false, $args ) ) {
\treturn false;
\tget_template_part('templates/' . $name);\r
while(have_posts()) : the_post();
template('product_item');
endwhile;
<?php get_template_part('archive') ?>
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 dirname(__FILE__) . '/wp-blog-header.php';