Title: Undefined variable: open_graphite_head
Last modified: June 20, 2022

---

# Undefined variable: open_graphite_head

 *  Resolved [paulchen](https://wordpress.org/support/users/paulchenpanther/)
 * (@paulchenpanther)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-open_graphite_head/)
 * Hi,
 * Just a very small issue: Under certain circumstances, the following PHP notice
   shows up in the error log:
 * `PHP Notice: Undefined variable: open_graphite_head in [...]/wp-content/plugins/
   open-graphite/_open_graphite.php on line 591`
 * In my WordPress instance, this happens on 404 pages when the debug log is enabled.
 * The reason seems to be that in that case neither the condition on line 480 nor
   the one on line 511 of this file evaluates to true: [https://plugins.trac.wordpress.org/browser/open-graphite/trunk/_open_graphite.php](https://plugins.trac.wordpress.org/browser/open-graphite/trunk/_open_graphite.php)
 * In that case, $open_graphite_head is never set, leading to the aforementioned
   notice.
 * Kind regards,
    Paul

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rocket Apps](https://wordpress.org/support/users/mikeyott/)
 * (@mikeyott)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-open_graphite_head/#post-15758655)
 * Good spotting Paul, I’ll look into that.

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable: open_graphite_head’ is closed to new replies.

 * ![](https://ps.w.org/open-graphite/assets/icon-256x256.png?rev=2106847)
 * [Open Graphite](https://wordpress.org/plugins/open-graphite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/open-graphite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/open-graphite/)
 * [Active Topics](https://wordpress.org/support/plugin/open-graphite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/open-graphite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/open-graphite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rocket Apps](https://wordpress.org/support/users/mikeyott/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-open_graphite_head/#post-15758655)
 * Status: resolved