Title: Unknown variable &#039;formats&#039; in content.php?
Last modified: August 30, 2016

---

# Unknown variable 'formats' in content.php?

 *  Resolved [ochtendgrijs](https://wordpress.org/support/users/ochtendgrijs/)
 * (@ochtendgrijs)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/unknown-variable-formats-in-contentphp/)
 * Quick bug report (not sure if this is the place for it, but hey): I just noticed
   one of my blogs was showing the following PHP notice: Undefined variable: formats
   in […] on line 34. (It’s running Scrawl 1.0.7.)
 * This variable does get referenced in content.php at line 34 but is only defined
   within scrawl_post_format(), which doesn’t get called until later (line 35, actually).
   In fact, the formats check should probably not even be there: it is handled by
   scrawl_post_format() anyway.
 * I fixed it like described here: [http://janboddez.be/2015/08/a-small-theme-fix/](http://janboddez.be/2015/08/a-small-theme-fix/).
   Of course, depending on your error reporting level, you may not even see this
   notice. (In which case it doesn’t really do harm, either.)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/unknown-variable-formats-in-contentphp/#post-6486299)
 * Yes, this is the perfect place to report bugs. Good catch, thank you!
 * I see the notice on my test site and will have our developers fix it up for the
   next version.
 * Thanks very much for the detailed report and fix, I will pass it on.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/unknown-variable-formats-in-contentphp/#post-6486338)
 * Our developer has fixed this issue and the update will be included in the next
   version of the theme. Thanks again for the report.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unknown variable 'formats' in content.php?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/scrawl/1.0.13/screenshot.png)
 * Scrawl
 * [Support Threads](https://wordpress.org/support/theme/scrawl/)
 * [Active Topics](https://wordpress.org/support/theme/scrawl/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/scrawl/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/scrawl/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/unknown-variable-formats-in-contentphp/#post-6486338)
 * Status: resolved