Crawling broken on D11

Created on 19 January 2025, 4 months ago

Problem/Motivation

Maybe the main error:
Deprecated function: Creation of dynamic property Drupal\boost\BoostCacheGenerate::$config is deprecated in Drupal\Core\Batch\BatchStorage->load() (line 57 of core/lib/Drupal/Core/Batch/BatchStorage.php).

Maybe just a follow up error:

Warning: unserialize(): Error at offset 13300 of 49995 bytes in Drupal\Core\Batch\BatchStorage->load() (line 57 of core/lib/Drupal/Core/Batch/BatchStorage.php).

Steps to reproduce

Using composer test with lenient on D11 and try to crawl.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany c-logemann Frankfurt/M, Germany

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

Comments & Activities

  • Issue created by @c-logemann
  • 🇧🇪Belgium davidiio

    Hi,

    We installed boost on Drupal 11.1.3 with patch from https://www.drupal.org/project/boost/issues/3428282 📌 Automated Drupal 11 compatibility fixes for boost Needs review and as far as I can tell the dynamic property issue can be solved by just creating the property in the class BoostCacheGenerate.php

    We added

      /**
       * BoostCache file.
       *
       * @var \Drupal\Core\Config\ConfigFactoryInterface
       */
      protected $config;
    

    And we were able to use button "Generate entity paths default set" when filling the option "Entity path strategy (default set)" with "node:article" it generated boost cache files for articles.

    It also worked with "xml sitemap paths to crawl and process" set to "/sitemap.xml" (sitemap generated with the module simple_sitemap) and clicking "Generate xmlsitemap (crawl) paths"

  • 🇨🇦Canada joseph.olstad

    Thanks, I updated the Merge request for Drupal 11, I think it's good to go now

    #3428282-19: Automated Drupal 11 compatibility fixes for boost

Production build 0.71.5 2024