Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Pronco on
I'm trying to create a new block with no luck
user error: Duplicate entry '' for key 3
query: INSERT INTO boxes (title, body, info, format) VALUES ('Hello', 'Hello', '', 1) in /home/egyarabi/public_html/drupal/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /home/egyarabi/public_html/drupal/includes/common.inc:384) in /home/egyarabi/public_html/drupal/includes/common.inc on line 192.
What does it supposed to be ?
This error occured during creating a new block
Comments
new block
Check and see if you already have a block you created with a blank info field. If you add Hello there as well it may work.
created one block
I've already created a previous block. but for now I'm not able to create another one
---
I'm a code junkie security enthusiast
- http://pronco.manalaa.net
It seems that you have not
It seems that you have not filled out your Block description when creating your blocks. It is the third text area and right above the submit button. You are allowed to create one like that but the second is considerred to have a duplicate field. This is for the block overview page, so only you will see the description.
Yeah! It works
It is REQUIRED for uniqueness. Which means it doesn't allow duplicates
Thanks
---
I'm a code junkie security enthusiast
- http://pronco.manalaa.net