Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running Database setup #179

Closed
ScrumpyJack opened this issue Apr 26, 2017 · 5 comments
Closed

Error running Database setup #179

ScrumpyJack opened this issue Apr 26, 2017 · 5 comments
Milestone

Comments

@ScrumpyJack
Copy link

ScrumpyJack commented Apr 26, 2017

using the web install app, i get the following error after initial check are ok.


 Database Error Occurred

Error Number: 1

table user_settings has 10 columns but 9 values were supplied

INSERT INTO "user_settings" VALUES (1, 'green', 'false;--\nPut your signature here', 'false', 20, 'true;background.jpg', 'default', 'english', 'asc');

This is a fresh sqlite3 database upgrade from a fresh gammu sqlite.db install. Gammu version 1.37.91

sqlite> select Version from gammu;
Version
16

sqlite> .schema user_settings
CREATE TABLE "user_settings" (
        "id_user" INTEGER PRIMARY KEY  NOT NULL, 
        "theme" VARCHAR(10) NOT NULL DEFAULT 'blue',
        "signature" VARCHAR(50) NOT NULL, 
        "permanent_delete" TEXT NOT NULL DEFAULT 'false', 
        "paging" INTEGER NOT NULL DEFAULT 10, 
        "bg_image" VARCHAR(50) NOT NULL,
        "delivery_report" TEXT NOT NULL DEFAULT 'default',
        "language" VARCHAR(20) NOT NULL DEFAULT 'english',
        "conversation_sort" TEXT NOT NULL DEFAULT 'asc',
        "country_code" VARCHAR(2) NOT NULL DEFAULT 'US',
        CHECK ("permanent_delete" IN ('true','false')),
        CHECK ("delivery_report" IN ('default','yes','no')),
        CHECK ("conversation_sort" IN ('asc','desc'))
);

looks like country_code is missing

Also the tables pbk and pbk_group have been removed from gammu.

ALTER TABLE "pbk" ADD COLUMN "id_user" INTEGER NULL;
ALTER TABLE "pbk" ADD COLUMN "is_public" TEXT NOT NULL DEFAULT 'false';

ALTER TABLE "pbk_groups" ADD COLUMN "id_user" INTEGER NULL;
ALTER TABLE "pbk_groups" ADD COLUMN "is_public" TEXT NOT NULL DEFAULT 'false';

The cause is here:
gammu/gammu@6203631

Then, after adding country code and removing the pbk and pbk_groups ALTER statements
I get


A PHP Error was encountered
Severity: Warning
Message: Missing argument 2 for CI_DB_pdo_driver::_delete(), called in /var/www/html/system/database/DB_active_rec.php on line 1321 and defined
Filename: pdo/pdo_driver.php
Line Number: 529

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: where
Filename: pdo/pdo_driver.php
Line Number: 531

A PHP Error was encountered
Severity: Warning
Message: implode(): Invalid arguments passed
Filename: pdo/pdo_driver.php
Line Number: 531

A Database Error Occurred
Error Number: 1
near " ": syntax error
DELETE FROM kalkun WHERE

Perhaps the pdo drivers need updating?

https://github.com/bcit-ci/CodeIgniter/tree/develop/system/database

@randhipp
Copy link

randhipp commented Apr 7, 2018

Also the tables pbk and pbk_group have been removed from gammu.

Hi, if you're on windows, use older version of gammu. My setup works using Gammu 1.33.0.

@jlfsdtc
Copy link

jlfsdtc commented Jan 2, 2019

Thank you,this my question too

@Alfadhly
Copy link

Hi

I have one problem :
I finished install Kalkun , and I opened it from browser (http://localhost/kalkun/)
but when i make click on inbox it's go to error page (http://localhost/kalkun/index.php/messages/folder/inbox) .

Error Number: 1146

Table 'kalkun.plugins' doesn't exist

SELECT * FROM (plugins) .

please help me what can i do !!!!!!?

@kingster
Copy link
Collaborator

kingster commented Dec 8, 2019

@Alfadhly did you follow the installation instructions? I just did a fresh installation from master and was able to setup completely. Also missing table structs has been also added in the installation step. Do try and reopen the issue if you still face any issues.

Please note that only mysql engine is updated to latest version and other engines yet needs to be updated.

@kingster kingster closed this as completed Dec 8, 2019
@kingster kingster added this to the 0.8-pre milestone Apr 28, 2020
@mr-media-creators
Copy link

A Database Error Occurred
Error Number: 1146

Table 'kalkun.b8_wordlist' doesn't exist

SHOW COLUMNS FROM b8_wordlist

Filename: C:/xampp/htdocs/Kalkun/vendor/codeigniter/framework/system/database/DB_driver.php

Line Number: 692

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants