Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ISP upgraded to PHP4.3 - now I'm receiving errors on the osc


drgroove

Recommended Posts

Posted

My site's ISP upgraded to PHP4.3 - now I'm receiving errors on the osc, on every page! Here's the error msg:

 

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/username/public_html/catalog/includes/languages/english.php on line 12

 

Any ideas as to how to approach this?

 

Using OSC v2.1

 

Line 12 in english.php is:

setlocale('LC_TIME', 'en_US.ISO_8859-1');

 

 

??? what to change ???

Posted

Remove the quotes from around LC_TIME

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Posted

Thank you - that worked! :)

 

However, now I've run into another problem:

 

If a customer is not logged in,

when trying to 'checkout', the checkout button does not forward them to the normal screen where they are asked to Login or Create an Account... it just basically refreshes the page that they're on, the Shopping Cart page.

 

What to do for this ??? Any suggestions ?

 

Thank you!!!

Posted

Hi,

My server uses 4.2.3 so I asked them. Their reply.

We have servers running PHP 4.2.3 without any problems for OSCommerce. What I know it has to do with the earlier versions of 4.2.3, the current release that we use do give any problems.

Don't reinvent the wheel.

Ask your server if they can help. :)

HTH

Neil

 

Common sense is genius dressed in working clothes.

Ralph Waldo Emerson

Posted

see my solution to problems that may be encountered with PHP v4.3 here:

http://www.oscommerce.com/forums/viewtopic.php?t=34417

 

it may or may not help your problem, but certainly should be done since PHP 4.3 doesn't use certain globals anymore that OSC still uses for PHP 3 compatibility.

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Posted
Hi,

My server uses 4.2.3 so I asked them. Their reply.

We have servers running PHP 4.2.3 without any problems for OSCommerce. What I know it has to do with the earlier versions of 4.2.3, the current release that we use do give any problems.

Don't reinvent the wheel.

Ask your server if they can help.  :)

 

unfortunately, the hosting company are essentially useless when it comes to supporting their customers... I'm currently in search of a new hosting service as a result of their lack of support.

 

but, i digress...

 

i do sincerely appreciate your taking the time to help out! :)

Posted

None of the $HTTP_*_VARS fixes in the referenced forum post have any effect on resolving the issue w/ my OSC... is it a v2.2 vs v2.1 issue, perhaps?

Archived

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

×
×
  • Create New...