Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

stores stopped writing base href


sponna

Recommended Posts

Hi

 

Wondered if anyone could help as this has baffeled me.

 

We have several stores all hosted on the same server.

 

We had a php upgrade to php 5 last week (Mon) we had made preparations for this and had changes made and in place.

 

Following the upgrade all was fine.

 

Today I noticed that the site no longer displays properly (no images) in Internet explorer. Its fine in fire fox which seems to tolerate the no base href.

 

On viewing the source I can see no base href is being written - but it worked in IE last week post the php5 upgrade???

 

Any ideas gratfully received

 

one of the sites is

 

www.aircon4less.co.uk

 

Is this a php 5 issue? any clues appreciated.

 

vee

up the down escalator..........

Link to comment
Share on other sites

Try this:

 

Click me

 

There is a minor code change detailed in the first post in that thread.

 

That usually works.

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 >

Link to comment
Share on other sites

Try this:

 

Click me

 

There is a minor code change detailed in the first post in that thread.

 

That usually works.

 

 

I don't think that link is a correct solution.

 

I would do the following: -

 

// set the type of request (secure or not)

// $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

// Replaced standard request type

$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

// End replace

 

Obviously based on a 443 SSL port but most are.

Link to comment
Share on other sites

Robert!!!

(w00t)

 

Where'd you come up with that????

:unsure:

 

I sure like that a whole lot better that the other way.

 

I tested on my server, and it would work there, anyway...

:thumbsup:

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 >

Link to comment
Share on other sites

Thanks guys,

 

I really appreciate your help.

 

It is my partner (sponna ) who normal makes changes to our OSC stuff - I do the creative design stuff. He is away today but I am sure he will check the post later

 

I'll let you know how we get on.

 

Once again many thanks for the suggestions

up the down escalator..........

Link to comment
Share on other sites

I'll let you know how we get on.

I'd appreciate that immensely...

:blush:

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 >

Link to comment
Share on other sites

I'd appreciate that immensely...

:blush:

 

And me :-"

Link to comment
Share on other sites

I could never figure out how the fix in the link I suggested ever worked.

 

It was just something that someone tried that worked.

 

On the other hand, Robert, your fix makes sense.

 

I grovel in your shadow, O great one...

:ph34r:

 

;)

 

:lol:

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 >

Link to comment
Share on other sites

I'd appreciate that immensely...

:blush:

 

Hi again

 

I tried this first of all

 

go to includes/application_top.php and where it says $request_type = (getenv('HTTPS') == 'on') try changing the "on" to "off".

 

and it worked.

 

Can't thank you guys enough

up the down escalator..........

Link to comment
Share on other sites

Can you try what Robert suggested?????

:unsure:

 

Pretty please with sugar on top...

:blush:

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 >

Link to comment
Share on other sites

I could never figure out how the fix in the link I suggested ever worked.

 

It was just something that someone tried that worked.

 

On the other hand, Robert, your fix makes sense.

 

I grovel in your shadow, O great one...

:ph34r:

 

;)

 

:lol:

 

the more beer.gif I drink the more I make sense!

 

Hmmm ..

 

Or is that just to me? :blink:

Link to comment
Share on other sites

I'll drink to that, Robert..

:thumbsup:

 

Here's mud in your eye....

;)

 

If this person doesn't give your suggestion a whirl, I'll definitely point the next person here.

:lol:

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 >

Link to comment
Share on other sites

Its not that I don't want to try - its just it looked trickier (remember you are talking to the designer type not coder type here) and the first one I tried does seem to work :)

 

I will ask my more techy other half to try the other method in our test store when he gets back tomorrow.

 

Once again can't thank you guys enough :)

up the down escalator..........

Link to comment
Share on other sites

I will ask my more techy other half to try the other method in our test store when he gets back tomorrow.

Thank-you!

 

Thank-you!

 

Thank-you!

:rolleyes:

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 >

Link to comment
Share on other sites

Its not that I don't want to try - its just it looked trickier (remember you are talking to the designer type not coder type here) and the first one I tried does seem to work :)

 

I will ask my more techy other half to try the other method in our test store when he gets back tomorrow.

 

Once again can't thank you guys enough :)

 

 

No Sponna you are quite right looking back I didn't explain it at all.

 

I promise you can do it ok :)

 

Follow the following instructions ..

 

1) Make a copy of the file catalog/includes/application_top.php (keep it safe somewhere)

 

2) Open the existing catalog/includes/application_top.php

 

 

Find the line that says ..

 

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

Replace that line with ..

 

// set the type of request (secure or not)
// $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// Replaced standard request type
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';
// End replace

 

That's it!!

Link to comment
Share on other sites

BEERS ALL AROUND!!!!

 

:)

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 >

Link to comment
Share on other sites

  • 2 months later...
go to includes/application_top.php and where it says $request_type = (getenv('HTTPS') == 'on') try changing the "on" to "off".

 

This also worked for me on three installations on one particular server. No other server is affected - any ideas why this has happened?!

 

Cheers

Link to comment
Share on other sites

  • 10 months later...
No Sponna you are quite right looking back I didn't explain it at all.

 

I promise you can do it ok :)

 

Follow the following instructions ..

 

1) Make a copy of the file catalog/includes/application_top.php (keep it safe somewhere)

 

2) Open the existing catalog/includes/application_top.php

 

 

Find the line that says ..

 

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

Replace that line with ..

 

// set the type of request (secure or not)
// $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// Replaced standard request type
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';
// End replace

 

That's it!!

 

 

This just saved my day!

I had recently upgraded my server to Apache 2.2 plus PHP 5 and several things were not working right.

What was bugging me the most was that cookies were not always set properly and the oscid kept showing in the urls.

Aslo some includes in the boxes that were turned on or off depending if it was SSL or not were always off.

 

This change aboe FIXED ALL THE PROBLEMS

 

Guess that the new Apache 2.2 plus PHP 5 did not like the code (getenv('HTTPS')

 

Been trying to find the bug/problem for 3 days now and stumbled on this

 

GREAT JOB!!!

Jim Bullen - President

The Cigar Hut Group of Companies

 

 

Installed add-ons: (that now need to be upgraded to OSC CE Phoenix)

PWA, MVS, Easy Populate, Dynamic Sitemap, Featured Products, MVS Order Editor, MVS Shipping Estimator, Google XML Sitemap, About Us, Ad Tracker, Address Enhancer, Also Purchased, Backorders, Category Descriptions, Dynamic Meta Tags, Contact Us Email Subjects, Country state Selector, Extra Address Line, Order Number in Email Subject, OSC Affiliate, Product Extra Fields, Review Approval System, Reviews in Product Display, Sold Out, Sold Out (but Displayed), Ultimate SEO URL's, Updated Spiders, Welcome Email Password, Pending Order Email, Who's Online Enhancement, CCGV, Easy Discounts, Customer Comments, Request a Review, Sales Report, plus many many more!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...