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

  1. Install latest stable/dev version of Search API Pages on Drupal 10.2.7
  2. 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

Command icon 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

gpo created an issue. See original summary.

gpo’s picture

Issue summary: View changes

Edit: state specific Drupal version in steps

jjwfcd’s picture

the same problem

drupal 10.3

line 32 is already comments out default

how can I make it work to create search page?

asilva3 made their first commit to this issue’s fork.

asilva3’s picture

jjwfcd’s picture

@asilva3
thank you very much!
I ll patch it and test

anybody’s picture

I'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.

jay.dansand’s picture

This 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:

Unexpected error during import with operation update for search_api_page.search_api_page.PAGE_MACHINE_NAME: Route "entity.search_api_page.canonical" does not exist.

#6 fixed it for me.

Search API Page version 1.1.0
Drupal core version 10.4.3

asilva3 changed the visibility of the branch armando to hidden.

karlshea’s picture

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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