Comments (8)
Does removing the default value work?
from wuhu.
It creates the table just fine. Whether the functionality itself works or not, I honestly don't know; I haven't gotten to actually using the plugin yet.
from wuhu.
The rows never get inserted without human-supplied value so the question is only about creation.
from wuhu.
Fixed in d9320f6
from wuhu.
Somehow it doesn't work; I get just a blank page when adding something, and the PHP error log says:
[Fri May 19 01:04:26.739375 2017] [:error] [pid 18432] [client 2001:67c:a4:1:5e51:4fff:fe2f:86ef:50292] PHP Fatal error: Uncaught exception 'Exception' with message '<pre>\nMySQL ERROR:\nError: Field 'day' doesn't have a default value\nQuery: insert timetable (`date`, `type`, `event`, `link`) values ('2017-07-13 01:04:22', 'mainevent', 'event', 'http://dev.null')' in /srv/wuhu/www_admin/sqllib.inc.php:57\nStack trace:\n#0 /srv/wuhu/www_admin/sqllib.inc.php(105): SQLLib::Query('insert timetabl...')\n#1 /srv/wuhu/www_admin/cmsgen.inc.php(93): SQLLib::InsertRow('timetable', Array)\n#2 /srv/wuhu/www_admin/plugins/timetable/options.php(58): cmsProcessPost(Array)\n#3 /srv/wuhu/www_admin/pluginoptions.php(8): include('/srv/wuhu/www_a...')\n#4 {main}\n thrown in /srv/wuhu/www_admin/sqllib.inc.php on line 57, referer: https://admin.party.solskogen.no/pluginoptions.php?plugin=timetable&new=add
from wuhu.
Yeah that column isn't even used I think, let me check
from wuhu.
Fixed in 72676bc - you might need to kill the day
column manually from the db
from wuhu.
Yes, that seems to do it :-) (I just nuked the entire table and reinstalled the plugin.)
from wuhu.
Related Issues (20)
- Ask registering users for email address, too HOT 1
- Ask users for their email address, too HOT 1
- Allow votekey to be assigned after registration HOT 1
- a "video capture" upload field HOT 1
- admin hot download links HOT 2
- options to fit with black borders vs crop screenshots HOT 2
- warn if session lifetime is too low
- re-introduce i18n support
- Timetable plugin does not appear to check logged in / authorized state
- Don't put compos into results that didn't have any entries
- Defragment compos when entries are moved out HOT 1
- f'22: deleting timetable entry doesn't redirect to page
- page with all possible frontend UI elements to aid skinning the frontend
- slide editor filename extension should default to .html
- plugin to reorder slides on slide editor HOT 2
- votekey registration is racy
- Feature: Allow limiting the length of text that will go on the slide
- Feature: Compo flavor "Demoshow"
- slide editor: generate thumbnail HOT 4
- Deployment Fails: Uncaught ArgumentCountError: mysqli_connect_errno() expects exactly 0 arguments, 1 given HOT 5
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 wuhu.