Problem/Motivation

After updating from Drupal 9.5.9 to 10.0.9 I received the error:
Error: Class "Laminas\Escaper\Escaper" not found in bugherd_page_attachments() (line 44 of modules/contrib/bugherd/bugherd.module).

Tried to install laminas/laminas-escaper (2.12.0) with:
composer require laminas/laminas-escaper

It was installed, but the error still appears.

Steps to reproduce

Upgrade Drupal to 10.0.9

Issue fork bugherd-3363513

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

almador created an issue. See original summary.

almador’s picture

Issue summary: View changes
anup.singh’s picture

Worked for me after

composer require laminas/laminas-escaper 

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

shreya_th’s picture

Hi @kwashd,
As per my knowledge replaced the usage of the Laminas Escaper with the Symfony Escaper by updating the use statement and changing the instantiation of the Escaper class. I think this solve the issue .
Also created MR for this issue . Kindly review the changes .

Thank you.

phjou’s picture

The fix doesn't seem to work, I am reverting the change to use a composer dependency.

  • phjou committed 864c971c on 8.x-1.x
    Issue #3363513 by phjou: Error: Class "Laminas\Escaper\Escaper" not...
phjou’s picture

Status: Active » Fixed

Ok I pushed a composer fix , the error seems gone for me after updating the module. Let me know if you still encounter issues.

phjou’s picture

Status: Fixed » Closed (fixed)

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