We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

Forums / Templates, Stylesheets, Page Layout / Remote Viewing of Page Background and Layout is Wrong

Remote Viewing of Page Background and Layout is Wrong

Locked

Started by subversion on 29 Mar 2008, 5:18 PM · Views: 1,201

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
29 Mar 2008, 5:18 PM
#1
subversion avatar

subversion

New Zenner

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

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

29 Mar 2008, 5:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

30 Mar 2008, 12:15 AM
#3
subversion avatar

subversion

New Zenner

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

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

30 Mar 2008, 2:12 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Remote Viewing of Page Background and Layout is Wrong

SubVersion:

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.

31 Mar 2008, 6:08 PM
#5
subversion avatar

subversion

New Zenner

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

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

31 Mar 2008, 8:20 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Remote Viewing of Page Background and Layout is Wrong

SubVersion:

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.