Closed (won't fix)
Project:
Drupal core
Version:
4.6.4
Component:
block.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Oct 2005 at 22:23 UTC
Updated:
19 Jan 2006 at 14:20 UTC
When adding a block it displays an error message. Was able to create 1 block and block only. Never worked after the first time.
This is the Error Message:
"user error: Duplicate entry '' for key 3
query: INSERT INTO boxes (title, body, info, format) VALUES ('Test', 'Test', '', 1) in /home/cyrific/public_html/ost/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /home/cyrific/public_html/ost/includes/common.inc:384) in /home/cyrific/public_html/ost/includes/common.inc on line 192."
Thank You
Comments
Comment #1
cyrific commentedComment #2
Malthus commentedcyrific: you need to provide a unique description for each block that you add in block "Block description:"
Drupal devs possible actions:
Comment #3
wulff commentedAFAICT This has been fixed in HEAD.
Comment #4
gregglesIndeed - it has been fixed in head: http://drupal.org/node/11724 but not in 4.6.x
Seems that the solution is simple according to: http://drupal.org/node/14158#comment-22490
Note, I haven't tested what drumm suggests.
Comment #5
gregglesI just marked http://drupal.org/node/44013 as a duplicate of this item.
Comment #6
netlynx commentedSo, just be clear, from following various threads on this issue I believe the current status is that:
1. To fix it on 4.6.x you need to remove the unique constraint (title on 'boxes' table) in the database (I have tried this and it seems to work, but not extensively tested)
2. It won't be fixed in 4.6.x due to the requirement for a DB change.
3. It is fixed in HEAD, which refers to the coming 4.7 release.
Comment #7
gregglesAccording to Netlynx description, this is "won't fix" for 4.6.x