Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on SQL error after "upgrade" in the Shared & Semi-Dedicated forum
Hey maybe some of you can help since my ticket on this problem has yet to be resovled. on my website i get the following ...

  1. #1
    JPC Member
    Join Date
    Mar 2003
    Posts
    5

    Question SQL error after "upgrade"

    Hey maybe some of you can help since my ticket on this problem has yet to be resovled. on my website i get the following error.

    Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/darkmedi/public_html/mainfile.php on line 541

    I think this means that the script is trying to get the time from the server and cant get it but i'm not sure. anyway i can just disable this so that it dosetn show up on my site or a way around it?

    thanks!

  2. #2
    Like a star... Julian Muņoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,399
    No.... I don't know about the setlocale() function but the error script is telling you a warning message about something that is deprecated in the new PHP version you're running.... The best way to fix it is to read the documentation about that function... Or if you're using a third part script, try to download the lastest version and see if it fixes the problem.
    Julian D. Muņoz - LANeros.com

  3. #3
    Jag Veteran dkadave's Avatar
    Join Date
    Sep 2001
    Location
    California, from Hawaii! Gotta love the ocean...
    Posts
    558
    Well what it sounds like. It has setlocale($var); And that it's saying that it's not allowed or something like that.
    ------------------------------------------------------------------------------------------------
    http://www.dkanet.com - http://www.vi01.com
    http://www.dkahost.com
    ------------------------------------------------------------------------------------------------
    AIM: dkadave - YIM: dkadave
    E-mail: dkanet@dkanet.com
    ------------------------------------------------------------------------------------------------

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I think I recognize this issue. setlocal() is expecting a value sent to it and the value is in the form of a PHP constant. It used to be that constants worked fine when quoted, but not anymore. So if you have setlocale("SOMETHING") try changing it to setlocale(SOMETHING) instead.

    Good luck.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •