WordPress.org

Ready to get started?Download WordPress

Forums

WP-HTML-Compression
[resolved] PHP Catchable fatal error (5 posts)

  1. biswajeet
    Member
    Posted 2 years ago #

    Hi I am this error -
    PHP Catchable fatal error: Method WP_HTML_Compression::__toString() must return a string value in /wp-includes/functions.php on line 3335

    thanks.

    http://wordpress.org/extend/plugins/wp-html-compression/

  2. Steven Vachon
    Member
    Plugin Author

    Posted 2 years ago #

    Were you attempting to load an empty HTML document?

  3. biswajeet
    Member
    Posted 2 years ago #

    I just changed the update version code to -
    @add_action('get_header', 'wp_html_compression_start', 1);

    And now its working fine...

    Check it out

  4. Steven Vachon
    Member
    Plugin Author

    Posted 2 years ago #

    If you have a theme that does not call get_header(), such as single page themes, then compression will not occur.

  5. Steven Vachon
    Member
    Plugin Author

    Posted 2 years ago #

    Error no longer displayed in 0.5.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic