Problem/Motivation
When I Add to block on site - Search Api Page search block form its giving error on index
Error: Call to a member function id() on null in Drupal\search_api_page\Form\SearchApiPageBlockForm->buildForm() (line 112 of modules/search_api_page/src/Form/SearchApiPageBlockForm.php).
$form['search_api_page'] = [
'#type' => 'value',
Line 112 '#value' => $search_api_page->id(),
];
Error in Admin Page
Error message
Warning: Undefined array key "search_api_page" in Drupal\search_api_page\Plugin\Block\SearchApiPageBlock->calculateDependencies() (line 116 of modules/search_api_page/src/Plugin/Block/SearchApiPageBlock.php).
Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
When i use normal site of search all works fine and search perfectly. Where is the problem then?
Please help with solution.
Issue fork search_api_page-3400862
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
abhishek_gupta1 commented@Tesam, i have added changes for ": Call to a member function id() on null in" and "Warning: Undefined array key "search_api_page". and created MR. please review it
Comment #7
karlshea