3

Hello Everyone
I have a problem with my WYSIWYG editor in magento admin. When I try to upload image or video, it processes the image. Then shows 100% upload complete message. After that nothing happens. The image is not uploaded and it doesn't show in the list.
I have no idea how this happened. It was working before but now it just doesn't.
I don't know what caused the problem or how to solve this. Does anyone have any idea??
Thanks in Advance.

closed as off-topic by sv3n, Manoj Deswal, Prince Patel, liyakat, Amit Bera Oct 12 '17 at 12:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – sv3n, Manoj Deswal, Prince Patel, liyakat, Amit Bera
If this question can be reworded to fit the rules in the help center, please edit the question.

  • You've checked that the permissions haven't been changed on the media directory, right? – McNab Aug 30 '13 at 9:38
  • I have again made sure that the permissions are set. It is 777 for media folder as well as for wysiwyg folder in it. – Jaimin Sutariya Aug 30 '13 at 9:44
  • I've experienced this issue previously but can't remember what I did to fix it now. Can you test in a different browser and see if any different? – zigojacko Aug 30 '13 at 11:29
  • Hello Geoff, I have tested it in other browsers but result is the same. I also have replaced the js folder with a fresh magento copy js folder. But no success.. :( – Jaimin Sutariya Aug 30 '13 at 11:44
  • any errors in var/log? – Marius Sep 24 '13 at 7:04
2

Fix function getDirsCollection($path) in file Mage\Cms\Model\Wysiwyg\Images\Storage.php. and repair function getStorageRoot() in Mage\Cms\Helper\Wysiwyg\Images.php

1.

Mage_Cms_Model_Wysiwyg_Config -> add lines: const IMAGE_DIRECTORY = 'wysiwyg';

2.

public function getStorageRoot()
    {
        return Mage::getConfig()->getOptions()->getMediaDir() . DS . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY . DS;
    }

3.

public function getDirsCollection($path)
    {
        if (Mage::helper('core/file_storage_database')->checkDbUsage()) {
            $subDirectories = Mage::getModel('core/file_storage_directory_database')->getSubdirectories($path);
            foreach ($subDirectories as $directory) {
                $fullPath = rtrim($path, DS) . DS . $directory['name'];
                  if (!file_exists($fullPath)) {
                    mkdir($fullPath, 0777, true);
                }
            }
        }
...

}
  • Can you explain what the problem is you are fixing? – Fabian Blechschmidt Oct 31 '13 at 16:41
0

check you browser error logs for errors.

The File upload uses flash, maybe it is causing the error somehow. mod_secutiy (Apache webserver) could also cause some problems. Check you werbserver's error log.

Not the answer you're looking for? Browse other questions tagged or ask your own question.