Score:0

Getting issue on views import?

nz flag

Accidentally I have deleted the views relationship field. After that I am getting error when try to open views configuration page.

To fix the issue I have exported that view from site configuration single item and change in yml file. But when I import the changes getting below error.

Configuration block.block.test_local_tasks depends on the test theme that will not be installed after import.

Configuration block.block.test_main_menu depends on the test theme that will not be installed after import.

Configuration block.block.test_messages depends on the test theme that will not be installed after import.

Configuration block.block.test_powered depends on the test theme that will not be installed after import.

Please suggest.

cn flag
It looks like you deleted some blocks too. If the view isn't too complicated, I would just re-create it manually-- and in the future, always export + commit config (including views) in version control (e.g., git); that way, if you have this problem again, you can just revert the site based on your exported config, which will fix this problem in less than a minute.
Tushar avatar
nz flag
Thanks @Patrick for your suggestion. Will do same next time.
Score:1
nz flag

Now I am able to fix it by deleting the old(not in use) block present in config table.

DELETE FROM config WHERE name IN ( 'block.block.batra_uae_local_tasks', 'block.block.batra_uae_main_menu', 'block.block.batra_uae_messages', 'block.block.batra_uae_powered' );

Get help from https://www.drupal.org/project/drupal/issues/2694895 page.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.