rag Posted May 25, 2003 Posted May 25, 2003 Sorry but I have to ask this again as I'm getting desperate. I've used OSC very succesfully for over a year now and have always put up with my english buttons not showing on my development machine. Just shows the IE red cross with the alt text. Now I have to do a presentation (without access to the net) on the benefits of OSC and I can't get the buttons to show. Can anyone help me please? All product images show fine. Thanks, Rob
AG Posted May 25, 2003 Posted May 25, 2003 rag, Your question sounds a bit vague to even give you a suggestion. I take it the images are in the folder right? If so, and button images aren't showing, it must be the referencing problem. That's the only thing I can think of unless I look at the site etc. Do you have URL? AG
AG Posted May 25, 2003 Posted May 25, 2003 rag, Your question sounds a bit vague to even give you a suggestion. I take it the images are in the folder right? If so, and button images aren't showing, it must be the referencing problem. That's the only thing I can think of unless I look at the site etc. Do you have URL? AG
rag Posted May 25, 2003 Author Posted May 25, 2003 rag, Your question sounds a bit vague to even give you a suggestion. I take it the images are in the folder right? If so, and button images aren't showing, it must be the referencing problem. That's the only thing I can think of unless I look at the site etc. Do you have URL? AG Thanks AG for responding, I'll try to be clearer. The "site" I'm speaking about is my "development" site on my laptop. My "live site" www.musicplace.com.au/catalog is working fine and I have absolutely no problems with it. I have to do a demonstration off my development site and yes, I seem to be having some referencing problems. Both development and live sites are exactly the same except for the obvious includes/configure.php in both admin and catalog. All images for the catalog products on my development site show up fine it is ONLY the buttons that are in the languages/english/images/buttons directory that do not show. Like: button_add_address.gif button_address_book.gif button_back.gif button_tell_a_friend.gif etc. Now if I open up the file for Quick Find --catalog/includes/boxes/search.php around line 23 there is the following code: $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); where is "tep_image_submit" defined? How do I track down why the reference path does not work on a XP machine using Apache? Is it possible that the following code from catalog/includes/configure.php needs to be altered? if so to what? define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['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) below is my catalog/includes/configure.php file from MS2.2 on WinXP: define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // 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']); // 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'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'musicplace_com_au'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Thanks In Advance, Rob
AG Posted May 25, 2003 Posted May 25, 2003 If the live site is working and your laptop is an almost identical copy then it definitely sounds like reference problem. How about your <base href= in the head tag? See what it says when you viewsource from your browser... AG
AG Posted May 25, 2003 Posted May 25, 2003 Also, when you viewsource your missing image button what does it say? This is what it says on your LIVE HP and if it comes up on your laptop like this, it SHOULD DO because regardless of where the top level domain is (be it local or live) not going to matter. <INPUT title=" Sign In " type=image alt="Sign In" src="includes/languages/english/images/buttons/button_login.gif" border=0 SSL> If this is the case, problem is elsewhere like is image really there? and localhost bit is very questionable. AG
rag Posted May 25, 2003 Author Posted May 25, 2003 AG, Also, when you viewsource your missing image button what does it say? Live Site: <input type="image" src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="Sign In" title=" Sign In " SSL> Laptop: <input type="image" src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="Sign In" title=" Sign In " SSL> Hmmm...exactly the same. If this is the case, problem is elsewhere like is image really there? Absolutely, I was just looking at it. My laptop site is a freshly .tar copy of my live site. They ARE exactly the same. Every line of code save the configure.php's and localhost bit is very questionable. Sorry, I didn't understand this. Oh, and when I view source: <base href="http://localhost/catalog/"> Thanks for helping AG! Rob
AG Posted May 25, 2003 Posted May 25, 2003 rag, This is really buffling. :? What if you hard coded, so that's pure html and nothing to do with osC. <input type="image" src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="Sign In" title=" Sign In " SSL> OR even <img src="/catalog/includes/languages/english/images/buttons/button_login.gif" border="0"> Would it show up? :?: :?: :?: AG
mgraphics Posted May 25, 2003 Posted May 25, 2003 This is my configure.php define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://localhost'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/store/catalog/'); // absolute path required 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', 'c:/apache/htdocs/store'); define('DIR_FS_CATALOG', 'c:/apache/htdocs/store/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', 'doug'); define('DB_SERVER_PASSWORD', 'test'); define('DB_DATABASE', 'shop'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' I have the store installed on XP, Laptop, with Apache. The only difference I can see is that I have the local path defined for 'DIR_FS_DOCUMENT_ROOT' and I have HTTPS server defined. What do you get for a path when you right click>properties on an image? Is it correct? -Doug
rag Posted May 26, 2003 Author Posted May 26, 2003 Thanks AG, I wouldn't know where or how to hard code it. How do I alter the reference path for the Quick Search and hard code it? The search.php file is located at catalog/includes/boxes/search.php This is the given code that I imagine I would have to hard code: 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); I would really like to find the reference for that snippit above: tep_image_submit I've looked everywhere. I tried hard coding the above few times myself but was way off. Thanks, Rob rag, This is really buffling. :? What if you hard coded, so that's pure html and nothing to do with osC. <input type="image" src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="Sign In" title=" Sign In " SSL> OR even <img src="/catalog/includes/languages/english/images/buttons/button_login.gif" border="0"> Would it show up? :?: :?: :?: AG
rag Posted May 26, 2003 Author Posted May 26, 2003 I have the store installed on XP, Laptop, with Apache. The only difference I can see is that I have the local path defined for 'DIR_FS_DOCUMENT_ROOT' and I have HTTPS server defined. What do you get for a path when you right click>properties on an image? Is it correct? Thanks Doug for helping, I've changed 'DIR_FS_DOCUMENT_ROOT' to a defined local path like this: define('DIR_FS_DOCUMENT_ROOT', 'C:/phpdev/www'); // 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','C:/phpdev/www/catalog'); Still no change. The only difference I see between your configure path for the above is that you are coming through Apache and I'm not. I wonder if there is something in that. When I right click an image that is stored in catalog/images - the ones that are showing properly, I get obviously get the correct path. However, I can't get the properties off an image that is not rendered, I just get the property of the URL link, which is correct. When I view source the link to the language buttons is correct yet they don't show. Arg! I might have to install Apache, PHP and MySQL individually and not use a "build". I just can't figure out why EVERYTHING else works fine except the images in the images/button dir of the Language directory. Thanks again, Rob
rag Posted May 26, 2003 Author Posted May 26, 2003 Fixed it. Must have been some problem with by Apache build. I was fearing installing Apache from scratch when I found another application with Apache, PHP and MySQL already configured. It's called FoxServ and now EVERYTHING WORKS LIKE A CHARM. So a big thanks to AG and Doug. I can assure that your time wasn't wasted as I certainly learned alot about ocs referencing paths. Cheers, Rob
stubadub Posted July 13, 2003 Posted July 13, 2003 I had the same problem , by deleting the .htaccess file from the /includes directory all images are now visible. This must be a permissions problem with Apache.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.