Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.
For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email email@example.com.
WYSIWYG “media url=” images not displaying in back end
We’re running Magento ver. 220.127.116.11. In the CMS, when an image is added via “Show Editor” > “Insert Image...”, the image shows up as broken on the back end. Saving the page and loading it on the front end reveals a working image.
Here is a sample line of code generated in this way:
Warning: getimagesize(http://example.com/media/wysiwyg/path/to/image.jpg): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /full/path/to/webroot/lib/Varien/Image/Adapter/Abstract.php on line 87
It seems entirely unnecessary ( wrong? ) to me that this method would be called on an external URL rather than the file path itself. I’d rather not hack Magento core. What would be a good solution to this problem?
I did some more digging around to no avail. We have a dev site and a production site, so ultimately, since our client is familiar enough with HTML, we just left it with broken images in the editor and refreshed the page on the front end. The other styles are missing in the editor, anyway.
At some point I would like to go back and find a real solution, though. Let me know if you find anything.
In our PHP config, fopen is enabled, but allowing it to open remote URLs is not acceptable. The way the core code is calling it uses the web path rather than the file path… ? I think I’m going to have to wait until this is changed in the core code.