Problem/Motivation

When using token replacement in CKEditor to display the cookies list and cookie consent button on a page, the following message is displayed "This block is broken or missing. You may be missing content or you might need to enable the original module." this is because the block name given to createInstance does not match the block to be created in the cookiepro_plus_tokens function.

Steps to reproduce

  • Allow token replacement in CKEditor.
  • Enable cookiePro tokens.
  • Add new content with a cookie pro token (eg [cookiepro_plus:cookie_list]).
  • The above-mentioned message is displayed instead of the desired content.

Proposed resolution

Change the name from cookie_pro to cookie_pro_plus in the cookiepro_plus.module file cookiepro_plus_tokens function.

Remaining tasks

Merge the code.

User interface changes

None

API changes

None

Data model changes

None

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

dtfabio created an issue. See original summary.

dtfabio’s picture

dtfabio’s picture

Assigned: dtfabio » Unassigned
Issue summary: View changes
Status: Active » Needs review
andreasderijcke’s picture

Assigned: Unassigned » andreasderijcke

  • 401eb6f committed on 1.0.x
    Issue #3326546 by dtfabio: CookiePro plus tokens in CKEditor are not...
andreasderijcke’s picture

Title: CookiePro plus tokens in CKEditor are not being replaced. » CookiePro plus tokens are broken - blocks not found
Assigned: andreasderijcke » Unassigned
Status: Needs review » Fixed

Nice find. Completely missed this one in renaming of the module.

Status: Fixed » Closed (fixed)

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