WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Theme-Check] Notice: Uninitialized string offset: 7952 in i18n.php on line 27

[Resolved] [Plugin: Theme-Check] Notice: Uninitialized string offset: 7952 in i18n.php on line 27

  • edcousins
    Member

    @edcousins

    Hey guys,

    Getting this error while trying to check my theme. Works fine for Twently Eleven though.

    Notice: Uninitialized string offset: 7952 in /wp-content/plugins/theme-check/checks/i18n.php on line 27

    It won’t return any check results at all, just line after line of this error. Any ideas what could be causing this?

    Thanks,

    Ed

    http://wordpress.org/extend/plugins/theme-check/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)
    Keymaster

    @otto42

    I’d say that you have something seriously wrong in your theme. Mismatched parentheses, probably. That check in particular is a bit sensitive to looking at correct code, since it’s trying to do some wacky PHP parsing.

    Note that it *does* care about parenths inside strings inside translation functions. Translation functions are supposed to translate phrases whole, not segments of them. The check isn’t perfect, but it’s not really meant to be perfect, just indicative.

    edcousins
    Member

    @edcousins

    Thanks Otto.

    I’ll check that out!

    EDIT: Found the issue, and it was a translation string – thanks!!

    – Ed

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Theme-Check] Notice: Uninitialized string offset: 7952 in i18n.php on line 27’ is closed to new replies.