When you have a typo in your site_settings token, like [site_settings:job_image] , you get an error after the explode of the token name on line 124 in site_settings.token.inc. We can solve this by adding an extra check to make sure key 1 exists on the $name_parts array.

// Break apart name.
$name_parts = explode('--', $name);
$fieldset = $name_parts[0];
$type = isset($name_parts[1]) ? $name_parts[1] : NULL;
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

kensae created an issue. See original summary.

kensae’s picture

Status: Active » Needs review

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

  • scott_euser committed 78d2cade on 8.x-1.x
    Issue #3372599 by kensae: When token is not correctly formatted, you get...
scott_euser’s picture

Status: Needs review » Fixed

Thanks! This is fixed

Status: Fixed » Closed (fixed)

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

stijnhau’s picture

Can there be a release that contains this fix?

kensae’s picture

@scott_euser Great that this issue has been fixed! I noticed I didn't get a credit for my contribution. Can you fix this pls?