Can’t read image folder after upgrate to

After upgrad, when insert image to description, the programm can’t read the Media folder any more, and always shows SQL data error.
can Any one solve this ?

es I think there is a small issue with one of the files probably Tree.php.  When it looks for the image directories, sub directories and files it looks for the table “ _core_directory_storage” but with the most recent upgrade this table seems not to be included.  I don’t know whether this is intentional or not as this table does not seem to be used!

Whatever, the net result is that any sub-directories which are created do not appear.

I have tried adding _core_directory_storage to all my DBs and it seems to work so if you back up your database you could run


-- --------------------------------------------------------

-- Table structure for table `{your prefix}_core_directory_storage`

CREATE TABLE IF NOT EXISTS `{your prefix}_core_directory_storage` (
`directory_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`path` varchar(255) NOT NULL DEFAULT '',
`parent_id` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`directory_id`),
KEY `parent_id` (`parent_id`)

-- Dumping data for table `{your prefix}_core_directory_storage`

-- Constraints for dumped tables

-- Constraints for table `{your prefix}_core_directory_storage`
ALTER TABLE `{your prefix}_core_directory_storage`
ADD CONSTRAINT `FK_DIRECTORY_PARENT_ID` FOREIGN KEY (`parent_id`) REFERENCES `{your prefix}_core_directory_storage` (`directory_id`) ON DELETE CASCADE ON UPDATE CASCADE;


OR go to


and comment out

$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);

To change the base image directory go to


and change the constant IMAGE_DIRECTORY =

within my installation the table was created (upgrade from to But it didn’t work, too.
I just had to set in app/code/core/Mage/Cms/Model/Wysiwyg/Config.php


const IMAGE_DIRECTORY = 'wysiwyg';


const IMAGE_DIRECTORY = '.';



Warning: error_log(/www/wwwroot/ failed to open stream: No such file or directory in /www/wwwroot/ on line 2900