Problem/Motivation
In Drupal 10.2.7, creating/editing a new Search API page errors out, with the following error in drush ws
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.search_api_page.canonical" does not exist
Steps to reproduce
- Install latest stable/dev version of Search API Pages on Drupal 10.2.7
- Attempt to create/edit Search API page
Result: white error screen appears. In case a new page is being created, it will not be assigned a path.
Proposed resolution
Deleting line 32 src/Entity/SearchApiPage.php, that defined the canonical link completely fixes the issue.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
gpo commentedEdit: state specific Drupal version in steps
Comment #3
jjwfcd commentedthe same problem
drupal 10.3
line 32 is already comments out default
how can I make it work to create search page?
Comment #6
asilva3 commented@jjwfcd I have created a patch https://git.drupalcode.org/project/search_api_page/-/merge_requests/10
Comment #7
jjwfcd commented@asilva3
thank you very much!
I ll patch it and test
Comment #8
anybodyI'm not able to reproduce this in latest stable version with Drupal 10.3.2 - does this only happen with 8.x-1.x-dev?
Currently looks as this only happens in specific cases?
Please provide details to proceed or a backtrace.
Comment #9
jay.dansand commentedThis just bit me - I don't know if it was related, but it occurred after updating Drupal core from 10.4.0 to 10.4.3.
Started receiving this error when trying to save Search API Pages pages, and also it prevented config import:
#6 fixed it for me.
Search API Page version 1.1.0
Drupal core version 10.4.3
Comment #11
karlsheaFixed in #3554064: Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.search_api_page.canonical" does not exist.