Comments (6)
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.
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.
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.
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.
good. That is a weird issue you face here.
from simple-url-shortener.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-url-shortener.