I have installed this module, enabled it and the widgets, but when I put any of the PHP code from the documentation into blocks, I get "Widget Array not found."

Essentially, duplicating this problem from 2011. http://drupal.org/node/1202216

Any help would be greatly appreciated!

Comments

jvandervort’s picture

Can you post your php code?
Also, you might try clicking save on the admin config screen to resave the javascript file.

Vigile’s picture

  <?php
print theme('jstimer', array(
  'widget_name' => 'jst_timer',
  'widget_args' => array(
    'datetime' => '2015-05-02T08:11:00-08:00'
  )
));
?>

I have tried playing with the settings in the jstimer admin, including making it set to "every page" rather than nodes.

The inline HTML code does work though.

jvandervort’s picture

Give this a try:

<?php
print theme('jstimer', 'jst_timer', array(
  'datetime' => '2015-05-02T08:11:00-08:00'
));
?>

The 6.x jstimer module still uses the older format. The README.txt that comes with the module includes the correct formats.

Vigile’s picture

Thanks!!

Vigile’s picture

Status: Active » Closed (fixed)