Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Provider graded up to PhP version 4.3.0


Guest

Recommended Posts

Posted

After this upgrade there appearing errors:

 

Error:

 

when I open de admin, the next error_line is always on the top of webpage:

 

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /www/htdocs/domain/shop/admin/includes/languages/dutch.php on line 12

 

dutch/php line 12 setlocale('LC_TIME', 'nl_NL.ISO_8859-1');

 

 

____________________________________________

When I add or update a new_product I get the next error:

 

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/domain/shop/admin/includes/languages/dutch.php:12) in /www/htdocs/domain/shop/admin/includes/functions/general.php on line 18

 

general.php line 18 header('Location: ' . $url);

 

dutch/php line 12 setlocale('LC_TIME', 'nl_NL.ISO_8859-1');

 

I supose that it has something to do with the upgrade of PhP to version 4.3.0...I search already on this forum. somethings are simelar and try's something but wasn't the solution.

 

If you want more details or whatever I let you know,

 

Someone has a solution for this??

Posted

have you tried commenting out the line in the ducth.php, that may be causing the error in the general.php

 

This is not an answer but it may bring up some more information.

 

it does seem clear that 4.2.3. and 4.3.x are different enough, that we are holding out on 4.2.2 until we get a stable test on 4.3 on our servers.

 

Do you have your own version of php.ini or do you share the entire servers? if you have your own you could make a backup and create on with just register_globals = on.

Best Regards,

 

Salvatore Iozzia

 

Loaded Commerce - Oscommerce - All Loaded Up.

Posted
have you tried commenting out the line in the ducth.php, that may be causing the error in the general.php

 

No editting on both files (admin)

 

This is not an answer but it may bring up some more information.
it does seem clear that 4.2.3. and 4.3.x are different enough, that we are holding out on 4.2.2 until we get a stable test on 4.3 on our servers.
Do you have your own version of php.ini or do you share the entire servers? if you have your own you could make a backup and create on  

with just register_globals = on.

 

No, a share for entire server.

But where can I check if it is on, PhPinfo..???

Posted

Read both before my post here.

 

1st it's about catalog problems, en not admin

 

2th Check al the files, no spaces or lines.

Posted

thanks anyway...you never known.

 

Another shop has the some problem and we are located on te some server. So it has todo with the PhP version upgrade. But what can we do about it.

 

I already search in the PhP release 4.3.0 changes but it is really to mutch.

Any suggestions are welkom.

Posted

Try and make the changes that Ian suggested. Admin and Catalog is interconected. It won't hurt to try.

Steve

-------------------------

Posted
dutch/php line 12 setlocale('LC_TIME', 'nl_NL.ISO_8859-1');

 

Remove the quotes [at least the ones around LC_TIME, I'm not sure of the other (though you can find out :) )]

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

-- Andrew Jackson

Posted

Hi Paul_c

 

I can try it, but it is strange that it occured after the PhP version upgrade. Before it works fine??

 

I try this in the evening when I'm @home, but I let you known if it was the solution,

 

thx for your hint.

 

JJ

Posted
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead.
I can try it, but it is strange that it occured after the PhP version upgrade. Before it works fine??

 

With the quotes there it thinks LC_TIME is being passed as a string; this is deprecated. Without the quotes it treats LC_TIME as the constant it is (one of the LC_* constants mentioned above.)

 

I don't recall if this was a bug in earlier versions of php or if this just became deprecated with 4.3, but either way it explains why we haven't seen the warning before (and why we're seeing it in a number of scripts now - not just oscommerce.)

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

-- Andrew Jackson

Posted

Hi Paul,

 

Your explaination is very clear, the first thing I do when I'm home is to try it out.

 

Thx :-)8=

Posted

Hi Paul,

 

YYeesss, it workt...

 

I just leave the qoutes around LC_TIME......thats all and the error disapeared.

 

Thx....

 

For now 2 problems left, post it also here on the forum. Bud this give me new hope that the other two problems got fixed with help of other people.

 

Greetings JJ

Posted

After I removed the qoutes another problem is solved to:

 

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/domain/admin/includes/languages/dutch.php:12) in /www/htdocs/domain/admin/includes/functions/general.php on line 18

 

Removed just two qoutes, and problem solved.

 

Everybody Thx for your input and contribution.

 

Greetings John2b

Archived

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

×
×
  • Create New...