It worked for me before I moved the zencart directory to the main level of my site. I've tried all the fixes, but the htmlarea is still showing the text version.
Printable View
It worked for me before I moved the zencart directory to the main level of my site. I've tried all the fixes, but the htmlarea is still showing the text version.
I did correct my problem by doing a diff on BBedit on my main level admin and the one I had originaly in a subfolder. I had a mistake in admin/includes/configure.php
This is what I had:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '');
This is what fixed it.
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
now, this many only apply when you move a zen cart into another directory, or I think it's more of an error on my part. I would definetly do a diff on your admin folder if it did work once and you moved it:smile:.
My configure file is correct, but I've changed the name of my admin folder as advised in the security recommendations. So maybe HTML area is somehow hard-coded to a folder named "admin".
In fact... I believe HTML area was working correctly up until I changed the name of the admin folder...
If this is so I am sure it would be more of a problem for a lot of people, I will try it on mine and see what happens, on my off site cart and see if this causes it to fail.
"My configure file is correct, but I've changed the name of my admin folder as advised in the security recommendations. So maybe HTML area is somehow hard-coded to a folder named "admin".
In fact... I believe HTML area was working correctly up until I changed the name of the admin folder..."
Exactly! All my editors died when my client insisted that she wanted a splash page in the root DIR of the page...
So I needed to change:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
to
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/newdir/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/newdir/');
All the editors sprang to life after this --
Thank goodness!
I've been struggling with the lack of HTML area for quite a while and FINALLY found the solution. Seems my .htaccess file in the root directory was causing the problem, so including the following lines in my /admin/.htaccess file cleared things up.
Hope this helps someone else...Quote:
RewriteEngine On
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).htm$ index\.php?main_page=$1&%{QUERY_STRING} [L]
Also people could also try the other html modules that are up and see if they work.
This is a little older thread but hopefully my post will help someone that may have this problem in the future. My htmlarea wasn't working and none of the previously posted solutions seemed to work. The problem was the javascript wasn't being found correctly which led to the javascript htmlarea objects not being defined. I tracked this down with firebug (an awesome firefox extension I would recommend to any developer!) which helped me come up with my fix. I believe the root of my problem came from my decision to have the whole admin protected with ssl. This means every page request is through ssl which is different from the default of zen cart. Well on my host my ssl is through a shared certificated with a pattern of 123.mydomain.com/~username/ the problem was when a path was formed to find the javascript files to load in the url would be 123.mydoamin.com/catalog/[path to javascript] missing the ~username part. This turned out to also be a problem with image handler 2 and the images wouldn't show up because the path to the url was missing the ~username bit. My fix was really just a hack, I went into the files that were starting the path with just DIR_WS_CATALOG and appended /~username before it. Example, from htmlarea.php line 19:
This solved the problems because then the resources could be located. I hope that this can help anyone else that may be having similar problems.Code://define URL and LANG parameters
echo '<script type="text/javascript">' .BR;
echo ' _editor_url = "' . '/~username' .DIR_WS_CATALOG . 'editors/htmlarea/";' .BR;
echo ' _editor_lang = "'.strtolower($_SESSION['languages_code']).'";' .BR;
echo '</script>' .BR;