I am not sure if this issue is related to the views module or the calendar module. I have the default template for calendar views which works except for the fact that when I go to look at the list of blocks for the site I get the following error:

Notice: Undefined index: calendar-block_1 in _block_rehash() (line 411 of /home/content/70/5660770/html/modules/block/block.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'stga-views-Calendar-block_1' for key 2: INSERT INTO {block} (module, delta, theme, status, weight, region, pages, cache) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => views [:db_insert_placeholder_1] => Calendar-block_1 [:db_insert_placeholder_2] => stga [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => -1 [:db_insert_placeholder_6] => [:db_insert_placeholder_7] => -1 ) in drupal_write_record() (line 7136 of /home/content/70/5660770/html/includes/common.inc).

When I disable to view this error goes away.

Any help would be appreciated.

Thanks.

Comments

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Thambos’s picture

Status: Closed (fixed) » Active

How did you fix this? I have the same problem now after fixing a view issue (https://drupal.org/node/1593882#comment-7529943)

EDIT: I managed to fix it following Step 7 on the linked comment, but I'm still not sure if that is the best solution. Any other input would be appreciated. Thanks.

tapas_talukder’s picture

Issue summary: View changes

Same problem is here how will be fixed the issue?

mattyy21’s picture

idem.

apaderno’s picture

Version: 7.x-3.4 » 7.x-3.x-dev
Neslee Canil Pinto’s picture

Status: Active » Closed (outdated)

Hi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Close this as Outdated.