• Resolved ochtendgrijs

    (@ochtendgrijs)


    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/. 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)
  • 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.

    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.