1.9.4 thumbnails not loaded correctly from .thumbs dirSUPEE-10975 Potential IssuesMagento 1.8.1.0 WYSIWYG editor is not displaying thumbnails in image managerBroken image links from Wysiwyg's shortcodes on category and product pages not translating on Magento websiteEE 1.14.2 / CE 1.9.2: Quote items not merged correctly on login (duplicate products in cart)block … in wysiwyg from page gets not renderedProducts not showing in catalog after media migration from magento 1.9 to 2.1catalogProductAttributeMediaRemove does not remove Image from the disk in Magento 1.9 CECE 1.9.3.x: Customer cart (quote items) not merged correctly on login (new cart is replaced instead of merged)Product's Images' URLs are not same after migrating from Magento 1.9 to Magento 2.2Magento 2.2.5 Wysiwyg editor Error : Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encodedCheckout process not proceeding after 2 step in magento 1.9.4
Could you sell yourself into slavery in the USA?
Two queries on triangles, the sides of which have rational lengths
What are the differences of checking a self-signed certificate vs ignore it?
How to deal with administrative duties killing the research spirit?
Sleepy tired vs physically tired
What is the name of the technique when an element is repeated at different scales?
How can I effectively map a multi-level dungeon?
Do intermediate subdomains need to exist?
Taking advantage when the HR forgets to communicate the rules
Should I hide my travel history to the UK when I apply for an Australian visa?
Was Wolfgang Unzicker the last Amateur GM?
Using Sed to add counter to keyword
Contributing to a candidate as a Foreign National US Resident?
Can 4 Joy cons connect to the same Switch?
What happens if the limit of 4 billion files was exceeded in an ext4 partition?
What's the big deal about the Nazgûl losing their horses?
What do you call the angle of the direction of an airplane?
Does a multiclassed wizard start with a spellbook?
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
Why did moving the mouse cursor cause Windows 95 to run more quickly?
How to calculate a conditional PDF in mathematica?
What is exact meaning of “ich wäre gern”?
Chess problem: Make a crossword in 3 moves
Explain how 'Sharing the burden' puzzle from Professor Layton and the Miracle Mask should be solved
1.9.4 thumbnails not loaded correctly from .thumbs dir
SUPEE-10975 Potential IssuesMagento 1.8.1.0 WYSIWYG editor is not displaying thumbnails in image managerBroken image links from Wysiwyg's shortcodes on category and product pages not translating on Magento websiteEE 1.14.2 / CE 1.9.2: Quote items not merged correctly on login (duplicate products in cart)block … in wysiwyg from page gets not renderedProducts not showing in catalog after media migration from magento 1.9 to 2.1catalogProductAttributeMediaRemove does not remove Image from the disk in Magento 1.9 CECE 1.9.3.x: Customer cart (quote items) not merged correctly on login (new cart is replaced instead of merged)Product's Images' URLs are not same after migrating from Magento 1.9 to Magento 2.2Magento 2.2.5 Wysiwyg editor Error : Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encodedCheckout process not proceeding after 2 step in magento 1.9.4
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
... or "breaking already broken features - what is Mage_Core_Model_File_Uploader::getCorrectFileName() for?"
M1 has a bug that thumbnails used in CMS blocks/pages (insert image button) are not stored/loeaded correctly.
To fix this we have used solution from https://www.ctidigital.com/blog/fixing-magento-improving-performance-of-the-wysiwyg-editor/
Worked well for years but now I've seen 1.9.4 also broke this!
1.9.4 replaced
Mage_Cms_Model_Wysiwyg_Images_Storage::getFilesCollection()
$thumbUrl = $this->getThumbnailUrl($item->getFilename(), true);
with
$thumbUrl = $this->getThumbnailUrl(
Mage_Core_Model_File_Uploader::getCorrectFileName($item->getFilename()),
true);
This passes the complete image path to getCorrectFileName()
(instead of filename only) and replaces all backslashes with underscores leading to always failed checks in getThumbnailUrl()
- so every thumb is generated new every time.
/**
* Correct filename with special chars and spaces
*
* @param string $fileName
* @return string
*/
static public function getCorrectFileName($fileName)
This turns var/www/[...]/Some/Image.jpg
into _var_www_[...]_Some_Image.jpg
...
Do you have a better idea then this?
$thumbImg = Mage_Core_Model_File_Uploader::getCorrectFileName($item->getBasename());
...
$thumbUrl = $this->getThumbnailUrl($path . DS . $thumbImg, true);
wysiwyg bug media-images magento-1.9.4
add a comment |
... or "breaking already broken features - what is Mage_Core_Model_File_Uploader::getCorrectFileName() for?"
M1 has a bug that thumbnails used in CMS blocks/pages (insert image button) are not stored/loeaded correctly.
To fix this we have used solution from https://www.ctidigital.com/blog/fixing-magento-improving-performance-of-the-wysiwyg-editor/
Worked well for years but now I've seen 1.9.4 also broke this!
1.9.4 replaced
Mage_Cms_Model_Wysiwyg_Images_Storage::getFilesCollection()
$thumbUrl = $this->getThumbnailUrl($item->getFilename(), true);
with
$thumbUrl = $this->getThumbnailUrl(
Mage_Core_Model_File_Uploader::getCorrectFileName($item->getFilename()),
true);
This passes the complete image path to getCorrectFileName()
(instead of filename only) and replaces all backslashes with underscores leading to always failed checks in getThumbnailUrl()
- so every thumb is generated new every time.
/**
* Correct filename with special chars and spaces
*
* @param string $fileName
* @return string
*/
static public function getCorrectFileName($fileName)
This turns var/www/[...]/Some/Image.jpg
into _var_www_[...]_Some_Image.jpg
...
Do you have a better idea then this?
$thumbImg = Mage_Core_Model_File_Uploader::getCorrectFileName($item->getBasename());
...
$thumbUrl = $this->getThumbnailUrl($path . DS . $thumbImg, true);
wysiwyg bug media-images magento-1.9.4
add a comment |
... or "breaking already broken features - what is Mage_Core_Model_File_Uploader::getCorrectFileName() for?"
M1 has a bug that thumbnails used in CMS blocks/pages (insert image button) are not stored/loeaded correctly.
To fix this we have used solution from https://www.ctidigital.com/blog/fixing-magento-improving-performance-of-the-wysiwyg-editor/
Worked well for years but now I've seen 1.9.4 also broke this!
1.9.4 replaced
Mage_Cms_Model_Wysiwyg_Images_Storage::getFilesCollection()
$thumbUrl = $this->getThumbnailUrl($item->getFilename(), true);
with
$thumbUrl = $this->getThumbnailUrl(
Mage_Core_Model_File_Uploader::getCorrectFileName($item->getFilename()),
true);
This passes the complete image path to getCorrectFileName()
(instead of filename only) and replaces all backslashes with underscores leading to always failed checks in getThumbnailUrl()
- so every thumb is generated new every time.
/**
* Correct filename with special chars and spaces
*
* @param string $fileName
* @return string
*/
static public function getCorrectFileName($fileName)
This turns var/www/[...]/Some/Image.jpg
into _var_www_[...]_Some_Image.jpg
...
Do you have a better idea then this?
$thumbImg = Mage_Core_Model_File_Uploader::getCorrectFileName($item->getBasename());
...
$thumbUrl = $this->getThumbnailUrl($path . DS . $thumbImg, true);
wysiwyg bug media-images magento-1.9.4
... or "breaking already broken features - what is Mage_Core_Model_File_Uploader::getCorrectFileName() for?"
M1 has a bug that thumbnails used in CMS blocks/pages (insert image button) are not stored/loeaded correctly.
To fix this we have used solution from https://www.ctidigital.com/blog/fixing-magento-improving-performance-of-the-wysiwyg-editor/
Worked well for years but now I've seen 1.9.4 also broke this!
1.9.4 replaced
Mage_Cms_Model_Wysiwyg_Images_Storage::getFilesCollection()
$thumbUrl = $this->getThumbnailUrl($item->getFilename(), true);
with
$thumbUrl = $this->getThumbnailUrl(
Mage_Core_Model_File_Uploader::getCorrectFileName($item->getFilename()),
true);
This passes the complete image path to getCorrectFileName()
(instead of filename only) and replaces all backslashes with underscores leading to always failed checks in getThumbnailUrl()
- so every thumb is generated new every time.
/**
* Correct filename with special chars and spaces
*
* @param string $fileName
* @return string
*/
static public function getCorrectFileName($fileName)
This turns var/www/[...]/Some/Image.jpg
into _var_www_[...]_Some_Image.jpg
...
Do you have a better idea then this?
$thumbImg = Mage_Core_Model_File_Uploader::getCorrectFileName($item->getBasename());
...
$thumbUrl = $this->getThumbnailUrl($path . DS . $thumbImg, true);
wysiwyg bug media-images magento-1.9.4
wysiwyg bug media-images magento-1.9.4
edited Jun 27 at 22:18
sv3n
asked Jun 25 at 21:06
sv3nsv3n
10.1k6 gold badges25 silver badges57 bronze badges
10.1k6 gold badges25 silver badges57 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f279596%2f1-9-4-thumbnails-not-loaded-correctly-from-thumbs-dir%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f279596%2f1-9-4-thumbnails-not-loaded-correctly-from-thumbs-dir%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown