Fatal error: Uncaught Error: Call to undefined method mysqli::error()

Tom Faust's Avatar

Tom Faust

28 Feb, 2018 05:05 AM

Initializing FamilyConnection, setting up the database for the first time. I entered the admin user information and got this error. I can't find anything useful on the web or in the knowledge base. Any help would be appreciated.

Fatal error: Uncaught Error: Call to undefined method mysqli::error() in E:\Projects\fcms-3.7.0\familyconnections\inc\install_inc.php:204 Stack trace: #0 E:\Projects\fcms-3.7.0\familyconnections\install.php(724): installUsers(Object(mysqli), Array) #1 E:\Projects\fcms-3.7.0\familyconnections\install.php(82): setupDatabase() #2 E:\Projects\fcms-3.7.0\familyconnections\install.php(52): main() #3 {main} thrown in E:\Projects\fcms-3.7.0\familyconnections\inc\install_inc.php on line 204

  1. 1 Posted by diivious on 02 Mar, 2018 10:04 AM

    diivious's Avatar

    mysqli::error is no a function, so its not callable.

    Find all of these:
        $connection->query($sql) or die($sql . '<br/>' . $connection->error());

    and change it to:
        $connection->query($sql) or die($sql . '<br/>' . $connection->error);

  2. 2 Posted by diivious on 02 Mar, 2018 10:14 AM

    diivious's Avatar

    One other thing. once you fix this, your going to hit the reason our gettng that error. It seems mysql no longer allows all-zero dates. So the inserts with ...

         DATETIME NOT NULL DEFAULT 0000-00-00 00:00:00
    Will fail - which is why your seeing that secondary failure with error being used as a function.

  3. Support Staff 3 Posted by Ryan Haudenschi... on 26 Mar, 2018 02:49 PM

    Ryan Haudenschilt's Avatar

    Thanks diivious.

    Tom, diivious is correct. What version of FCMS are you installing and do you know what version of PHP and MySQL you are using?

  4. 4 Posted by Tom Faust on 27 Mar, 2018 04:43 AM

    Tom Faust's Avatar

    FCMS 3.7.0
    PHP 7.1.4
    MySQL 5.7.18

  5. Support Staff 5 Posted by Ryan Haudenschi... on 04 Apr, 2018 01:34 PM

    Ryan Haudenschilt's Avatar

    Thanks Tom.

    I'm adding a new ticket for this bug.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

27 Jun, 2019 05:03 PM
19 Apr, 2019 12:58 PM
18 Apr, 2019 03:28 PM
09 Apr, 2019 01:16 AM
12 Mar, 2019 03:10 PM