Closed (fixed)
Project:
Bluecheese
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
25 Jul 2012 at 19:53 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
On the D7 test sites, if you go to a forum and then click on a post, you get the following notice-level PHP warning at the top of the page:
Notice: Undefined property: stdClass::$taxonomy in bluecheese_preprocess_node() (line 53 of /var/www/dev/new-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluecheese/template.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | bluecheese-1700596-cleanup.patch | 1.16 KB | jhodgdon |
Comments
Comment #1
drummI'd actually like to move as much logic as possible out of template.php and into drupalorg and drupalorg_crosssite module, including this. Having all the taxonomy-affecting code in one place would be great.
(Also, we can't distribute bluecheese due to trademark and branding restrictions. drupalorg is nicer since anyone can check it out of Git.)
Comment #2
jhodgdonThere are several other similar PHP warnings being generated in bluecheese_preprocess_node() on Project Issue pages:
Notice: Undefined property: stdClass::$taxonomy in bluecheese_preprocess_node() (line 37 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluecheese/template.php).
Warning: Invalid argument supplied for foreach() in bluecheese_preprocess_node() (line 37 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluecheese/template.php).
Notice: Undefined index: taxonomy in bluecheese_preprocess_node() (line 51 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluecheese/template.php).
Warning: Invalid argument supplied for foreach() in bluecheese_linksterms() (line 84 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluecheese/template.php).
Notice: Undefined index: readmore in bluecheese_preprocess_node() (line 54 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluecheese/template.php).
These are all due to bluecheese using D6 taxonomy which isn't going to work...
Comment #3
jhodgdonI'm taking this on...
Comment #4
senpai commentedTagging for Bluecheese.
Comment #5
jhodgdonIt looks like a fix for this got committed by drumm yesterday during a merge, but it was slightly messy. Here's a follow-up to clean up the left-over code.
Comment #6
senpai commented@lewisnyman, can you review and commit this cleanup patch?
Comment #7
lewisnymanMy eyes tell me this looks good, a simple code clean up. Thanks!
Comment #8
drummCommitted.