Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 68
  1. #31
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: HTMLarea invalid

    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.

  2. #32
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: HTMLarea invalid

    Quote Originally Posted by robertb66 View Post
    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'm also in the main level - so that may be the root (ha ha) of the problem.

  3. #33
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: HTMLarea invalid

    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.

  4. #34
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: HTMLarea invalid

    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...

  5. #35
    Join Date
    May 2006
    Location
    Japan
    Posts
    326
    Plugin Contributions
    1

    Default Re: HTMLarea invalid

    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..."
    Skin Evolution.
    Lynda.com,its a great place to learn.
    Camelot Hosting,it's where my site calls home!

    E-Start your Zen-Cart,KH is the Man, Thanks for all the hard work!

  6. #36
    Join Date
    May 2006
    Posts
    37
    Plugin Contributions
    0

    Default Re: HTMLarea invalid

    Quote Originally Posted by robertb66 View Post
    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.
    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!

  7. #37
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: HTMLarea invalid - htaccess

    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.

    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]
    Hope this helps someone else...

  8. #38
    Join Date
    May 2006
    Location
    Japan
    Posts
    326
    Plugin Contributions
    1

    Default Re: HTMLarea invalid - htaccess

    Also people could also try the other html modules that are up and see if they work.
    Skin Evolution.
    Lynda.com,its a great place to learn.
    Camelot Hosting,it's where my site calls home!

    E-Start your Zen-Cart,KH is the Man, Thanks for all the hard work!

  9. #39
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: HTMLarea invalid - htaccess

    Quote Originally Posted by paul3648 View Post
    ...so including the following lines in my /admin/.htaccess file cleared things up.
    It turns out I needed the htaccess lines in the editor folder too.

  10. #40
    Join Date
    May 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: HTMLarea invalid

    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:

    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;
    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.

 

 
Page 4 of 7 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. v139f 10426 Invalid Data - Item total is invalid
    By paddyc in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2015, 01:16 AM
  2. v139h HTMLarea
    By CSPEN in forum General Questions
    Replies: 5
    Last Post: 7 Apr 2012, 08:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR