Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-05-01 02:48:41

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Unexpected error: Module 'sqlite3' already loaded

I just update and get this error in both Backlight and on my site:

Something went wrong
Unexpected error: Module 'sqlite3' already loaded in Unknown on line 0

Kyle Lucy Photography
kylelucy.com

Offline

#2 2020-05-01 03:02:59

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Unexpected error: Module 'sqlite3' already loaded

Some pages of my site work fine, but the home page with a slideshow are broken, and the main galleries page doesn't load at all.

Last edited by kmlucy (2020-05-01 03:07:31)


Kyle Lucy Photography
kylelucy.com

Offline

#3 2020-05-01 03:05:01

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Unexpected error: Module 'sqlite3' already loaded

did you update from Backlight 1 or 2?
What steps did you take?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2020-05-01 03:07:14

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Unexpected error: Module 'sqlite3' already loaded

I updated from Backlight 2. I purchased the upgrade, logged into Backlight, navigated to Admin > Backlight Modules, and clicked 'Update All' under 'Backlight'


Kyle Lucy Photography
kylelucy.com

Offline

#5 2020-05-01 03:10:18

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Unexpected error: Module 'sqlite3' already loaded

You can see the error live at kylelucy.com. There is a large red error bar at the bottom of my homepage, and the galleries link just leads to an error page.


Kyle Lucy Photography
kylelucy.com

Offline

#6 2020-05-01 03:19:24

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Unexpected error: Module 'sqlite3' already loaded

Thanks, Kyle. Ben will need to take a look when he's online again. I reckon he'll be waking up in a few hours.


Matt

The Turning Gate, http://theturninggate.net

Offline

#7 2020-05-01 07:57:49

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unexpected error: Module 'sqlite3' already loaded

Hi Kyle, this looks like a misconfiguration at your host.  The sqlite3 module is being loaded twice in the configuration.  Do you have access to configure your own php.ini file, perhaps sitting immediately in your public_html or www directory?  If so, can you see whether there's a line that looks like this:

extension=sqlite3

If so, try commenting it out with a leading semi-colon, so that it looks like this:

;extension=sqlite3

The same idea applies if you have access to php.ini files elsewhere.  If this advice doesn't help then you'll need to talk to your host's technical support.

Offline

#8 2020-05-01 08:08:08

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Unexpected error: Module 'sqlite3' already loaded

Ben,

I do have access to my php.ini, but it doesn't have that line in it. sqlite3 is enabled in my PHP extension selection however.


Kyle Lucy Photography
kylelucy.com

Offline

#9 2020-05-01 08:11:52

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unexpected error: Module 'sqlite3' already loaded

Hi Kyle, can you try disabling it there and seeing whether that solves the problem and that the site does operate?

Offline

#10 2020-05-01 08:13:44

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Unexpected error: Module 'sqlite3' already loaded

Disabling it there seems to have fixed the issue. Is it loaded by Backlight separately? It was working fine like that with Backlight v2.


Kyle Lucy Photography
kylelucy.com

Offline

#11 2020-05-01 08:30:04

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unexpected error: Module 'sqlite3' already loaded

I'm glad that solved it.  Backlight uses the module but doesn't load it.  That's the job of the php.ini files and system bootstrapping. I can't see how any of the changes from BL2 to BL3 would have affected this.

Can you take a look at your PHP Info (link available und Special Links on the main Backlight admin page) and make sure that there is a section for Sqlite3.  That page should also tell you where the php.ini files are located.  It may be the case though that the actual loading of sqlite3 is handled via a separate config file under conf.d of the same directory as the server's main php.ini file.

Offline

#12 2020-05-01 09:27:59

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Unexpected error: Module 'sqlite3' already loaded

There is a section for sqlite3, though there isn't much info under it. It looks like the php.ini is loaded from a path I don't have access to. I believe the php.ini file I was looking at is only used to generate the user.ini, so it only has a few options that I've set.


Kyle Lucy Photography
kylelucy.com

Offline

Board footer

Powered by FluxBB