Theme Check
[resolved] [Plugin: Theme-Check] Notice: Uninitialized string offset: 7952 in i18n.php on line 27 (3 posts)

  1. edcousins
    Posted 3 years ago #

    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?




  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    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.

  3. edcousins
    Posted 3 years ago #

    Thanks Otto.

    I'll check that out!

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

    - Ed

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.