Guest Posted April 3, 2008 Share Posted April 3, 2008 hello all .. installed the osCommerce without too much difficulty so I thought. All went well and install looked good until I tried to go to catalog or admin .... first things first ... admin page .. give me error as if get double link in url field: http://www.griffinator.ca/shop/admin/://ww...f4872bd0cc22013 looked into further on fourms and documentation .. did the chmod for the admin/includes/configure.php to 444 and also to /includes/confirgure.php to 444 .... still issue ... even if I try to go to admin directly with link: www.griffinator.ca/shop/admin/login.php?osCAdminID=8ac7d222f8eba1ab7f4872bd0cc22013 I can get to admin log in but when I try and log in I get redirected to error page ... due again to double linking in url ... http://www.griffinator.ca/shop/admin/://ww...f4872bd0cc22013 So .. any advice would be greatly appreciated .... in the meantime I am looking into the Catalog problem ... when I go to my shop ... http://www.griffinator.ca/shop/ ... I do not get any graphics .. looking into the Stylesheet issues according to documentation ... having trouble understanding changing the css sheet .. using Dreamweaver ... not making anything better .... Thanks in advance for the comments/help ! Mel Link to comment Share on other sites More sharing options...
germ Posted April 3, 2008 Share Posted April 3, 2008 Your /shop/includes/configure.php file needs altered. Post it between CODE tags if you can. BE SURE TO LEAVE OUT THE LINES AT THE BOTTOM CONTAINING PERSONAL DATA ABOUT YOUR DB ACCESS (USERNAME/PASSWORD, ETC). If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 Thanks ... here is what is in the file ... <?php define('HTTP_SERVER', '://'); define('HTTPS_SERVER', '://'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', 'www.griffinator.ca/shop/'); define('HTTPS_COOKIE_PATH', 'www.griffinator.ca/shop/'); define('DIR_WS_HTTP_CATALOG', 'www.griffinator.ca/shop/'); define('DIR_WS_HTTPS_CATALOG', 'www.griffinator.ca/shop/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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', 'pub/'); define('DIR_FS_CATALOG', '//nawinfs02/home/users/web/b622/rh.griffinator/shop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'griffinator.readyhostingmysql.com'); define('DB_SERVER_USERNAME', 'XXXXX'); define('DB_SERVER_PASSWORD', 'XXXXX'); define('DB_DATABASE', 'XXXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> MEL Link to comment Share on other sites More sharing options...
germ Posted April 3, 2008 Share Posted April 3, 2008 MAKE A BACKUP OF WHAT YOU HAVE NOW. Replace these lines: define('HTTP_SERVER', '://'); define('HTTPS_SERVER', '://'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', 'www.griffinator.ca/shop/'); define('HTTPS_COOKIE_PATH', 'www.griffinator.ca/shop/'); define('DIR_WS_HTTP_CATALOG', 'www.griffinator.ca/shop/'); define('DIR_WS_HTTPS_CATALOG', 'www.griffinator.ca/shop/'); With these lines: define('HTTP_SERVER', 'http://www.griffinator.ca'); define('HTTPS_SERVER', 'http://www.griffinator.ca'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', '.griffinator.ca'); define('HTTPS_COOKIE_DOMAIN', '.griffinator.ca'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 germ ... thanks for taking the time to look at the code ... I made the backup and carefully correction .. unfortunatley still same issue ... any further insight ? Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 ...hmm ... actually .. changes has had some effect as I now notice my shop page ... http://www.griffinator.ca/shop/ has graphics and looks like a website ... lol ... shall I assume there is a similar issue in the admin file configure.php ... will look into that .. always up to backup and play around with some code Link to comment Share on other sites More sharing options...
germ Posted April 3, 2008 Share Posted April 3, 2008 Any work on the admin would need to be done in the configure file in the /includes folder in your admin. Post it (without the DB data) if you want. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 germ ... looks like the I am having trouble with the admin access still .. here is some code from /shop/admin/includes/configure.pho here I assume issue is at ... can you be of assistance ? Any help would be great ! THANKS ! MEL <?php /* $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . '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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); 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_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> Link to comment Share on other sites More sharing options...
germ Posted April 3, 2008 Share Posted April 3, 2008 Let's start here. Change these lines: define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('DIR_WS_ADMIN', '/admin/'); To define('HTTP_SERVER', 'http://www.griffinator.ca'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.griffinator.ca'); define('HTTPS_CATALOG_SERVER', 'http://www.griffinator.ca'); define('DIR_WS_ADMIN', '/shop/admin/'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 first part done ... thanks ... next part me thinks has to do with this .. / define our database connection define('DB_SERVER', 'griffinator.readyhostingmysql.com'); define('DB_SERVER_USERNAME', 'XXX'); define('DB_SERVER_PASSWORD', 'XXXX'); define('DB_DATABASE', 'XXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); where the DB_SERVER is what is according to hosting server ... the XXX would be username, password, database name ... am I getting somewhere ? Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 thinking out loud ... define('DIR_WS_CATALOG', '/catalog/'); should be define('DIR_WS_CATALOG', '/shop/'); ??? since I renamed local folder from catalog to shop with the installation ... Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 germ ... thinking and making headway ,,, comparing confirgure.php files ... I can now log in at admin page ... changed code as follows ... with your help .. and my 'playing' define('HTTP_SERVER', 'http://www.griffinator.ca'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.griffinator.ca'); define('HTTPS_CATALOG_SERVER', 'http://www.griffinator.ca'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/shop/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/shop/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . '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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); 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_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'griffinator.readyhostingmysql.com'); define('DB_SERVER_USERNAME', 'XXXXX'); define('DB_SERVER_PASSWORD', 'XXXXX'); define('DB_DATABASE', 'XXXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); A big thanks ... getting late here so I will 'play' around some in the admin panel tomorrow to change the look of the site Let me know if any of the code above will cause me problems down the road ... which I would think I will eventually find out ... lol regards, MEL Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.