1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved PHP extension not detected

Discussion in 'Help' started by LeeTheENTP, Jan 12, 2018.

  1. LeeTheENTP

    LeeTheENTP Creeper

    Messages:
    3
    GitHub:
    leetheentp
    I'm trying to run the FactionsPro plugin, but when the server starts up the plugin fails to load, spitting out this error:
    Code:
    [17:30:22] [Server thread/CRITICAL]: Error: "Class 'SQLite3' not found" (EXCEPTION) in "FactionsPro.phar/src/FactionsPro/FactionMain" at line 87
    After looking into the issue (I don't know much about PHP), I discovered that it's looking for the SQLite3 PHP extension. However, this is where the real issue lies. You see, as far as I can tell, the SQLite3 extension is installed (by default, no less):

    [​IMG]

    I imagine this is an issue my PocketMine installation in particular, given others can run this plugin just fine (ignoring the bugs reported after it's loaded and running). This instance has been around since the early days of Bedrock 1.2, though I did update the PHP installation when the server required a newer version.

    Any help is appreciated!
     
  2. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    What is on the line 87 of your plugin?
     
  3. LeeTheENTP

    LeeTheENTP Creeper

    Messages:
    3
    GitHub:
    leetheentp
    According to the plugin's source code, the following:
    PHP:
    $this->db = new \SQLite3($this->getDataFolder() . "FactionsPro.db");
    I don't know much about PHP, but it looks like FactionsPro is trying to create/access a .db file using the SQLite3 plugin.
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Did you enable it in php.ini?
     
    LeeTheENTP likes this.
  5. LeeTheENTP

    LeeTheENTP Creeper

    Messages:
    3
    GitHub:
    leetheentp
    I was operating under the assumption extensions were enabled by default. I went into php.ini and un-commented the SQLite3 extension, and the plugin's working now.

    Thanks!
     
    Last edited: Jan 12, 2018
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.