Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Nov 2005
    Posts
    20
    Plugin Contributions
    0

    Default HTMLArea undefined after move to new server

    Hi All,

    Version = 1.2.7
    DB Patch Level = 1.2.7

    After migrating my zencart from a test platfrom to the live server I can not edit anything using the HTML editor, and get the following error on the pages "HTMLArea undefined"

    The test site was on http://test.mydomain.com and I have moved to the live system where the shop now resides on http://www.otherdomain.com/Shop.

    I made the relevant changes to the config.php files in includes and admin/includes as per a thread I found, and everything else seems to work perfectly.

    Reading through some threads relating to the above error message, they seem to indicate its a path issue, but I cant for the life of me understand what else and where to change.

    If anyone can help I would be really grateful.

    Thanks

    Sab

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HTMLArea undefined after move to new server

    Did you reset the directory, subdirectories and files to 777 in:
    /includes/languages/english/html_includes
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2005
    Posts
    20
    Plugin Contributions
    0

    Default Re: HTMLArea undefined after move to new server

    hi Linda,

    Thanks for your response.

    Yes all the relevant folder/page permissins were made too.

    Do you not think its a path issue ??

    Sab

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HTMLArea undefined after move to new server

    Are you able to edit a Product with HTMLarea turned on?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Nov 2005
    Posts
    20
    Plugin Contributions
    0

    Default Re: HTMLArea undefined after move to new server

    Hi,

    Yes, all the pages can be edited, and saved. But I only get the html code, I am unable to view the toolbar to cahnge font, colour etc.

    Sab

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HTMLArea undefined after move to new server

    Click the SourceForge link at the bottom of the page ...

    Click on Files ... and download the version of Zen Cart that you are running ...

    Delete the /htmlarea from your site and reload a clean copy ...

    Does this help?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Nov 2005
    Posts
    20
    Plugin Contributions
    0

    Default Re: HTMLArea undefined after move to new server

    No luck.....:-(

    When I view source on the pages with the error, I see the following:


    </script>
    <script type="text/javascript">
    _editor_url = "//htmlarea/";
    _editor_lang = "en";
    </script>
    <script type="text/javascript" src="//htmlarea/htmlarea.js"></script>


    Should this not be (src="/htmlarea/htmlarea.js") with a single slash rather than double?

    Sab

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HTMLArea undefined after move to new server

    Could you post, from the server, the file:
    /admin/includes/configure.php

    without your username and password?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Nov 2005
    Posts
    20
    Plugin Contributions
    0

    Default Re: HTMLArea undefined after move to new server

    Hi,

    as requested.
    --------------------------------------------------------------------------------------------
    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    define('HTTP_SERVER', 'http://www.williamandjacks.co.uk/Shop');
    // Secure webserver: eg, https://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://www.williamandjacks.co.uk/Shop'); // eg, https://localhost
    define('HTTP_CATALOG_SERVER', 'http://www.williamandjacks.co.uk/Shop');
    define('HTTPS_CATALOG_SERVER', 'https://www.williamandjacks.co.uk/Shop');

    // secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '//');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '//');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/williamnjacks/N4H6R3Y2/htdocs/Shop/admin/');
    define('DIR_FS_CATALOG', '/home/williamnjacks/N4H6R3Y2/htdocs/Shop/');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_CATALOG_BLOCKS', DIR_FS_CATALOG . 'includes/blocks/');
    define('DIR_FS_CATALOG_BOXES', DIR_FS_CATALOG . 'includes/boxes/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_FILE_MANAGER_ROOT', '/home/williamnjacks/N4H6R3Y2/htdocs/Shop/'); // path to starting directory of the file manager

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', '***HAS BEEN REMOVED***'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', '***HAS BEEN REMOVED***');
    define('DB_SERVER_PASSWORD', '***HAS BEEN REMOVED***');
    define('DB_DATABASE', '***HAS BEEN REMOVED***');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/williamnjacks/N4H6R3Y2/htdocs/Shop/cache');

    ?>

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

    Thanks

    Sab

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HTMLArea undefined after move to new server

    That looks totally goobered up ...

    Each line that starts with: define

    needs to be on its own line

    Each line that starts with: //

    needs to be on its own line

    This is messed up with things not on separate lines and the wrong settings:
    PHP Code:
    define('HTTP_SERVER''http://www.williamandjacks.co.uk/Shop');
    // Secure webserver: eg, https://localhost - should not be empty for productive servers
    define('HTTPS_SERVER''https://www.williamandjacks.co.uk/Shop'); // eg, https://localhost
    define('HTTP_CATALOG_SERVER''http://www.williamandjacks.co.uk/Shop');
    define('HTTPS_CATALOG_SERVER''https://www.williamandjacks.co.uk/Shop'); 
    Should be:
    PHP Code:
    define('HTTP_SERVER''http://www.williamandjacks.co.uk');
    define('HTTPS_SERVER''https://www.williamandjacks.co.uk'); 
    define('HTTP_CATALOG_SERVER''http://www.williamandjacks.co.uk');
    define('HTTPS_CATALOG_SERVER''https://www.williamandjacks.co.uk'); 
    This section here is a problem:
    PHP Code:
    define('DIR_WS_ADMIN''/admin/');
    define('DIR_WS_CATALOG''//');
    define('DIR_WS_HTTPS_ADMIN''/admin/');
    define('DIR_WS_HTTPS_CATALOG''//'); 
    Should be:
    PHP Code:
    define('DIR_WS_ADMIN''/Shop/admin/');
    define('DIR_WS_CATALOG''/Shop/');
    define('DIR_WS_HTTPS_ADMIN''/Shop/admin/');
    define('DIR_WS_HTTPS_CATALOG''/Shop/'); 
    NOTE: calling your directory Shop vs shop is not a good idea on the internet ... no one will remember to use Shop vs shop ...

    You should change that at some point

    This looks like a very old configure.php file from a very old version of Zen Cart ...

    You will want to look at the new version of the
    /includes/dist-configure.php

    when you upgrade or if you already have ...

    Note: your catalog should also probably be cleaned up as well for the file:
    /includes/configure.php

    with similar changes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Broken EzPages after move to new server
    By slbergh in forum General Questions
    Replies: 13
    Last Post: 2 Sep 2011, 01:37 PM
  2. Problem after New Server Move
    By wezza in forum General Questions
    Replies: 1
    Last Post: 28 Dec 2009, 09:27 AM
  3. admin error after move to a new server
    By morga in forum General Questions
    Replies: 2
    Last Post: 3 Jun 2009, 10:38 PM
  4. Problem after cart move to new server.
    By ragemoto in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 30 Mar 2007, 06:42 PM

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