Thread: PHP Fatal error

Results 1 to 5 of 5
  1. #1 PHP Fatal error 
    Registered Member KingKenobi's Avatar
    Join Date
    Aug 2018
    Posts
    64
    Thanks given
    21
    Thanks received
    3
    Rep Power
    32
    So I'm trying to instal King fox highscore, and I'm getting this error when I try to get to the page

    Code:
    [08-Mar-2019 03:14:45 UTC] PHP Fatal error:  Call to a member function prepare() on null in /home/kingscap/public_html/hiscores/assets/classes/class.database.php on line 35
    [Only registered and activated users can see links. ]

    This is the Code at this specific line
    Code:
    	$stmt = $this->conn->prepare("SELECT * FROM $this->table LIMIT 500");
    I did set up everything according to the Installation guide.

    Anyone can help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    971
    Thanks given
    155
    Thanks received
    421
    Rep Power
    702
    Code:
    $this->conn
    Is null
    Reply With Quote  
     

  3. #3  
    Registered Member KingKenobi's Avatar
    Join Date
    Aug 2018
    Posts
    64
    Thanks given
    21
    Thanks received
    3
    Rep Power
    32
    Quote Originally Posted by Greg View Post
    Code:
    $this->conn
    Is null
    Yea but any idea on what could cause it? Is it the database SQL file? or somthing else
    Reply With Quote  
     

  4. #4  
    Registered Member
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    971
    Thanks given
    155
    Thanks received
    421
    Rep Power
    702
    Quote Originally Posted by KingKenobi View Post
    Yea but any idea on what could cause it? Is it the database SQL file? or somthing else
    The `conn` varaible, is never setup/connected to the sql database
    Reply With Quote  
     

  5. #5  
    Registered Member
    Jay Gatsby's Avatar
    Join Date
    Jun 2010
    Posts
    1,957
    Thanks given
    948
    Thanks received
    803
    Rep Power
    1856
    add
    Code:
    var_dump($this);
    die;
    above it and post the result.


    It's probably because you haven't got the right database driver though
    Last edited by Jay Gatsby; 03-11-2019 at 08:54 PM.
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fatal error with java.
    By Magers in forum Help
    Replies: 3
    Last Post: 07-25-2009, 11:03 PM
  2. Fatal error
    By Adam432423 in forum Help
    Replies: 3
    Last Post: 05-14-2009, 09:58 PM
  3. PHP Domain Error ?
    By Specialized in forum Website Development
    Replies: 0
    Last Post: 11-30-2008, 10:09 PM
  4. PHP-MYSQL Error - please help me fix
    By polygon in forum Help
    Replies: 6
    Last Post: 11-22-2008, 01:51 PM
  5. Php mysql error.
    By Musicmad in forum Help
    Replies: 4
    Last Post: 06-01-2008, 08:25 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •