Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
tsbah CreditAttribution: tsbah commentedI had the same output displayed by this theme.
I commented out lines 80-81 in template.php. And the notices are now gone.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThe 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!
Comment #3
apaderno