Forums

[Plugin: WP Super Cache] 0.9.9.3 not working with WordPress 3.0 (24 posts)

  1. jfoulquier
    Member
    Posted 1 year ago #

    Hello,

    I use WP Super Cache since a while now. I've just upgraded my WordPress site to the 3.0 version. Since the upgrade I got the error, which is displayed at the top of my website :
    "Notice: Undefined index: wp_cache_key in /home/coucou/www/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 288"

    Is it a known issue ?

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

  2. jfoulquier
    Member
    Posted 1 year ago #

    Additionnal datas :

    I went to my wp-admin panel to desactivate wp-super-cache. I got the message in return :

    Warning: include(/home/coucou/www/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /home/coucou/www/wp-settings.php on line 60
    
    Warning: include() [function.include]: Failed opening '/home/coucou/www/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/php5') in /home/coucou/www/wp-settings.php on line 60

    And now, at the top of my website, is displayed :`
    Warning: include(/home/coucou/www/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /home/coucou/www/wp-settings.php on line 60

    Warning: include() [function.include]: Failed opening '/home/coucou/www/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/php5') in /home/coucou/www/wp-settings.php on line 60`

    On line 60 of my wp-settings.php file, I have :

    if ( WP_CACHE )
    	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
  3. Donncha O Caoimh
    Member
    Posted 1 year ago #

    Turn off "display errors", that undefined variable message is only a warning and it's harmless.

    Edit wp-config.php and remove the line that defines "WP_CACHE", that will stop it looking for advanced-cache.php

  4. jfoulquier
    Member
    Posted 1 year ago #

    Thanks. How do you deactivate display errors ?

  5. jfoulquier
    Member
    Posted 1 year ago #

    In my php.ini I have :
    display_errors = Off

    (and no error_reporting line)

  6. Donncha O Caoimh
    Member
    Posted 1 year ago #

    It's being set on somewhere unfortunately. That's the directive you need to disable. You can try search for the string "display_errors" if you have ssh access to your site, just grep for it. Some PHP script may have enabled it.

  7. jfoulquier
    Member
    Posted 1 year ago #

    I've done some changes. I don't have the error code now. But WP Super Cache is not caching any page anymore... Great :-/ I may have done some mistake, perhaps I should digg it. (/options-general.php?page=wpsupercache says all is ok but 0 cached pages)

  8. Donncha O Caoimh
    Member
    Posted 1 year ago #

    Did you regenerate the stats?

  9. jfoulquier
    Member
    Posted 1 year ago #

    Now I did, and now it shows stats (> 0). However, I don't see any "cached by wp super cache" in the html generated code ?

    example : http://www.greenunivers.com/2010/06/indicateur-boursier-green-europe-6-du-11-au-17-juin-38719/

  10. Donncha O Caoimh
    Member
    Posted 1 year ago #

    Works for me, I see the cached message. Make sure you're logged out.

  11. greencurmudgeon
    Member
    Posted 1 year ago #

    I couldn't get into the plugins page until I deleted Super Cache; it worked with my installation of 2.9.2, but no such luck with 3.0.

  12. morphean
    Member
    Posted 1 year ago #

    make sure you have updated your wp-config file, it differs from version in 2.9.2 calling wp-settings.php an include, if your config file is not updated to reflect the new 3.0 changes WP-super cache will refuse to move from the WP_CACHE needs to be enabled message..

    if you just move your db settings into the wp-config-sample.php and then rename it wp-config.php you should be good to go...

  13. jfoulquier
    Member
    Posted 1 year ago #

    Thx everybody. Appreciate your support.

  14. Marine
    Member
    Posted 1 year ago #

    Hi, I have some problem with my blog.

    When I activated the plugins WordPress.com Stats and WP Super Cache, I
    can't log out from dashboard. Then I deactivate thes plugins. After this my blog is loading with a blank page.
    I also changed wp-config.php and .htaccess files from saved, but still have problem.

    After this error, I create an .php file
    ( <?php
    Phpinfo();
    ?> )
    and add into my blog's wpconfig.php after(<?php)
    thie code ( define(WP-DEBUG , true); ) , receive this message

    Warning: include( /banugorc.info/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /banugorc.info/wp-settings.php on line 60

    Warning: include() [function.include]: Failed opening ' banugorc.info/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in banugorc.info/wp-settings.php on line 60

    Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in banugorc.info/wp-includes/functions.php on line 3323

    Help please, tell me how can I fix this problem?

  15. Donncha O Caoimh
    Member
    Posted 1 year ago #

    Try removing the line containing the text WP_CACHE in wp-config.php. Does that help?

  16. Marine
    Member
    Posted 1 year ago #

    I remove define( 'WP_CACHE', true );from wp-config.php but nothing.

  17. Donncha O Caoimh
    Member
    Posted 1 year ago #

    There's a PHP error somewhere. If you're still getting the missing advanced-cache.php error then WP_CACHE is defined somewhere.

  18. Marine
    Member
    Posted 1 year ago #

    I removed WP-cachedefine( 'WP_CACHE', true ); codes from .htaccess, delete folder from wp-content/plugins and also delete wp-cache-config.php.

    Where else can I find an php error?

  19. Donncha O Caoimh
    Member
    Posted 1 year ago #

    The PHP error is usually listed in your PHP error log. I don't know where that is on your server though. Look at the output of phpinfo() to find out.

  20. Marine
    Member
    Posted 1 year ago #

    There isn't any error in my hosting's Errore Loge.
    Will my blog work if I rename the old blog's files and add ther new WP CMS files, my blog's postes, photos and etc?

  21. Donncha O Caoimh
    Member
    Posted 1 year ago #

    If there's no error it's probably happening really early in the PHP process. I've noticed that happen occasionally when editing files that are loaded before most of WordPress is loaded.

    Double check wp-config.php. There's probably an error in there.

  22. Marine
    Member
    Posted 1 year ago #

    Now I have an other error in functions.php on line 3323

    "Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in"

    How can I fix this error?

  23. Donncha O Caoimh
    Member
    Posted 1 year ago #

    That's not an error, it's a warning. It's not caused by wp-super-cache though. Look through your plugins for the string "add_option" and you should find one that has more than 2 parameters. That'll be the one causing the problem.

  24. Marine
    Member
    Posted 1 year ago #

    Thanks a lot for your help! I just delete snazzy_cache-0.html and sexy bookmarks plugin from plugins folder and my blog start wotking :-)
    Also I have found an error in my tham's function.php, I fix it, now all is OK :-)
    Yhanks :-)

Topic Closed

This topic has been closed to new replies.

About this Topic