Results 1 to 4 of 4
  1. #1

    Default Blank Catalogue; but Working Admin

    I have been successfully re-installed ZC a couple times in the past (although some common problems arised (due to user's fault) and solved), however, this time I am facing a problem I have yet found a solution.

    Here is the outline of the senario:

    -Had a working zc1.26d running
    -decided to move a new host
    -followed the usual way as descibed here: https://www.zen-cart.com/tutorials/i...hp?article=100
    -pulled out the configure.php from both /includes and /admin/includes
    -modified the configure.php for my current database
    -removed the installed zc1.26d from the new server, and uploaded the working site from the OLD server to the NEW server. Sticked back the modified configure.php files in the new server.
    -ran fix_cache_key.php
    -BUT Catalogue loads blanks.
    -STRANGELY, admin is working perfectly fine.

    -rechecked with this : https://www.zen-cart.com/tutorials/index.php?article=82
    -the configure.php seems OK.


    Then I did something to try and determine the problem. That was, I created a subdirectory called "teststore" under the root, and install another copy of the same version zc into this teststore .... after the installation, same thing happened: Catalogue loads blanks, just blank ....... but admin is working!!


    Here is my site:
    http://www.pepamilk.com/
    (note: sometimes it loads,.... but if you just click any links, blank page again)

    here is my working admin:
    http://www.pepamilk.com/zen_admin/


    here is the freshly installed zc:
    http://www.pepamilk.com/teststore/
    (not working of course... just blank)

    here is the working admin for the test site:
    http://www.pepamilk.com/teststore/admin/login.php



    here is the /includes/configure of my current (not loading) catalogue:

    **************************************************
    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    define('HTTP_SERVER', 'http://www.pepamilk.com');
    // Secure webserver: eg, https://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://www.pepamilk.com');
    // 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_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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
    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', '/var/www/vhosts/pepamilk.com/httpdocs/');

    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'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', 'myuser');
    define('DB_SERVER_PASSWORD', 'mypw');
    define('DB_DATABASE', 'mydatabase');
    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', 'database');
    define('DIR_FS_SQL_CACHE', '/var/www/vhosts/pepamilk.com/httpdocs/cache');

    ***********************************************************


    Any thoughts on that?
    Much thanks !!


    pepamilk

  2. #2

    Default Re: Blank Catalogue; but Working Admin

    Is that a way I can try to narrow down the problem?

    The strange thing is even a fresh install of the zencart doesn't work ......


    much thanks!

  3. #3
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Blank Catalogue; but Working Admin

    I may be out in left field, but I still have to ask... for example "define('DIR_FS_CATALOG', '/var/www/vhosts/pepamilk.com/httpdocs/');"

    `Do you really have "vhosts" in your actual directory or did you mistakenly include that from the directory example? Also, are you positive your two configure files are relative to each other?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Blank Catalogue; but Working Admin

    It's not much fun, but the problem could be almost "anywhere" ... it could be an incomplete file upload, a syntax error in a customization, a logic error due to mismatched braces, a typo in a language file or missing \ before a ' mark, a missing ; somewhere, etc.

    This is where I would start if I had to tackle it:
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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. Replies: 6
    Last Post: 16 Feb 2015, 07:16 PM
  2. Blank screen but admin working.
    By glamourdolleyes in forum General Questions
    Replies: 17
    Last Post: 13 Oct 2014, 04:06 PM
  3. Site Homepage is Blank but Admin is working
    By ilavarasijohnson in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 13 May 2011, 06:15 PM
  4. ICECAT catalogue integration - working but need help with resizing iframes
    By pcspot in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Nov 2009, 11:49 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