WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Fatal error:...wp-cache.php on line 473, wp-cache-phase1.php 377 (5 posts)

  1. Zoltan
    Member
    Posted 4 years ago #

    Hi all.

    I got a bunch of the following error message, and till when can not found a solution, fear to upload the main server,

    1.
    This one is on the bottom of plugin config page.:

    "Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-super-cache\wp-cache.php on line 473"

    the line 473 of the wp-cache.php :
    if ( preg_match( '/(Cached page generated by WP-Super-Cache on) ([0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*)/', $page[ 'body' ], $matches1 ) &&

    2.
    and this ones, is on the user side ( localhost)
    "
    Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-super-cache\wp-cache-phase1.php on line 377

    Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-super-cache\wp-cache-phase1.php on line 377

    Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-super-cache\wp-cache-phase1.php on line 377

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\wordpress\wp-content\plugins\wp-super-cache\wp-cache-phase1.php:377) in C:\xampp\htdocs\wordpress\wp-content\plugins\si-contact-form\si-contact-form.php on line 94
    "

    the line 377 of the wp-cache-phase1.php :
    " mail( $wp_cache_debug_email, '[' . addslashes( $_SERVER[ 'HTTP_HOST' ] ) . "] WP Super Cache Debug", $message );"

    php sendmail its works well, so why got the error message?
    Anybody have similar problem, or some php guru - who knows what steps have to take?

    thanks. Jean
    jean at nivovas.co.uk
    http://nivovas.co.uk

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 4 years ago #

    Dump $page[ 'body' ] using "print_r( $page[ 'body' ] );"
    Put it on line 472, just before the offending preg_match(). Does the error show anything?

    The other things are warnings, and it appears you have to configure php still. You'll have to edit php.ini, wherever that is. I don't use a Windows server so I can't help there.

  3. Elextons
    Member
    Posted 4 years ago #

    I've got the same error on shared hosting.

    It's happened when I turn off it and add new post.
    After that I turn on it and click test cache. I've got this message.

    Test your cached website by clicking the test button below.

    Fetching http://www.XXXX.com to prime cache: OK

    Fetching first copy of http://www.XXXX.com: OK

    Fetching second copy of http://www.XXXX.com: OK

    Fatal error: Cannot use object of type WP_Error as array in /home/www/virtual/XXXX.com/htdocs/wp-content/plugins/wp-super-cache/wp-cache.php on line 473

    Then I put
    Dump $page[ 'body' ] using "print_r( $page[ 'body' ] );"
    on line 472. and then I've got the message

    Parse error: syntax error, unexpected T_VARIABLE in /home/www/virtual/XXXX.com/htdocs/wp-content/plugins/wp-super-cache/wp-cache.php on line 472

    Thanks in advance.

  4. Zoltan
    Member
    Posted 4 years ago #

    @donncha thank you for your help.
    Unfortunatelly isnt worked for me. I got the same error, like @Elextons.

    Im using linux host, from a payed hosting provider, and have no access to the php.ini.

    I tried also my home server - XAMPP and apache clone on windows, but got similar errors.

    i am using now the Wp total cache, called plugin - look like good. :)

    cheers!

    http://nivovas.co.uk

  5. Donncha O Caoimh
    Member
    Plugin Author

    Posted 4 years ago #

    It was a syntax error because the previous person pasted English text as well as php code. The code to paste in was "print_r( $page[ 'body' ] );", just the code in quotes, not the "Dump the ...." text preceding it.

    The dev version of the plugin checks if the homepage returns a 404 file not found now. Sometimes WordPress can't talk to itself if your host isn't configured correctly :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic