condor-9 Posted May 18, 2003 Share Posted May 18, 2003 Hi there I have just installed OsCommerce webshop, and this is a nice piece of work.. I just have problems getting some icons to show up, if i right click on them where they use to be, and looks in the propeties I can see that the adress of the icons is wrong.. this is the link: "http://www.trainweb.dk/var/www/html/shop/catalog/includes/languages/english/images/icon.gif" I think the link must be like this: http://www.trainweb.dk/shop/catalog/includ...images/icon.gif but i dont know how to get the link like this. I am 99% sure that the config files are correctly configured, I can post them if needed. Give me a hint if you need some more information, and i will find it.. Hope to get some help. Best Regard Thomas H. Link to comment Share on other sites More sharing options...
rseigel Posted May 18, 2003 Share Posted May 18, 2003 Your config files are not correctly configured. Post them here and someone will spot the problem. Link to comment Share on other sites More sharing options...
condor-9 Posted May 18, 2003 Author Share Posted May 18, 2003 ok, here they are. Admin: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.trainweb.dk'); // eg, http://localhost or - https://localhost should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.trainweb.dk'); define('HTTPS_CATALOG_SERVER', 'https://www.trainweb.dk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', ''); // where the pages are located on the server define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/shop/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/shop/catalog/'); // absolute path required 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', '/var/www/html/shop/admin/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', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'catalog'); define('DB_SERVER_PASSWORD', 'catalog'); define('DB_DATABASE', 'catalog'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Catalog: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.trainweb.dk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.trainweb.dk'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', '/var/www/html/shop/catalog/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_FS_DOCUMENT_ROOT', ''); define('DIR_FS_CATALOG', '/var/www/html/shop/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'catalog'); define('DB_SERVER_PASSWORD', 'catalog'); define('DB_DATABASE', 'catalog'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
condor-9 Posted May 19, 2003 Author Share Posted May 19, 2003 Is'nt there anyone who can tell me what to do ? Link to comment Share on other sites More sharing options...
Silencer Posted May 19, 2003 Share Posted May 19, 2003 define('DIR_WS_INCLUDES', '/var/www/html/shop/catalog/includes/'); must be define('DIR_WS_INCLUDES', includes/'); [/code] There is always more than one way to do it. And always Keep It Simple, Stupid. Link to comment Share on other sites More sharing options...
condor-9 Posted May 19, 2003 Author Share Posted May 19, 2003 I changed it to what you wrote, and got this message: Fatal error: Failed opening required 'includes/functions/sessions.php' (include_path='/usr/lib/php/pear') in /var/www/html/shop/catalog/includes/application_top.php on line 148 Link to comment Share on other sites More sharing options...
Silencer Posted May 19, 2003 Share Posted May 19, 2003 Sorry for missing that. You have define('DIR_FS_DOCUMENT_ROOT', ''); empty. Try: define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/shop/catalog/'); or something like it. There is always more than one way to do it. And always Keep It Simple, Stupid. Link to comment Share on other sites More sharing options...
condor-9 Posted May 19, 2003 Author Share Posted May 19, 2003 I still get the same errormessage :( Link to comment Share on other sites More sharing options...
condor-9 Posted May 19, 2003 Author Share Posted May 19, 2003 I does'nt understand, i have checked the configfiles through, and i can't find where there failure might be ! Link to comment Share on other sites More sharing options...
condor-9 Posted May 20, 2003 Author Share Posted May 20, 2003 Please, why is'nt there any help here.. Is it a failure in the source code or in my config files. /Thomas H. Link to comment Share on other sites More sharing options...
Ajeh Posted May 20, 2003 Share Posted May 20, 2003 Your configuration files are the issue. This is what I use for the /catalog/includes/configure.php define('HTTP_SERVER', 'http://www.8thoctave.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://secure.sashbox.net/~octave'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/osc_freecall/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); // See Below, causes errors define('DIR_FS_DOCUMENT_ROOT', '/home/octave/public_html'); // 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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Then for the /admin/includes/configure.php define('HTTP_SERVER', 'http://www.8thoctave.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.8thoctave.com'); define('HTTPS_CATALOG_SERVER', 'https://secure.sashbox.net/~octave'); define('ENABLE_SSL_CATALOG', 'true'); // 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_FS_DOCUMENT_ROOT', '/home/octave/public_html'); // 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', '/osc_freecall/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/osc_freecall/'); 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/'); This let's me define the path to my root one time in each file. Then everything else is referenced from there. Link to comment Share on other sites More sharing options...
condor-9 Posted May 20, 2003 Author Share Posted May 20, 2003 It's very wired. I looked your config file through and made the changes so it fit's my configuration. Then i switched to the config of your's, and got the same failure message as earlier. Do you make any changes in the file application_top.php ? I have changed this: // include server parameters require('/var/www/html/shop/catalog/includes/configure.php'); I dont know if this is the problem. Link to comment Share on other sites More sharing options...
Ajeh Posted May 20, 2003 Share Posted May 20, 2003 Nope. I have never changed any other file setting other than the ones in the configure.php files. Check for missing or extra / and be sure your path to your root is right. Link to comment Share on other sites More sharing options...
Silencer Posted May 21, 2003 Share Posted May 21, 2003 Mistake in your confir files - seems you have wrong path set. There is always more than one way to do it. And always Keep It Simple, Stupid. Link to comment Share on other sites More sharing options...
condor-9 Posted May 21, 2003 Author Share Posted May 21, 2003 I dont understand it, if I write the full path in front of /include it works, but still without the icons.. :( Do I delete the full path (in this case: /var/www/html/shop/catalog/) it does'nt work. If you look in the config file, the /include don't refer to any other path's, so when i delete the string i get this failure: Fatal error: Failed opening required 'includes/functions/sessions.php' (include_path='/usr/lib/php/pear') in /var/www/html/shop/catalog/includes/application_top.php on line 148 because i only looks in includes/functions/sessions.php, and it does not know the full path. I think there is a failure in the sourcecode or configfile, because I can't see any other way to config my config file :?: :!: Is im the only one who gets this failuremessage ?? :? :? or the only one with problems getting the icons to show up ? Link to comment Share on other sites More sharing options...
Guest Posted May 22, 2003 Share Posted May 22, 2003 I know this is pretty unlikely to be your problem, but if you cut and pasted Silencer's original answer to you post, he missed a ' He gave you: define('DIR_WS_INCLUDES', includes/'); I should be: define('DIR_WS_INCLUDES', 'includes/'); Tracy Link to comment Share on other sites More sharing options...
badjuju Posted May 23, 2003 Share Posted May 23, 2003 I had a similar problem. To fix it, I changed: define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required If your domain name is http://www.myshop.com and the root folder is /home/www/shop/catalog - change it to: define('DIR_WS_CATALOG', 'http://www.myshop.com/shop/catalog/'); // absolute path required Link to comment Share on other sites More sharing options...
Joe Black Posted May 23, 2003 Share Posted May 23, 2003 Some icons not showing up... try reading what's inside catalog/includes/.htaccess You will find some useful information. Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2003 Share Posted May 23, 2003 bajuju, I did that, but then the link to the catalog in the upper right hand corner of the admin looks like this: http://www.mystore.com/shop/catalog/http:/...m/shop/catalog/ Tracy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.