rodcar Posted July 7, 2008 Posted July 7, 2008 Hi, I have a blank spot with no image in the header, (no store logo) I have uploaded the image into the images directory. I think maybe the problem is not so much the upload of the file, but how and where I am trying to get the image from. I am ready to change the info in the header.php, but my image is just saved on My Documents on my computer, does this matter? this is where I am stuck ???? <div id="cwdusacontainer"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_???? . 'Twin-Things-820wide.gif', STORE_NAME) . '</a>'; ?></td> What do I put in (DIR_WS_ . 'Twin-Things-820.gif', STORE_NAME).
sLaV- Posted July 7, 2008 Posted July 7, 2008 Im confused about the part where you mention that you have uploaded your image but it is on your PC in My Documents??? The section you are referring to needs to be like this: tep_image(DIR_WS_IMAGES . 'Twin-Things-820.gif', STORE_NAME) so the whole thing should read: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'Twin-Things-820.gif', STORE_NAME) . '</a>'; ?></td> Given that you have uploaded your logo to your /images/ directory and your configure.php file in /catalog/includes/ is set up correctly :)
rodcar Posted July 7, 2008 Author Posted July 7, 2008 Im confused about the part where you mention that you have uploaded your image but it is on your PC in My Documents??? The section you are referring to needs to be like this: tep_image(DIR_WS_IMAGES . 'Twin-Things-820.gif', STORE_NAME) so the whole thing should read: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'Twin-Things-820.gif', STORE_NAME) . '</a>'; ?></td> Given that you have uploaded your logo to your /images/ directory and your configure.php file in /catalog/includes/ is set up correctly :) do I need to anything with the configure.php file, mine looks like this; <?php define('HTTP_SERVER', 'http://www.twinthings.com.au'); define('HTTPS_SERVER', 'http://www.twinthings.com.au'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.twinthings.com.au'); define('HTTPS_COOKIE_DOMAIN', 'www.twinthings.com.au'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); 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', '/home/twint1/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'twint1_FionaR'); define('DB_SERVER_PASSWORD', 'NCK83fb59ryD'); define('DB_DATABASE', 'twint1_storeosc'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
sLaV- Posted July 7, 2008 Posted July 7, 2008 Ok first thing i'd do is change your Database PW because you have just given it out to every potential hacker in the world.... next I tried accessing your image from here: http://www.twinthings.com.au/images/Twin-Things-820wide.gif and it says it cant display because it has errors...try reuploading the image to your FTP
rodcar Posted July 7, 2008 Author Posted July 7, 2008 Ok first thing i'd do is change your Database PW because you have just given it out to every potential hacker in the world.... next I tried accessing your image from here: http://www.twinthings.com.au/images/Twin-Things-820wide.gif and it says it cant display because it has errors...try reuploading the image to your FTP I did change it as soon as I sent it
rodcar Posted July 7, 2008 Author Posted July 7, 2008 I did change it as soon as I sent it I tried the link it tells me the image has errors?
sLaV- Posted July 7, 2008 Posted July 7, 2008 I tried the link it tells me the image has errors? Ye the coding to display the image is correct now...but the image you have uploaded to your server is having errors...what format did you upload it in (ascii or binary) ?? ... try deleting it from your FTP server and reupload it again...
rodcar Posted July 7, 2008 Author Posted July 7, 2008 Ye the coding to display the image is correct now...but the image you have uploaded to your server is having errors...what format did you upload it in (ascii or binary) ?? ... try deleting it from your FTP server and reupload it again... I deleted file from my FTP and uploaded it again. I tried clicking on this link: http://www.twinthings.com.au/images/Twin-Things-820wide.gif and now it is telling me this now, Forbidden You don't have permission to access /images/Twin-Things-820wide.gif on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Any suggestions
sLaV- Posted July 7, 2008 Posted July 7, 2008 I deleted file from my FTP and uploaded it again. I tried clicking on this link: http://www.twinthings.com.au/images/Twin-Things-820wide.gif and now it is telling me this now, Forbidden You don't have permission to access /images/Twin-Things-820wide.gif on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Any suggestions What permissions are set for the image Twin-Things-820wide.gif ??? (in your FTP client right click on the image and you should have something like properties) and when you click on that it'll tell you the current permission set for this file...it should be set to 644
rodcar Posted July 7, 2008 Author Posted July 7, 2008 What permissions are set for the image Twin-Things-820wide.gif ??? (in your FTP client right click on the image and you should have something like properties) and when you click on that it'll tell you the current permission set for this file...it should be set to 644 the permissions I have are 600 the only things that are ticked are owner's permission read and write
rodcar Posted July 7, 2008 Author Posted July 7, 2008 the permissions I have are 600 the only things that are ticked are owner's permission read and write I set it to 644 now it's telling me again the image has an error
rodcar Posted July 7, 2008 Author Posted July 7, 2008 I set it to 644 now it's telling me again the image has an error the mode was binary now I have tried ascII still not working
Recommended Posts
Archived
This topic is now archived and is closed to further replies.