Giter Club home page Giter Club logo

Comments (8)

Gargaj avatar Gargaj commented on May 30, 2024

Does removing the default value work?

from wuhu.

sesse avatar sesse commented on May 30, 2024

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.

Gargaj avatar Gargaj commented on May 30, 2024

The rows never get inserted without human-supplied value so the question is only about creation.

from wuhu.

Gargaj avatar Gargaj commented on May 30, 2024

Fixed in d9320f6

from wuhu.

sesse avatar sesse commented on May 30, 2024

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.

Gargaj avatar Gargaj commented on May 30, 2024

Yeah that column isn't even used I think, let me check

from wuhu.

Gargaj avatar Gargaj commented on May 30, 2024

Fixed in 72676bc - you might need to kill the day column manually from the db

from wuhu.

sesse avatar sesse commented on May 30, 2024

Yes, that seems to do it :-) (I just nuked the entire table and reinstalled the plugin.)

from wuhu.

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.