{"id":1034,"date":"2015-07-16T01:54:22","date_gmt":"2015-07-15T22:54:22","guid":{"rendered":"http:\/\/sahinsolmaz.com\/blog\/?p=1034"},"modified":"2015-08-20T18:54:30","modified_gmt":"2015-08-20T15:54:30","slug":"prestashop-tcpdf-error-image-unable-to-get-image-imgtmpproduct_mini_-solved","status":"publish","type":"post","link":"https:\/\/sahinsolmaz.com\/blog\/prestashop-tcpdf-error-image-unable-to-get-image-imgtmpproduct_mini_-solved\/","title":{"rendered":"PRESTASHOP TCPDF ERROR: [Image] Unable to get image: \/img\/tmp\/product_mini_ SOLVED"},"content":{"rendered":"<p>Herkese Merhabalar,<\/p>\n<p>Uzun bir aradan sonra <strong>Prestashop<\/strong> i\u00e7in g\u00fcncel bir <strong>bug<\/strong>\/hatan\u0131n (<strong>TCPDF ERROR: [Image] Unable to get image: \/img\/tmp\/product_mini_<\/strong>) \u00e7\u00f6z\u00fcm\u00fcn\u00fc h\u0131zl\u0131ca payla\u015faca\u011f\u0131m.<\/p>\n<h3><strong>TCPDF ERROR: [Image] Unable to get image:<\/strong> <strong>\u00c7\u00d6Z\u00dcM\u00dc<\/strong><\/h3>\n<h3>FIX BUG PRESTASHOP TCPDF ERROR: [Image] Unable to get image: \/img\/tmp\/product_mini_<\/h3>\n<p>How to fix this?<\/p>\n<p><a href=\"http:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2015\/07\/prestashop_TCPDF_ERROR_Image_Unable_to_get_image.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1038\" src=\"http:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2015\/07\/prestashop_TCPDF_ERROR_Image_Unable_to_get_image.jpg\" alt=\"prestashop_TCPDF_ERROR_Image_Unable_to_get_image\" width=\"446\" height=\"111\" \/><\/a><!--more--><\/p>\n<ul>\n<li>Anadizin\/classes\/<strong>pdf\/HTMLTemplateDeliverySlip.php<\/strong> dosyas\u0131n\u0131 a\u00e7\u0131n,<br \/>\nOpen the PS\/classes\/<strong>pdf\/HTMLTemplateDeliverySlip.php<\/strong> file<\/li>\n<li>\n<pre>A\u015fa\u011f\u0131daki sat\u0131rlar\u0131 de\u011fi\u015ftirin\r\nReplace the following lines\r\n\r\n<span style=\"color: #ff0000;\">kald\u0131r\u0131n (75.sat\u0131r) \/ remove<\/span> (online 75)\r\n<span style=\"color: #ff0000;\">$order_detail['image_tag'] = ImageManager::thumbnail(_PS_IMG_DIR_.'p\/'.$order_detail['image']-&gt;getExistingImgPath().'.jpg', $name, 45, 'jpg', false);\r\n\r\n<span style=\"color: #008000;\">(ekleyin\/add)<\/span>\r\n<strong><span style=\"color: #008000;\">$path = _PS_PROD_IMG_DIR_.$order_detail['image']-&gt;getExistingImgPath().'.jpg';<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">$order_detail['image_tag'] = preg_replace(<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">\u00a0\u00a0 \u00a0'\/\\.*'.preg_quote(__PS_BASE_URI__, '\/').'\/',<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">\u00a0\u00a0 \u00a0_PS_ROOT_DIR_.DIRECTORY_SEPARATOR,<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">\u00a0\u00a0 \u00a0ImageManager::thumbnail($path, $name, 45, 'jpg', false),<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">\u00a0\u00a0 \u00a01<\/span><\/strong>\r\n<strong><span style=\"color: #008000;\">);<\/span><\/strong>\r\n<\/span><\/pre>\n<\/li>\n<li>Kaydedip, tekrar deneyin.<br \/>\nand now, you can try again.<\/li>\n<\/ul>\n<p>Bu \u00e7\u00f6z\u00fcm Prestashop 1.6.0.14 versiyonunda denenmi\u015f ve ba\u015far\u0131yla sonu\u00e7lanm\u0131\u015ft\u0131r. 1.5 ve \u00fczeri s\u00fcr\u00fcmlerde deneyebilirsiniz.<\/p>\n<p>This solution had used for Prestashop 1.6.0.14 and it was okay. You can try for Prestashop 1.5 and more than..<\/p>\n<p>Kaynak\/source: https:\/\/github.com\/PrestaShop\/PrestaShop\/pull\/2797\/files<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Herkese Merhabalar, Uzun bir aradan sonra Prestashop i\u00e7in g\u00fcncel bir bug\/hatan\u0131n (TCPDF ERROR: [Image] Unable to get image: \/img\/tmp\/product_mini_) \u00e7\u00f6z\u00fcm\u00fcn\u00fc h\u0131zl\u0131ca payla\u015faca\u011f\u0131m. TCPDF ERROR: [Image] Unable to get image: \u00c7\u00d6Z\u00dcM\u00dc FIX BUG PRESTASHOP TCPDF ERROR: [Image] Unable to get image: \/img\/tmp\/product_mini_ How to fix this?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[21],"tags":[533,531,532],"class_list":["post-1034","post","type-post","status-publish","format-standard","hentry","category-prestashop-e-ticaret","tag-imgtmpproduct_mini","tag-prestashop-tcpdf-error","tag-tcpdf-error-image-unable-to-get-image"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4sbm9-gG","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/1034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/comments?post=1034"}],"version-history":[{"count":6,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/1034\/revisions"}],"predecessor-version":[{"id":1090,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/1034\/revisions\/1090"}],"wp:attachment":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/media?parent=1034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/categories?post=1034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/tags?post=1034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}