Fatal error: Call to undefined function

Discussion in 'Installation Problems' started by rubpay73, Jan 6, 2010.

  1. rubpay73 Customer

    I'm trying to reinstall 68 classifieds. Everything went fine up to where it says Site Settings, when I click next an error shows up.

    Fatal error: Call to undefined function throw_db_error() in /home/xxxxxx/public_html/includes/classes/database/mysql.php on line 96

    I've installed 68c many times and this is the first time it does that.
  2. Eric Barnes Guest

    It seems to be a bug that the file the function is in is not included at that step. But all it does it print out an error message.

    I am guessing your database connection values are not correct or it can not connect to the mysql server. Can you double check those and try again?
  3. rubpay73 Customer

    A step before this one said connection made successfully
  4. Eric Barnes Guest

    Will you open setup/includes/functions.php and add this just above the closing php. "?>"
    Code:
    function throw_db_error($heading, $message)
    {
       echo '<h2>'.$heading.'</h2>';
      echo '<p>'.$message.'</p>';
    die;
    }
    
    This should then show what the actual error is.
  5. rubpay73 Customer

    It says Database ERROR

    Could not connect to server
  6. Eric Barnes Guest

    That is really strange. The previous step should be catching any db errors. Can you open the connections/classifieds.php file and see if what it is saving is the same as you are entering. No extra spaces or anything?
  7. rubpay73 Customer

    Finally it worked!!

    what happened was that my database password had a single quotation mark ( ' ) in it and that confused the script

    THANKS FOR ALL YOUR HELP!!!
  8. Eric Barnes Guest

    Ahh good find. Glad you got it sorted.

Share This Page