Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy Now Button not showing


Guest

Recommended Posts

Posted

Hi Guys. Appologies if its been asked and answered already, but cant find the info I need.

 

My 'Buy Now' button is not showing on my product_listing.php page. Check this page for an overview of what I mean http://www.sandkclothing.co.uk/index.php/cPath/21_100_206.

 

In Firefox I see the Buy Now Alt tag instead of the button gif, in IE I see a blank box. tried reloading the button gif to the server but no worky.

 

Any help or pointing in direction would be greatly recieved.

 

Steven.

Posted

When trying to access the button image directly with a browser I get:

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

That generally denotes a problem with a .htaccess file

 

Probably the one in the /includes folder.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Your buttons say they are http://www.sandkclothing.co.uk/includes/languages/english/images/buttons/button_buy_now.gif -- is that where the image actually is?

 

Your site is running osCommerce 2.3.1, but that button image is from the 2.2 series. 2.3.1 no longer uses button images. Have you installed a 2.2 series addon? If so, you need to convert it to the new button code.

 

You also have something that is placing a lot of HTML code before the opening HTML tag. This will break your site in some browsers (notable IE) and is bad form in all cases. You need to fix that.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Hi. thanks for that info. I renamed the .htaccess file in includes folder and the button shows up fine. Anything I can do to resolve the issue without leaving the .htaccess file renamed?

 

Steven.

Posted

I suppose if you post it's contents someone can tell you where the malfunction might be.

 

Personally I'm no .htaccess "guru".

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

This is whats inside the Includes folders .htaccess file. I haven't touched it as I am not a Guru either lol.

I is definately this file blocking the button.

 

Yes I installed a 2.2 mod to get the listing style I have. Never noticed the button issue for ages. Palm Face.

 

# $Id$

#

# This is used with Apache WebServers

# The following blocks direct HTTP requests in this directory recursively

#

# For this to work, you must include the parameter 'Limit' to the AllowOverride configuration

#

# Example:

#

#<Directory "/usr/local/apache/htdocs">

# AllowOverride Limit

#

# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

#

# This does not affect PHP include/require functions

#

# Example: http://server/catalog/includes/application_top.php will not work

 

<Files *.php>

Order Deny,Allow

Deny from all

</Files>

 

 

Steven

Posted

Well that's exactly what I have on my WAMP server and my online 2.3.1 test site.

 

Neither of them have problems showing the button.

 

I do know that the .htaccess files are related (the one in the /includes folder is affected by the one in the root folder which is affected by your server settings and configuration).

 

I wish I could help more but like I said, I'm not the guru you need...

 

Maybe you should ask your host for help?

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thanks for getting back to me quickly. Very much appreciate the community help.

 

Steven :)

Posted

Whatever you did seems to be a viable fix without affecting security.

 

I can see the button, but if I try to access the /includes folder it won't let me.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

That .htaccess is designed to block PHP files in the include directory. It should have no effect on images.

 

It appears that you are using some sort of URL rewriter. I suspect that may be part of the problem. Try turning that off and reinstalling the .htaccess file.

 

That .htaccess file is a security measure that prevents hackers from using the includes directory and subdirectories to run hack files directly. Leaving it out is a security risk.

 

You can solve the whole problem by converting your buttons to 2.3.1 style. Instructions are here.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Archived

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

×
×
  • Create New...