When you install the theme after the new twitter API i get these errors:

  • Notice: Undefined variable: use_twitter in ninesixtyrobots_preprocess_page() (line 60 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).
  • Notice: Undefined variable: data in ninesixtyrobots_preprocess_page() (line 80 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).
  • Notice: Trying to get property of non-object in ninesixtyrobots_preprocess_page() (line 80 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).
  • Warning: array_rand() expects parameter 1 to be array, null given in ninesixtyrobots_preprocess_page() (line 80 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).
  • Notice: Undefined variable: data in ninesixtyrobots_preprocess_page() (line 80 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).
  • Notice: Trying to get property of non-object in ninesixtyrobots_preprocess_page() (line 80 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).
  • Notice: Trying to get property of non-object in ninesixtyrobots_preprocess_page() (line 82 of /var/www/d7/stage.ld/drupal-7.23/sites/all/themes/ninesixtyrobots/template.php).

Does somebody knows how to fix it?

Comments

tsbah’s picture

I had the same output displayed by this theme.
I commented out lines 80-81 in template.php. And the notices are now gone.

Anonymous’s picture

The neutralization tsbah recommends works. But I would like to know if the issue will be fixed. Did I understand correctly that the problem occurred because Twitter updated its API and now the code used in 960 Robots for the slogan has become obsolete?
Thanks!

apaderno’s picture

Version: 7.x-1.2 » 7.x-1.x-dev