1. while adding new booking:
user warning: Field 'subtype' doesn't have a default value query: INSERT INTO inside_bookings_records (resource_id, type, start, end, name, description, rrule, priority, status) VALUES (1, 1, '2009-08-24 13:20:00', '2009-08-24 16:20:00', 'встреча', 'вввв', '', 0, 4)
no matter dev or alpha version, fresh install.
2. what are meanings of type and subtype fields?
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | Added .txt to post | 1.71 KB | matholum |
| #16 | bookingsapi.557744-2-d6.patch | 2.84 KB | Anonymous (not verified) |
| #15 | patch_output2.jpg | 34.81 KB | matholum |
| #14 | bookingsapi.557744-2-d6.patch | 2.96 KB | Anonymous (not verified) |
| #11 | patch_output.jpg | 41.79 KB | matholum |
Comments
Comment #1
stanley78 commentedhmm.. very strange
perhaps later I'll get the same with not nullable rrule, rrule_until, created, changed.
Comment #2
Anonymous (not verified) commentedType and Subtype should be used later on - in other words "for historical reasons" ;)
This seems more like a problem with Bookings API, and I'm looking into it :)
Comment #3
Anonymous (not verified) commentedWhich versions of Drupal are you using? Which database (and version)? Which version of PHP?
Could you try to allow NULL values in type and subtype (NULL=yes) in the table and test whether it would be working then?
Comment #4
Anonymous (not verified) commentedSetting to fixed - feel free to reopen if new information is available or if the problem persists.
Comment #6
matholum commentedI am having the same problem, dev or alpha versions of both. I am running Drupal 6 with php 5.2.8 and mysql 5.1.30 on my own apache 2.2.11 server. I have resources defined but I get the following when I try to save/create a booking.
Any help would be much appreciated.
-Matt
Comment #7
matholum commentedComment #8
Anonymous (not verified) commentedApologies for the delay.
Did you run the update-script after upgrading the version?
Comment #9
matholum commentedYes I did. I even tried a fresh install of both I believe. Either way I just ran update.php again and still no change (no updates either). Any ideas?
Comment #10
Anonymous (not verified) commentedCould you test the attached patch? The subtype field is actually unneeded and it will disappear with the cck-change for the records, thus we are now allowing null-values for it.
Comment #11
matholum commentedOk, I'm not the best with patches as I have only done one before however I'm pretty sure I'm doing it right. I copied the bookingsapi.install to my GnuWin32\bin folder since that was the only file modified and ran the patch. I get an error (see attachment) though so I'm not sure what to do now...
Comment #12
matholum commentednever mind... google told me to add --binary and it worked... one sec and i will see if it worked (updating drupal now)
Comment #13
matholum commentedOk, now I get this when I try to add a booking...
Comment #14
Anonymous (not verified) commentedPlease test the attached patch (or wait for the next dev, it's already committed). Dont forget to run update.php afterwards :)
(I will port this back to 1.x as soon as its fixed).
Comment #15
matholum commentedOK, I got another patch error but I don't think there is anything I can do this time. It says it is a malformed patch at line 15...
Comment #16
Anonymous (not verified) commentedApologies, wrong file.
Comment #17
matholum commentedLol, this doesn't seem to like me today. It says Hunk #1 failed at 1 and Hunk #6 failed at 489. Here is the file it created (added .txt to post). I don't know if that means that it is ok or not now...
Comment #18
matholum commentedNoob... I feel stupid. The Hunk failure means that that was already updated, probably from the first patch. The problem I ran into was that it was the same version number and thus update.php did not work. I ended up wiping the site (nothing was on it anyways) and installed it from scratch with the patched file and everything worked great. I was able to use Public Bookings perfectly.
Thanks for all your help tirsales, I appreciate it!
-Matt