Community & Support

Notice: Undefined offset: 1 in views_block_view() (line 519 of C:\xampp\htdocs\drupal7\sites\all\modules\views\views.module).

I have started getting the following error on my Drupal 7 installation:

Notice: Undefined offset: 1 in views_block_view() (line 519 of C:\xampp\htdocs\drupal7\sites\all\modules\views\views.module).

Some background:

The site was running fine on my localhost for the past few days. I was creating blocks to displays list of articles and image albums and to control their visibility on different pages. All of a sudden, I started getting the above error message. I though, one of my block view has caused to problem, so I deleted the recently modified block view. That did not solve the problem. One by one, I deleted all views, but still I get the error. I reinstalled the Views module but no luck.

Surprisingly, I get the error only on the home page and no other page. If I redefine a home page instead of using the default one, I start getting error on that page. I don't get the error on any other page.

Perhaps something has become corrupted? Any help to fix the issue will be appreciated.

Comments

Check this out

Looks like this issue on the views issue queue could be the same problem:

http://drupal.org/node/1013666

Somehow the problem got solved.

Thanks for the link.

I deleted all views and blocks but was still getting the error. I even applied the patch mentioned at http://drupal.org/node/1013666#comment-3935348 but no help. Finally deleted all views and blocks related records that I created from the block and block_custom tables and the the problem disappeared. I believe there is some serious problem that should be fixed.

I had this error too.

I had this error too. Deleted the bad view blocks from the database and that managed to rectify the errors on the page.

this is fixed in current

this is fixed in current views-3.x-dev. The issue for this on views is here: http://drupal.org/node/1151032 and the patch that was applied is the last one: http://drupal.org/files/issues/1151032-block-update.patch

This happened to me when I

This happened to me when I created a clone block on page views and joined the block to a page.
When I deleted the block from views page began to see this error message.

I solved the problem by recreating the clone in views page and then detach the block from the specific page.
After that you can return to the page views and delete again the block cloned :)

nobody click here