WordPress.org

Ready to get started?Download WordPress

Forums

Codestyling Localization
[resolved] The plugin broke my site! (4 posts)

  1. Techload
    Member
    Posted 3 years ago #

    Hi,
    I got this error that won't go away even after disabling the plugin. And it breaks the site completelly when viewed in IE:

    Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/techl683/public_html/wp-includes/pomo/streams.php on line 113

    Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/techl683/public_html/wp-includes/pomo/streams.php on line 113

    Please, help!

  2. anmari
    Member
    Posted 3 years ago #

    Bit of googling helps..

    I saw a note somewhere about it being due to empty .po files.
    The suggestion was to delete the po files in question.

    also see
    this
    http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en

    search the page for

    wp-includes/pomo/streams.php on line 113

    and see response

  3. anmari
    Member
    Posted 3 years ago #

    For me was only occuring on one language.
    I entered a translation for one field and the regenerated the .mo file.
    Problme solved.

    Thanks for great localisation plugin!

  4. codestyling
    Member
    Plugin Author

    Posted 3 years ago #

    This has been solved with version 1.99.8 of this plugin.
    Reason of error: The plugins did generate a *.mo file on an empty catalog.
    Empty catalog means, that there are no translations at all. But the fix doesn't solve the situation while having "damaged" *.mo files. Please delete the affected *.mo files first.

    Fix: You will get now an error message while trying to create empty *.mo files. So please translate at least one entry to be able to produce a valid mo-file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic