Zen Cart Logo
Forums / Customization from the Admin / Admin Area - No Css / No Graphics

Admin Area - No Css / No Graphics

Locked

Views: 3,124

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
8 Jul 2008, 8:15 PM
#1
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Admin Area - No Css / No Graphics

My store works great, but the admin area is all plain text and has no graphics, no color, and its all aligned down the left side of the page.

What is the first steps to fixing this? What files do people need to see?

8 Jul 2008, 8:49 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Looks like you're missing some core files. Easiest way to fix this is to FTP the admin folder back to your remote host. If you use a good FTP program, it will prompt you to either overwrite existing files, or skip them.

Choose to skip them first.

If the problem still persists, you'll probably have to FTP again - this time choosing to overwrite.

Make sure you FTP the files properly, selecting BINARY or ASCII mode when appropriate.

9 Jul 2008, 7:48 PM
#3
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

I changed servers, and everything works but the CSS in the admin area.

I have re-uploaded every file... is there a setting I need to check somewhere?

10 Jul 2008, 1:13 AM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Go to your admin area, then right-click in the screen - select View Source to see the generated HTML.

In the headers you'll see references to the css files. (If not, then you've some corrupted code somewhere) Check the stated PATHS to the css folders, and then op-en up the folders to see if the css files are where the path says they should be.

10 Jul 2008, 2:10 PM
#5
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Checked all paths & files. Everything is correct. I re-uploaded working versions of all files.. I don't know what else to do.

I just moved servers, is there a setting that could be blocking it?

10 Jul 2008, 3:47 PM
#6
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Looking for any help here... nothing seems to work..

11 Jul 2008, 1:09 PM
#7
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

I still have no CSS for the admin pages. Can anybody help?

11 Jul 2008, 1:24 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

It was mentioned that you should View Source for any Admin page and check the Headers.

Do you see this:

<link href="includes/stylesheet.css" rel="stylesheet" type="text/css" />
11 Jul 2008, 1:54 PM
#9
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Here is the source code.

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Cheap Stair Parts - Iron and Wood Stair Products. Iron Balusters, Wood hand rail, Accessories and more.</title>
<script language="JavaScript" src="includes/menu.js" type="text/JavaScript"></script>
<link href="includes/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS" />
<script type="text/javascript">
  <!--
  function init()
  {
    cssjsmenu('navbar');
    if (document.getElementById)
    {
      var kill = document.getElementById('hoverJS');
      kill.disabled = true;
    }
  }
  // -->
</script>
</head>
11 Jul 2008, 2:16 PM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

OK, the link is there. Have you also confirmed the file "admin/includes/stylesheet.css" is there?

And, using your FTP program, can you confirm the file in your Hosting account is approx. the same size as the original on your computer; presuming you manaully uploaded & installed Zen Cart.

11 Jul 2008, 4:32 PM
#11
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Style sheets are there.

Sizes look accurate.

Im stumped.

11 Jul 2008, 8:06 PM
#12
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

Zen Cart 1.3.5
PHP 4.0

Here is the code for my admin config file

<?php
//
/**
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


// Define the webserver and path parameters
  // Main webserver: eg, http://localhost - should not be empty for productive servers
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   */
  define('HTTP_SERVER', 'http://www.cheapstairparts.com');
  define('HTTPS_SERVER', 'https://www.cheapstairparts.com');
  define('HTTP_CATALOG_SERVER', 'http://www.cheapstairparts.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.cheapstairparts.com');

  // Use 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', '/ZenCart/admin/');
  define('DIR_WS_CATALOG', '/ZenCart/');
  define('DIR_WS_HTTPS_ADMIN', '/ZenCart/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/ZenCart/');

  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/');

// * 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/dlovin/public_html/ZenCart/admin/');
  define('DIR_FS_CATALOG', '/home/dlovin/public_html/ZenCart/');

  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_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'xxx');
  define('DB_SERVER_PASSWORD', 'xxx');
  define('DB_DATABASE', 'xxx');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // 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', '/home/dlovin/public_html/ZenCart/cache');

?>

I am going to assume all of that code is correct because I am able to use my admin area, but there is no .css

12 Jul 2008, 1:56 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Admin Area - No Css / No Graphics

So, if you go to http://www.cheapstairparts.com/ZenCart/admin/includes/stylesheet.css you get > 403 Forbidden

You don't have permission to access /ZenCart/admin/includes/stylesheet.css on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Have you looked at this FAQ? https://www.zen-cart.com/tutorials/index.php?article=235

14 Jul 2008, 7:20 PM
#14
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Admin Area - No Css / No Graphics

My hosting company ended up fixing it really fast. They said it was a permission error.

I would have never gotten to this point if you didn't try to pull up my .css file directly and gotten the 404 error.

Thank you so much for your time to help me!

  • Douglas