crxman
Total Posts: 57
Joined: 2008-11-14
Every thing is in the title, when I want to ad an image through the Wysiwyg editor I get this error :
Fatal error: Undefined class constant ‘IMAGE_DIRECTORY’ in /home/xxxxxx/domains/xxxxxx.com/public_html/app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php on line 72
The latest version have a big problem with image uploading in media folder, any help will be appreciate ...
Posted: July 5 2011
| top
kab8609
Total Posts: 708
Joined: 2009-04-07
Cleveland
Had a similar issue…
In your media folder, do you have a “wysiwyg” folder?
So it would be:
ROOT/media/wysiwyg
If not, add the directory, refresh cache/index, and try again.
Signature
Kris Brown
Magento Certified Developer
I work at Briteskies , a Magento Solutions Partner.
Magento CE Sites Built to Date for Clients: 26
Magento EE Sites Built to Date for Clients: 5
Magento Extensions Built to Date for Clients: 13
Don’t edit core code...
Posted: July 5 2011
| top
| # 1
crxman
Total Posts: 57
Joined: 2008-11-14
I just tryed but did not change any thing thanks for your help anyway.
Posted: July 6 2011
| top
| # 2
kab8609
Total Posts: 708
Joined: 2009-04-07
Cleveland
Do you know if any of the core files have been modified or extended?
Also, take a look at:
app/code/core/Mage/Cms/Model/Wysiwyg/Config.php and see if your files looks like this:
class Mage_Cms_Model_Wysiwyg_Config extends Varien_Object { /** * Wysiwyg behaviour */ const WYSIWYG_ENABLED = 'enabled' ; const WYSIWYG_HIDDEN = 'hidden' ; const WYSIWYG_DISABLED = 'disabled' ; const IMAGE_DIRECTORY = 'wysiwyg' ;
Signature
Kris Brown
Magento Certified Developer
I work at Briteskies , a Magento Solutions Partner.
Magento CE Sites Built to Date for Clients: 26
Magento EE Sites Built to Date for Clients: 5
Magento Extensions Built to Date for Clients: 13
Don’t edit core code...
Posted: July 7 2011
| top
| # 3
crxman
Total Posts: 57
Joined: 2008-11-14
My config file is exactly like this, no changes as been done…
What permission my wysisyg folder the the media section should have ? Also what file should be inside ?
Thanks again for your help Kris
kab8609 - 07 July 2011 11:45 AM
Do you know if any of the core files have been modified or extended?
Also, take a look at:
app/code/core/Mage/Cms/Model/Wysiwyg/Config.php and see if your files looks like this:
class Mage_Cms_Model_Wysiwyg_Config extends Varien_Object { /** * Wysiwyg behaviour */ const WYSIWYG_ENABLED = 'enabled' ; const WYSIWYG_HIDDEN = 'hidden' ; const WYSIWYG_DISABLED = 'disabled' ; const IMAGE_DIRECTORY = 'wysiwyg' ;
Posted: July 8 2011
| top
| # 4
Brent W Peterson
Total Posts: 3162
Joined: 2009-02-26
Minneapolis MN
Did you upgrade via Connect?
Can you try re-installing your core adminhtml?
Have you modified you Adminhtml?
Signature
Brent W. Peterson
Chief Magento Evangelist for WagentoCreative
==========
Follow me on Twitter @brentwpeterson
**Always remember to backup before trying anything new
Posted: July 8 2011
| top
| # 5