• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Couldn't fetch mysqli() in AdminConfig.php during installation

Installing Bagisto
5
6
2.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    A Former User last edited by A Former User 9 Sept 2019, 10:15 9 Sept 2019, 10:13

    I cannot complete Bagisto installation due to a MySQL error. Any help will be very appreciated.
    System information:

    • Ubuntu 18.04 LTS
    • nginx: 1.14.0
    • PHP 7.2.19
    • MariaDB 10.3.17
    • NodeJS 10.16.3

    Error message:

    [error] 24308#24308: *177 FastCGI sent in stderr: "PHP message: PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /home/user/bagisto/public/installer/AdminConfig.php on line 86
    PHP message: PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /home/user/bagisto/public/installer/AdminConfig.php on line 92
    PHP message: PHP Warning:  main(): Couldn't fetch mysqli in /home/user/bagisto/public/installer/AdminConfig.php on line 95
    PHP message: PHP Warning:  mysqli::close(): Couldn't fetch mysqli in /home/user/bagisto/public/installer/AdminConfig.php on line 98" while reading response header from upstream, client: 127.0.0.1, server: _, request: "POST /installer//AdminConfig.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "localhost", referrer: "http://localhost/installer/"
    

    Steps to reproduce:

    1. Download Bagisto(v0.16) from GitHub
    2. Follow installation instructions
    3. Hit "Continue" button in Admin Details form
    4. Expect following error
      First message
      Second message

    Notes:
    Credentials are 100% correct since I completed previous step (Migration and Seeding).
    Path to the public folder in error message text was modified as well as the second picture, for privacy reasons.

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 9 Sept 2019, 11:38

      Hi @VorobiovM

      On the basis of your attach screenshot, your installation has completed only admin details are not set & it could not established connection with database. Kindly make sure that you have entered all details correctly.

      Thanks

      V 1 Reply Last reply 7 May 2020, 11:19 Reply Quote 0
      • 8 months later
      • V
        vbanti @rahul last edited by 7 May 2020, 11:19

        @rahul i have the same problem but i receive this error first....Warning: mysqli::close(): Couldn't fetch mysqli in C:\xampp\htdocs\bagisto\public\installer\index.php on line 107

        1 Reply Last reply Reply Quote 0
        • V
          Vaishali Agarwal last edited by 8 May 2020, 05:20

          Hi @vbanti
          Please check the mysql credentails are correct in .env file?

          B 1 Reply Last reply 13 May 2020, 20:58 Reply Quote 0
          • B
            bagger @Vaishali Agarwal last edited by 13 May 2020, 20:58

            @Vaishali-Agarwal I am getting the same issue. Have fixed the emv file and keep testing alternatives with no success.

            1 Reply Last reply Reply Quote 0
            • V
              Vaishali Agarwal last edited by 14 May 2020, 04:52

              Hi @bagger

              login the mysql with command line and then run the command in CLI

              1. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Current-Root-Password';
                FLUSH PRIVILEGES;
                replace 'Current-Root-Password' with your password
              1 Reply Last reply Reply Quote 0
              3 out of 6
              • First post
                3/6
                Last post