Mysql error ,please help.

Discussion in 'MySQL' started by maverickk3, Sep 16, 2010.

  1. #1
    I am trying to move a website into a new server.

    Well i transfer the website ,but i had some errors .

    One last (that i can't find a solution) is that.

    http://91.205.172.91/

    Fatal error: Call to a member function row() on a non-object in /home/aa4car/domains/4car.net/public_html/generic/catalog/catalog.php on line 1254


    The error line is the second one.

    the second one.

    if (!$language_name) $language_name = $url->path(0);
    if ($row = $db->row(SQL_LANGUAGE_BY_NAME, $language_name)) {
    array_shift($url->path);
    //$this->current["language"] = $row;


    Would you please give me a hand?

    Thanks in advance :)
     
    maverickk3, Sep 16, 2010 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    SQL_LANGUAGE_BY_NAME is a user defined constant. can you show what is the current value of SQL_LANGUAGE_BY_NAME?
     
    bartolay13, Sep 17, 2010 IP
  3. maverickk3

    maverickk3 Notable Member

    Messages:
    1,282
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Thanks for your answer mate :)
    Where I am suppose to find this?
     
    maverickk3, Sep 17, 2010 IP
  4. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have to do a file search for something start with like:

    define('SQL_LANGUAGE_BY_NAME'

    or

    define("SQL_LANGUAGE_BY_NAME"

    SQL_LANGUAGE_BY_NAME should locate in some sort of config file. Right now there's no way to tell if the database uses MySQL or other database language :)
     
    imperialDirectory, Sep 17, 2010 IP
  5. maverickk3

    maverickk3 Notable Member

    Messages:
    1,282
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    210
    #5
    Fellas thank you very very much for your help :)

    Site is up again .

    Thanks again.
     
    maverickk3, Sep 17, 2010 IP