Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Helps..all buttons in catalog with crosses


laiyee73

Recommended Posts

Posted

Hi,

 

I am a newbie in the oscommerce. A few week ago the company that is hosting my site is having problem with the server and have since then migrated to a new server.

 

They claimed that their file migration is successful, but since then, all the buttons in my site is where the image suppose to be are little crosses but the functionality of buttons still works. I checked that all the image files are still there. in the path of the

 

Is there any files that I missed out in the checking process or could any files be corrupted ?could it be the configure.php? I have checked it a couple of times but could not spot any error...

 

I have read that another guy replaced the entire include directory to resolve this? Is there a easier way than this?

 

Thanks..

 

Regards,

Laiyee

Posted
Hi,

 

I am a newbie in the oscommerce. A few week ago the company that is hosting my site is having problem with the server and have since then migrated to a new server.

 

They claimed that their file migration is successful, but since then, all the buttons in my site is where the image suppose to be are little crosses but the functionality of buttons still works. I checked that all the image files are still there. in the path of the

 

Is there any files that I missed out in the checking process or could any files be corrupted ?could it be the configure.php? I have checked it a couple of times but could not spot any error...

 

I have read that another guy replaced the entire include directory to resolve this? Is there a easier way than this?

 

Thanks..

 

Regards,

Laiyee

 

Post a link to your site..

Posted

I too am having a similar problem.

 

The buttons are only showing part of an image with the bottom halves all blurry/fuzzy. I have removed the width maximums.

 

http://www.airsoftnj.com/catalog/

 

Here is an example to the Review button on the site: button_reviews.gif

 

I have replaced the images, but the error still occurs.

Posted
I too am having a similar problem.

 

The buttons are only showing part of an image with the bottom halves all blurry/fuzzy. I have removed the width maximums.

 

http://www.airsoftnj.com/catalog/

 

Here is an example to the Review button on the site: button_reviews.gif

 

I have replaced the images, but the error still occurs.

 

Are you uploading in binary or ascii ??

Posted
Are you uploading in binary or ascii ??

 

ASCii. I re-uploaded them as well just to double check and the problem still presents itself.

Posted
ASCii.

 

Well, there's your problem. Image files are BINARY. They will be corrupted if you transfer them in ASCII mode.

Posted

Hi,

 

not sure how to check if a particular image file is ascii or binary.

 

I downloaded the image file to my desktop and it launches perfectly.

 

I have tried to replace the product_listing.php but it still hits the same problem. In fact all the php files in the catalog cannot launch the buttons but the functionality of the buttons still works

 

Could any of these files affects php.ini ,configure.php,english.php ,.htaccess,...

 

thanks...

 

Laiyee

Posted
Hi,

 

not sure how to check if a particular image file is ascii or binary.

 

I downloaded the image file to my desktop and it launches perfectly.

 

I have tried to replace the product_listing.php but it still hits the same problem. In fact all the php files in the catalog cannot launch the buttons but the functionality of the buttons still works

 

Could any of these files affects php.ini ,configure.php,english.php ,.htaccess,...

 

thanks...

 

Laiyee

Just upload the images in binary.

Posted

Hi,

 

Can I just check where to get the exact location for the images is located?

 

Is it in...

/public_html/shop/images

==================================================

In the configure .php,

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_IMAGESBIG', DIR_WS_IMAGES . 'big/');

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/');

 

======================================================

 

In the product_listing.php,

 

there was 1 line code as below:-

$lc_text = '<img src="images/sold.gif">';

It shows a sold out image.

 

I changed the name of the image file from sold.gif to sold1.gif to ascertain if the image folder if is in shop/images.

 

After changing the file name to sold1.gif in the shop/images .

 

The product_listing.php still works for the sold out portion, the image still comes out. Does it means the images folder is not in the /shop/images? Where can I determine where is the image folder so that I can reload all these images into binary format.Thanks.

 

 

Regards,

Laiyee

Posted
Hi,

 

Can I just check where to get the exact location for the images is located?

 

Is it in...

/public_html/shop/images

==================================================

In the configure .php,

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_IMAGESBIG', DIR_WS_IMAGES . 'big/');

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/');

 

======================================================

 

In the product_listing.php,

 

there was 1 line code as below:-

$lc_text = '<img src="images/sold.gif">';

It shows a sold out image.

 

I changed the name of the image file from sold.gif to sold1.gif to ascertain if the image folder if is in shop/images.

 

After changing the file name to sold1.gif in the shop/images .

 

The product_listing.php still works for the sold out portion, the image still comes out. Does it means the images folder is not in the /shop/images? Where can I determine where is the image folder so that I can reload all these images into binary format.Thanks.

 

 

Regards,

Laiyee

images are in shop/images/

except for big images, which are in

shop/images/big/

and icons, which are in

shop/images/icons/

There may be others. For instance, in your language directory.

 

Just follow the structure that you have on your website.

Posted
not sure how to check if a particular image file is ascii or binary.

 

All images used by osCommerce are binary (.gif, .jpg/.jpeg, .png). There are a few oddball and little-used image formats out there which are ASCII, but I don't think most browsers will display them. If you can "type" the image file in a "command window" (Windows) or "cat" the image file in a "terminal" (Linux) without a lot of beeping and odd characters, it's ASCII. Otherwise, it's binary data (not human readable). Anyway, when you transfer (upload or download) a file between your PC and your server, you should always use binary mode, if given a choice. Most file transfer utilities are pretty good about figuring out what is an ASCII file and what's binary (binary: don't translate anything. ASCII: convert the characters marking the "end of a line" between CR-LF on Windows and NL on Linux).

 

I downloaded the image file to my desktop and it launches perfectly.

 

Can you give your site and image file name on your browser? For example, http://www.mysite.com/images/button_logout.gif. If it displays OK, then you uploaded it correctly and the problem is elsewhere. Do you have "hotlink protection" enabled on your server? If so, look at the contents of your .htaccess file -- does it list your site (with and without "www.") on the "allowed" list? If not, you'll need to add it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...