Code Monkey home page Code Monkey logo

Comments (7)

xenocrat avatar xenocrat commented on July 17, 2024

I know you stated you've tried with the develop branch, but can you open the file /includes/class/SQL.php and verify this line of code is specifying PDO::ATTR_PERSISTENT => false (the actual line number might be slightly different depending on whether you are in sync with recent commits).

I've been testing SQLite compatibility recently and I discovered that this persistent mode causes errors whenever the schema is modified by a query.

from chyrp-lite.

 avatar commented on July 17, 2024

I deleted all testing instances afterwards, but now I'm now running 3b136e9, in which I can still reproduce the problem. PDO::ATTR_PERSISTENT => false is there.

I forgot to mention that all tests were done using SQLite.

from chyrp-lite.

xenocrat avatar xenocrat commented on July 17, 2024

That's an odd one. Clearly the error is being misreported because if the sessions table didn't exist the problem would occur consistently. My hunch is that this error is the result of some other intermittent connection problem PDO is having. Difficult to diagnose unless I can reproduce it. What version of PHP are you using?

from chyrp-lite.

 avatar commented on July 17, 2024

PHP 5.6.17-3
pdo_sqlite 3.10.2
from the Debian stretch repos.

I will see how it goes using MySQL and let you know.


Edit: nothing, couldn't reproduce with MySQL.

from chyrp-lite.

xenocrat avatar xenocrat commented on July 17, 2024

Thanks for testing. I'll dedicate some more time to poking SQLite before the next release. Perhaps I can reproduce the problem.

from chyrp-lite.

 avatar commented on July 17, 2024

I think it has to do with the DB path. I ignored the "full path" message and provided only the name because I saw that the DB was created in the root of my project anyway.

Now, if I do pass the full (writable) path, this error is gone.

It seems that 2 different locations are being referenced as the DB path. The right one, which exists and feeds most of the page, and the broken one causing the error. From what I read, SQLite creates a missing database file silently, which would explain the no such table: sessions message.

from chyrp-lite.

xenocrat avatar xenocrat commented on July 17, 2024

That's great news. I'm glad to have the mystery solved. ^_^

from chyrp-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.