Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Seattle, WA
    Posts
    5
    Plugin Contributions
    0

    Default Remote Viewing of Page Background and Layout is Wrong

    My install of ZenCart has so far gone well, yet I am experiencing a strange problem. Whe I view my site on the sever (it is a local server that will host the site when complete) the background and layout appear perfect, but when I access the site externally or from a workstation on my network they are all wrong. I've searched the ZenCart help pages and Wiki for anything like this, but so far have found nothing similar. Has anyone any ideas? A screen shot of the bad page is below:
    -o0o-
    Ed Mead
    Prison Art Project
    PO Box 69586
    Seattle, WA 98168-9586
    Phone: 206-271-5003
    [email protected]http://www.prisonart.org

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remote Viewing of Page Background and Layout is Wrong

    What do you have set for HTTP_SERVER in your site's /includes/configure.php file?

    That address needs to be understood by all computers who attempt to access it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2008
    Location
    Seattle, WA
    Posts
    5
    Plugin Contributions
    0

    Default Re: Remote Viewing of Page Background and Layout is Wrong

    Here is the configure.php file:
    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://localhost:8003');
    define('HTTPS_SERVER', 'https://localhost:8003');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', '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_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * 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_CATALOG', 'F:/WebSites/PrisonArtStore/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'root');
    define('DB_SERVER_PASSWORD', 'Justice');
    define('DB_DATABASE', 'prisonart');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // 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', 'F:/WebSites/PrisonArtStore/cache');

    // EOF
    -o0o-
    Ed Mead
    Prison Art Project
    PO Box 69586
    Seattle, WA 98168-9586
    Phone: 206-271-5003
    [email protected]http://www.prisonart.org

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remote Viewing of Page Background and Layout is Wrong

    Quote Originally Posted by SubVersion View Post
    define('HTTP_SERVER', 'http://localhost:8003');
    define('HTTPS_SERVER', 'https://localhost:8003');
    Therein lies your problem. It's a networking problem.

    "localhost" refers to the computer you're sitting at, the one your browser is running on.

    If you change localhost to the server's IP address (or to a domain name) understood by all the computers in your private network and the public internet, you shouldn't have any problems seeing it properly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2008
    Location
    Seattle, WA
    Posts
    5
    Plugin Contributions
    0

    Default Re: Remote Viewing of Page Background and Layout is Wrong

    That did it. Thanks so much. You were a great help. Now, how can I access my admin site remotely?
    -o0o-
    Ed Mead
    Prison Art Project
    PO Box 69586
    Seattle, WA 98168-9586
    Phone: 206-271-5003
    [email protected]http://www.prisonart.org

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remote Viewing of Page Background and Layout is Wrong

    Quote Originally Posted by SubVersion View Post
    Now, how can I access my admin site remotely?
    Same concept.
    If your server has a domain name tied to it that you can access externally, then you can admin it from an external location.
    If not, then you can't.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Page layout wrong
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jul 2010, 01:42 PM
  2. Page layout different on remote computer
    By Zombie63 in forum Installing on a Linux/Unix Server
    Replies: 22
    Last Post: 1 Feb 2010, 06:35 PM
  3. Main Page Layout and Fonts all wrong - HELP
    By dochsa in forum Basic Configuration
    Replies: 5
    Last Post: 17 Dec 2008, 08:27 PM
  4. Remote Viewing of Page Background and Layout is Wrong
    By SubVersion in forum General Questions
    Replies: 1
    Last Post: 24 Mar 2008, 05:22 AM
  5. Error in page viewing(layout) Help Please
    By sizz in forum General Questions
    Replies: 1
    Last Post: 9 Mar 2007, 11:48 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