Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Mar 2014
    Location
    Washington state
    Posts
    59
    Plugin Contributions
    0

    Default Error when trying to go to Admin, v154 on PHP 5.2

    New install Windows 8.1 FTP upload ran zc_install php 5.2.* SQL 5.1
    Web site works fine just 404 error when trying to access admin side to set up store.
    I have error log, but there old and related to when I couldn't access the database which hosting company fixed.
    Don't know where to look to check to see it address is correct.

    Nothing has been changed in any files.

    include configure.php
    <?php
    /**
    * @package Configuration Settings circa 1.5.4
    * @copyright Copyright 2003-2014 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2016-01-31 10:38:41
    */


    /*************** 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://thedreamweaver.netau.net');
    define('HTTPS_SERVER', 'https://thedreamweaver.netau.net');

    // 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', '/thedreamweaver/zen-cart-v1.5.4-12302014/');
    define('DIR_WS_HTTPS_CATALOG', '/thedreamweaver/zen-cart-v1.5.4-12302014/');

    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', '/home/a5719373/public_html/thedreamweaver/zen-cart-v1.5.4-12302014/');

    //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
    define('DIR_FS_LOGS', '/home/a5719373/public_html/thedreamweaver/zen-cart-v1.5.4-12302014/logs');

    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_CHARSET', 'utf8');
    define('DB_SERVER', 'mysql7.000########################');
    define('DB_SERVER_USERNAME', 'a5719373_Night');
    define('DB_SERVER_PASSWORD', 'xxxxxxxx');
    define('DB_DATABASE', 'a5719373_Dreams');

    // 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/a5719373/public_html/thedreamweaver/zen-cart-v1.5.4-12302014/cache');

    // EOF


    admin includes configure.php
    <?php
    /**
    * @package Configuration Settings circa 1.5.4
    * @copyright Copyright 2003-2014 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2016-01-31 10:38:41
    */


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

    /**
    * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
    * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
    */
    define('HTTP_SERVER', 'http://thedreamweaver.netau.net');
    define('HTTPS_SERVER', 'https://thedreamweaver.netau.net');
    define('HTTP_CATALOG_SERVER', 'http://thedreamweaver.netau.net');
    define('HTTPS_CATALOG_SERVER', 'https://thedreamweaver.netau.net');

    // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_ADMIN', 'false');

    // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
    define('ENABLE_SSL_CATALOG', 'false');

    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_CATALOG', '/thedreamweaver/zen-cart-v1.5.4-12302014/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_HTTPS_CATALOG', '/thedreamweaver/zen-cart-v1.5.4-12302014/');

    // 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_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)
    define('DIR_FS_ADMIN', preg_replace('#.includes$#', '', realpath(dirname(__FILE__) . '/../') . '/'));
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/a5719373/public_html/thedreamweaver/zen-cart-v1.5.4-12302014/');

    //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
    define('DIR_FS_LOGS', '/home/a5719373/public_html/thedreamweaver/zen-cart-v1.5.4-12302014/logs');

    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', '');
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'mysql7.000########################');
    define('DB_SERVER_USERNAME', 'a5719373_Night');
    define('DB_SERVER_PASSWORD', xxxxxxxxxx');
    define('DB_DATABASE', 'a5719373_Dreams');

    // 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/a5719373/public_html/thedreamweaver/zen-cart-v1.5.4-12302014/cache');


    // Define the webserver and path parameters
    // Main webserver: eg-http://www.your_domain.com -
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.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
    */
    // EOF

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,166
    Plugin Contributions
    7

    Default Re: Error when trying to go to Admin

    Quote Originally Posted by wcsur View Post
    Web site works fine just 404 error when trying to access admin side to set up store.
    Welcome to the wonderful world of GoDaddy ;-)

    Quote Originally Posted by wcsur View Post
    I have error log, but there old
    Delete them. They are of no further use and will make it difficult to see any *new* error logs.

    Quote Originally Posted by wcsur View Post
    Nothing has been changed in any files.
    If it HAD been working, and it now isn't, then *something* has changed.

    Quote Originally Posted by wcsur View Post
    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php.
    OK, so if the front end of the site is working fine, then *this* file is almost certain to contain correct and valid data. Whatever you do, don't mess with it.

    Quote Originally Posted by wcsur View Post
    define('HTTP_SERVER', 'http://thedreamweaver.netau.net');
    .netau.net? Seriously? Was this a freeby? ;-)

    I initally thought that this was possibly the cause of your problem - figuring it should be .net.au
    However it appears like a legitimate domain.

    Quote Originally Posted by wcsur View Post
    WS_CATALOG', '/thedreamweaver/zen-cart-v1.5.4-12302014/');
    Nothing inherently wrong here, but do you *really* want to be 'stuck' with this folder name?

    OK, so I've just reviewed both of the config files, and nothing really stood out as being amiss - the naming conventions are a little weird, but nothing that should cause any problems.

    My next step was to verify that the problem was only with the admin side of things - but I can't even get to the store front. I am being greeted with
    ------------------------------------------------------------------------------
    Your website is up and running!

    Website thedreamweaver.netau.net has been successfully installed on server.
    Please delete file "default.php" from public_html folder and upload your website by using FTP or web based File Manager.
    --------------------------------------------------------------

    What this is telling ME is that you haven't yet deleted the file "default.php", and it is this file that is being displayed. DELETE IT.

    It is pointless doing anything else until this has been done. The site/page won't load while this file exists.

    Next thing I noted was that this 'default.php' file is actually showing you/us the *actual* URL needed to access your website - and it ISN'T what you have defined in either of your configure files.

    In your configure files you have
    WS_CATALOG', '/thedreamweaver/zen-cart-v1.5.4-12302014/');

    According to the data provided by 'default.php' this SHOULD (probably) be
    WS_CATALOG', '/thedreamweaver/thedreamweaver/');

    I think it goes without saying that this being the case, you will need to change all references of ' zen-cart-v1.5.4-12302014' to '/thedreamweaver/

    This is about as far as I'm willing to go at the moment - These may or may not be the only problems (things you need to resolve), but it is a good start. Take care of these and see what happens.

    Cheers
    RodG



    Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,166
    Plugin Contributions
    7

    Default Re: Error when trying to go to Admin

    Update: The correct URL for your Zencart store is actually

    http://thedreamweaver.netau.net/thed....5.4-12302014/

    IOW, it appears that your configure files are correct after all. (your 'old' store led me astray).

    I've no way to determine what the URL for your admin should be, so I can't perform any further testing, but if you enter it correctly (it will be whatever you renamed it too during the install) there isn't any reason that I can see as to why you would be getting the 404 (not found) error.

    Hopefully someone else can be a little more helpful than I have.

    Cheers
    RodG
    Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

  4. #4
    Join Date
    Jul 2012
    Posts
    11,627
    Plugin Contributions
    13

    Default Re: Error when trying to go to Admin

    One thing that came to mind about why there might be a 404 error. When trying to access the admin folder was insensitivity to case sensitivity. If the admin folder name has capital letters in it then unlike the domain name, they must be entered the same. So a folder named TEST is different than a folder named test...

    Basically that the attempted entry of the admin folder is incorrect as compared to the actual admin folder name... Not something that "should" be fully addressed. In a public setting as that would defeat the security by "hiding" the admin foldername...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  5. #5
    Join Date
    Mar 2014
    Location
    Washington state
    Posts
    59
    Plugin Contributions
    0

    Default Re: Error when trying to go to Admin

    This will get you to store front till I can get it changed.
    http://www.thedreamweaver.netau.net/...ver/index.html

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,835
    Plugin Contributions
    9

    Default Re: Error when trying to go to Admin

    This will get you to store front till I can get it changed
    Not a ZenCart storefront???
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2014
    Location
    Washington state
    Posts
    59
    Plugin Contributions
    0

    Default Re: Error when trying to go to Admin

    Can't find default.php Originally, there was 2 thedreamweaver folders and I deleted one. May have deleted the wrong one. Is there an easy way to correct this or would it be simpler to reinstall zencart?

  8. #8
    Join Date
    Mar 2014
    Location
    Washington state
    Posts
    59
    Plugin Contributions
    0

    Default Re: Error when trying to go to Admin

    Not yet it isn't, no working on the files but can't access the admin side.

  9. #9
    Join Date
    Mar 2014
    Location
    Washington state
    Posts
    59
    Plugin Contributions
    0

    Default Re: Error when trying to go to Admin

    Quote Originally Posted by kobra View Post
    Not a ZenCart storefront???
    Not yet it isn't, no working on the files but can't access the admin side.

  10. #10
    Join Date
    Mar 2014
    Location
    Washington state
    Posts
    59
    Plugin Contributions
    0

    Default Re: Error when trying to go to Admin

    This will get you to the zencart store.
    http://thedreamweaver.netau.net/thed...2014/index.php

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 28 Dec 2012, 09:38 PM
  2. v151 options_name_manager.php Error when trying to setup product attributes
    By Pickman in forum Basic Configuration
    Replies: 7
    Last Post: 6 Oct 2012, 11:45 PM
  3. Newbie getting this php error when trying to setup
    By Eddie French in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 23 Nov 2009, 11:39 PM
  4. error when trying to log into admin after changing admin name
    By pcrcanada in forum General Questions
    Replies: 8
    Last Post: 29 Jun 2009, 08:51 PM
  5. Replies: 2
    Last Post: 31 Jul 2007, 02:40 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR