Git Product home page Git Product logo

Comments (6)

azlux avatar azlux commented on June 12, 2024

What is you DATABASE_TYPE value in the config file ?
The database is created at the install. Can you connect to it and make a show tables; or .tables(if sqlite?).

from simple-url-shortener.

cyni0s avatar cyni0s commented on June 12, 2024

my config values are:
define('DATABASE_TYPE', 'sqlite3'); //mysql or sqlite3
define('SQLITE3_FILE', './database.sqlite3');

There is only one table in the sqlite database: shortener

from simple-url-shortener.

azlux avatar azlux commented on June 12, 2024

Here the table you should have.
https://github.com/azlux/Simple-URL-Shortener/blob/master/installation.php#L11-L28
If the first table is created, I don't understand why the second is not. Can you check is there are entry missing on the table ?

from simple-url-shortener.

cyni0s avatar cyni0s commented on June 12, 2024

No the Shortener table is created proberly

CREATE TABLE `shortener` (
      `short` char(5) NOT NULL,
      `url` varchar(700) NOT NULL,
      `comment` char(30) DEFAULT NULL,
      `views` int(11) DEFAULT NULL,
      `username` varchar(25) DEFAULT NULL,
      `date` datetime NOT NULL,
      PRIMARY KEY (`short`)
      );

So just to try it out I modified the installation.php and deleted the first table creation. Now the user registration works just fine with only the warning that headers were already been created.

Edit: modified installlation.php as .txt because I cannot upload .php files here
modified_installation.txt

from simple-url-shortener.

azlux avatar azlux commented on June 12, 2024

good. That is a weird issue you face here.

from simple-url-shortener.

cyni0s avatar cyni0s commented on June 12, 2024

I'm happy with that fix and if I'm the only person confrontated with this I would close the issue now. Thanks for your quick help and time :)

from simple-url-shortener.

Related Issues (9)

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.