Seourlroutesubscriber.php

Created on 26 October 2023, about 1 year ago

When I try to update my database with drush I get the following error :

Declaration of Drupal\seo_urls\EventSubscriber\SeoUrlRouteSubscriber::getSubscribedEvents() must be compatibl e with Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents(): array in /var/www/***/web/modules/contrib/seo_url s/src/EventSubscriber/SeoUrlRouteSubscriber.php on line 32

Drupal 10 / php 8.2.11

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium bjorn.drachman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @bjorn.drachman
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India sarwan_verma

    Hi @bjorn.drachman,
    I have fixed this issue " Seourlroutesubscriber.php" and also attached patch,
    please review and verify,

  • Issue was unassigned.
  • 🇧🇪Belgium bjorn.drachman

    Hi @sarwan_verma,

    I applied the patch update db is working but with following warning :

    Schema information for module seo_urls was missing from the database. You should manually review the module updates and your database to check if any updates have been skipped up to, and including, seo_urls_update_8000().

    And I have the white screen of death.

    Thank you,

    Bjorn.

  • 🇮🇳India sarwan_verma

    Hi @bjorn.drachman ,
    I'm not getting error my local machine
    please give me reproduce steps .

  • 🇧🇪Belgium bjorn.drachman

    Hi,
    I already removed the module cause it was causing this problem, the only thin I did was applying the patch then drush updatedb.
    Drush cr and then there was white screen so I checked in the logs and found the error :
    "Schema information for module seo_urls was missing from the database. You should manually review the module updates and your database to check if any updates have been skipped up to, and including, seo_urls_update_8000()."

    So PI don't know what is causing this but I can't seem to use the module on my system.

    Kind regards,

    Bjorn.

  • First commit to issue fork.
  • Merge request !12[#3397025] D10 compatibility fixes → (Merged) created by HitchShock
  • 🇺🇦Ukraine HitchShock Ukraine

    Implemented a patch + added new fixes.

    About the issue from bjorn, it was caused by an error during installation. That error prevented the creation of the entity table.

Production build 0.71.5 2024