Forums

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

  1. edcousins
    Member
    Posted 8 months 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?

    Thanks,

    Ed

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

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 8 months 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
    Member
    Posted 8 months ago #

    Thanks Otto.

    I'll check that out!

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

    - Ed

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.