Inline js added in tpl should be replaced with drupal #element or add js.

Created on 31 December 2015, over 9 years ago
Updated 20 July 2025, 8 days ago

I checked the code in the dfp_tag.tpl.php is the plane javascript. Which causes problem if scripts are moved to bottom. Which left variables in tpl file undefined and raise errors.

  <script type="text/javascript">
    googletag.cmd.push(function() {
      googletag.display("<?php print $tag->placeholder_id ?>");
    });
  </script>

Add that js in the renderable for dfp_tag function. Checked for Blocks causing problem.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India pradeep22saini

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024