TraceyLB Posted August 17, 2005 Share Posted August 17, 2005 Ok, I am working on my new site and new database. I have a copy of the old one I am working from for the new one. I just want to edit some stuff and make sure I have things ok. Now, the problem all of a sudden is that I'm adding products into their catagories and after I put the information in and hit the preview button. I should be able to preview the picture and the information. Wrong! I get a red x and the information. I have tried to fix the pictures thinking that was it. Have I over looked something very simple? I have no clue. Still searching for the answer here. Tracey Link to comment Share on other sites More sharing options...
♥Vger Posted August 17, 2005 Share Posted August 17, 2005 Make sure that the configure.php files (both of them) have the correct addresses/paths. Make sure that file_upload is enabled in php.ini Vger Link to comment Share on other sites More sharing options...
TraceyLB Posted August 18, 2005 Author Share Posted August 18, 2005 Ok, now I am lost. I checked the one configure file and it seemed right. Where is the other one? Also, what is the file_upload? I also checked permissions and they were right. Any help would be appreciated! Tracey Link to comment Share on other sites More sharing options...
♥Vger Posted August 18, 2005 Share Posted August 18, 2005 catalog/includes/configure.php catalog/admin/includes/configure.php To find out if File Upload is enabled go to your osC admin panel, go to Tools --> Server Info and do a page search for 'file upload'. Vger Link to comment Share on other sites More sharing options...
TraceyLB Posted August 18, 2005 Author Share Posted August 18, 2005 Ok, file uploads is on. Now does the / have to be infront of the word images in the configure files or no? So sorry, I'm getting totally lost here. Tracey Link to comment Share on other sites More sharing options...
AlanR Posted August 18, 2005 Share Posted August 18, 2005 Ok, file uploads is on. Now does the / have to be infront of the word images in the configure files or no? So sorry, I'm getting totally lost here. Tracey <{POST_SNAPBACK}> No, 'images/' is concantinated to the end of the string '/catalog/' which contains a final slash. Why don't you post the file? Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
TraceyLB Posted August 18, 2005 Author Share Posted August 18, 2005 Ok, now this is the admin/includes/ config file: // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://temptingtreasures.net'); 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', '/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', 'localhost'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '******'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> And this is the includes/config file: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://temptingtreasures.net'); define('HTTPS_SERVER', 'https://temptingtreasures.net'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shop/'); 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', $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_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/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '******'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Any help I would really appreciate. Tracey Link to comment Share on other sites More sharing options...
AlanR Posted August 18, 2005 Share Posted August 18, 2005 Oops... I should have reminded you not to post the database user / password You should change the password in your control panel now. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
AlanR Posted August 18, 2005 Share Posted August 18, 2005 Give me a minute and I'll post the changes. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
AlanR Posted August 18, 2005 Share Posted August 18, 2005 Admin: Only one change, admin has to know where the catalog files are. // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://temptingtreasures.net'); define('HTTP_CATALOG_SERVER', 'http://temptingtreasures.net'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); 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/'); Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
AlanR Posted August 18, 2005 Share Posted August 18, 2005 You seem to be missing some lines in the catalog one, specifically the cookie data. Where is that file from? Here's what I'd do: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://temptingtreasures.net'); define('HTTPS_SERVER', ''); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'temptingtreasures.net'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
TraceyLB Posted August 18, 2005 Author Share Posted August 18, 2005 So basically just add what is in red? I had seen that and I was wondering about it. I'll give it a try and see what happens. Thanks, Tracey Link to comment Share on other sites More sharing options...
TraceyLB Posted August 18, 2005 Author Share Posted August 18, 2005 Ok, added what was in red and still no picture showing up. What else could it possible be? I've deleted the store and all numerous times thinking it was something like that. I'm lost! Tracey Link to comment Share on other sites More sharing options...
♥Vger Posted August 18, 2005 Share Posted August 18, 2005 The config file sshould be correct by now. The images folder does need full permissions (777), but if it has those permissions it should work. Just one final thing to check - look in both includes/local/ folders to see if there are any alternative configure.php files. If you find any - rename them. If all that's done and your 'images' are still not working then get onto your hosting company about it - they may have the wrong User permissions set. Vger Link to comment Share on other sites More sharing options...
TraceyLB Posted August 18, 2005 Author Share Posted August 18, 2005 Well, permissions are right. I emailed the hosting place so I could wait in the meantime. I went and fixed what was in the red and I got this error: Warning: mysql_connect(): Access denied for user: 'temptin' (Using password: YES) in /home/tempting/public_html/shop/admin/includes/functions/database.php on line 19 Unable to connect to database server! And I am looking for the includes/local folders and there are no other config files. I did see an extra one somewhere but I think it was called something else. Now I know I just want to cry right now, I have people waiting for the store to get back up. I honestly think it's not the hosting because it's a reseller account I have and I've been working on two other stores and they work fine. I"m totally lost. Tracey Link to comment Share on other sites More sharing options...
trevb54 Posted August 18, 2005 Share Posted August 18, 2005 Ok, added what was in red and still no picture showing up. What else could it possible be? I've deleted the store and all numerous times thinking it was something like that. I'm lost! Tracey <{POST_SNAPBACK}> Try changing the following from define('HTTP_SERVER', 'http://temptingtreasures.net'); define('HTTPS_SERVER', ''); To define('HTTP_SERVER', 'http://temptingtreasures.net'); define('HTTPS_SERVER', 'http://temptingtreasures.net'); Notice that the "s" has been dropped from the define('HTTPS_SERVER', 'http://temptingtreasures.net'); that worked for me and has just worked for another user. Trev Link to comment Share on other sites More sharing options...
♥Vger Posted August 19, 2005 Share Posted August 19, 2005 Access denied for user: 'temptin' (Using password: YES) should say: Access denied for user: 'temptin'@'localhost' (Using password: YES) Vger Link to comment Share on other sites More sharing options...
TraceyLB Posted August 19, 2005 Author Share Posted August 19, 2005 I'll have to try that s thing. I"m sorta waiting to here what the web hosting company has to say. As for as the local host thing, when I posted it, I deleted that part and put that up. I'll have to try it again and see what happens. Tracey Link to comment Share on other sites More sharing options...
AlanR Posted August 19, 2005 Share Posted August 19, 2005 Drop this teeny file in your root folder. You can name it docroot.php <?php echo 'Document Root: ' . getenv('DOCUMENT_ROOT'); ?> The thing is... You said you added images but I don't see anything here that you would have added. http://www.temptingtreasures.net/shop/images/ Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
trevb54 Posted August 19, 2005 Share Posted August 19, 2005 I'll have to try that s thing.? I"m sorta waiting to here what the web hosting company has to say.? As for as the local host thing, when I posted it, I deleted that part and put that up. I'll have to try it again and see what happens. Tracey <{POST_SNAPBACK}> Alan, who also has responded to your post, gave me the following message and it went well after that. "So the server is for some reason choosing the https domain and path. The easy fix is to set define('HTTPS_SERVER', 'http://www.yourdoman.com'); and define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); If you want to investigate the reason for the server's doing this see: http://www.oscommerce.com/forums/index.php?sho...&p=672623" So the server could be the problem but this fixed it for me. I tried contacting the server but couldn't wait. Trev Link to comment Share on other sites More sharing options...
TraceyLB Posted August 19, 2005 Author Share Posted August 19, 2005 Alan, I did add an image. Why should I go and list a bunch of images when the first one won't show up? I don't think osCommerce has an image named mermaid.gif. I'll have to check things out again. I did look at the bug list for the new verison of osCommerce and that is a bug that they have to work out. I'll have to check things out and see when happens. Tracey Link to comment Share on other sites More sharing options...
TraceyLB Posted August 19, 2005 Author Share Posted August 19, 2005 I forgot to ask... what file is it that I edit this in? Tracey Link to comment Share on other sites More sharing options...
AlanR Posted August 19, 2005 Share Posted August 19, 2005 I forgot to ask... what file is it that I edit this in? Tracey <{POST_SNAPBACK}> If if mean the line I asked for it's a new file. You can create it in your editor, let us know when it's there and where. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
TraceyLB Posted August 19, 2005 Author Share Posted August 19, 2005 It's there. www.temptingtreasures.net/shop/docroot.php Tracey Link to comment Share on other sites More sharing options...
AlanR Posted August 19, 2005 Share Posted August 19, 2005 It's there. www.temptingtreasures.net/shop/docroot.php Tracey <{POST_SNAPBACK}> OK, I'm not making any promises but change this line in catalog/includes/configure.php define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); to: define('DIR_FS_CATALOG', '/home/tempting/public_html/shop/'); Sometimes servers don't respond to the query in the original line. (edit) make the same change in the admin one as well. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.