user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type for db_type_placeholder' at line 1 query: UPDATE blocks SET module = 'calendar', delta = '0', theme = 'garland', status = 1, weight = -1, region = 'left', title = '' WHERE 126 = unsupported type for db_type_placeholder in ./includes/common.inc on line 3436.

CommentFileSizeAuthor
#6 date-datetools-545466-1.patch476 bytescolinsherry

Comments

dpatte’s picture

Have the same error, but WHERE 109 = unsupported...

mikew_is’s picture

I too am having a similar issue after adding a new date wizard, i gave it a different name to the standard and cannot find any solution now.

rmanola’s picture

Mee too

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type for db_type_placeholder' at line 1 query: UPDATE blocks SET module = 'calendar', delta = '0', theme = 'deco', status = 1, weight = -1, region = 'left', title = '' WHERE 31 = unsupported type for db_type_placeholder in /home/rmanola/www/drupal_travou/includes/common.inc on line 3467.

csc4’s picture

I have this problem too - with the addition of a problem with field pages too.

# user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type for db_type_placeholder' at line 1 query: UPDATE blocks SET module = 'calendar', delta = '0', theme = 'garland', status = 1, weight = -1, region = 'left', title = '' WHERE 21 = unsupported type for db_type_placeholder in C:\drupal\includes\common.inc on line 3468.
# user warning: Field 'pages' doesn't have a default value query: INSERT INTO blocks (module, delta, theme, status, weight, region, custom, throttle, visibility, title, cache) VALUES ('views', 'calendar_event-calendar_block_1', 'garland', 1, -1, 'left', 0, 0, 0, '', 1) in C:\drupal\includes\common.inc on line 3468.
# user warning: Field 'pages' doesn't have a default value query: INSERT INTO blocks (module, delta, theme, status, weight, region, custom, throttle, visibility, title, cache) VALUES ('views', 'calendar_event-block_1', 'garland', 1, -1, 'left', 0, 0, 0, '', 1) in C:\drupal\includes\common.inc on line 3468.

Has anyone come up with a workaround? or even better a fix!

graytech’s picture

Any update on this problem? I'm having the same issue.

colinsherry’s picture

Version: 6.x-2.3 » 6.x-2.4
Assigned: Unassigned » colinsherry
Status: Active » Needs review
StatusFileSize
new476 bytes

When creating a calendar block via the date tools wizard the date_tools_wizard_add_block was passing the block id (bid) instead of the actual field name to drupal_write_record. This only occurs on an update.

The attached patch changes line 812 in date/date_tools/date_tools.module from drupal_write_record('blocks', $block, array($block->bid)) to drupal_write_record('blocks', $block, 'bid').

Breanainn’s picture

thanks colinsherry , i couldn't apply it with the patch tool for some reason (didn't spoend any time figuring out why) did it manually and worked like a charm

karens’s picture

Status: Needs review » Fixed

Committed. Thanks :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.