Problem/Motivation

I am using drupal version 10 and version 2.0.3 of this module and I get the following error.

Call to undefined method Drupal\Core\Render\Renderer::renderInIsolation() in /var/www/cms/web/modules/contrib/shortcode/src/Plugin/ShortcodeBase.php:403

Issue fork shortcode-3469154

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

luigisa created an issue. See original summary.

stevenx’s picture

StatusFileSize
new621 bytes

i created the patch to apply it in my current drupal until it gets merged...

edit: this patch is not working, use #3

stevenx’s picture

StatusFileSize
new677 bytes

sorry missed last line in patch3

luigisa’s picture

@stevenx From the MR I sent you can get the patch with the same solution you sent later.

stevenx’s picture

How would I apply that patch from MR in composer.json?
I always use patch files...

luigisa’s picture

stevenx’s picture

thanks I did not know that, great!

swirt’s picture

Status: Active » Needs review

Changing this to needs review, to try to move this along.

luigisa’s picture

Status: Needs review » Reviewed & tested by the community
denes.szabo’s picture

Status: Reviewed & tested by the community » Closed (works as designed)

Drupal 10.2 and earlier reached End of Life when 10.3 was released.

The renderInIsolation() method was introduced in Drupal core 10.3.0. Modules targeting current core releases (Drupal 10.3+ / 11+) require core to be up to date. Please update your Drupal core instance to 10.3 or higher.

I am increasing the module's minimal Drupal core requirement to ^10.3 || ^11 in the next release. Closing as Works as designed.

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.