• Since I upgraded to php 7.4 I do get in the admin interface of wordpress (newest version)

    y offset on value of type bool in /home/XXX/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 3716

    on the frontpage for customers I do see:

    Notice: Trying to access array offset on value of type bool in /home/XXXX/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 3716

    Is this something that will be fixed quickly? Or do I need to change some settings?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter sanctibrouwer

    (@sanctibrouwer)

    any update? Or another dead plugin?

    • This reply was modified 5 years, 2 months ago by sanctibrouwer.

    did you ever find a solutions. i having this issue as well

    Thread Starter sanctibrouwer

    (@sanctibrouwer)

    Nope. No reply at all ??

    Why don’t you rollback to php 7.3? I had this issue and fixed this by switching back to php 7.3!

    Thread Starter sanctibrouwer

    (@sanctibrouwer)

    Yeah I can rollback. But how long? 7.4 was released some time ago already. Not even e notice when the plugin will be updated.

    Its easy to fix these errors one by one untill you fix them all, just search for every error message on Google and you will be able to edit the code, unfortunately I don’t have time for upgrading to php 7.4 and fixing all other plugins errors!

    since its so easy @egycode google (Trying to access array offset on value of type bool in /home/XXXX/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 3716) and let me know what you find ive been looking for 1 month now

    but i did figure it out
    starting at line 3712 just copy and paste

    add_filter( 'option_preload_cache_counter', 'option_preload_cache_counter' );
    
    function check_up_on_preloading() {
    	$value = get_option( 'preload_cache_counter' );
    	if ( is_array($value) && $value[ 'c' ] > 0 && ( time() - $value[ 't' ] ) > 3600 && false == wp_next_scheduled( 'wp_cache_preload_hook' ) ) {
    		if ( is_admin() ) {
    			if ( get_option( 'wpsc_preload_restart_email' ) < ( time() - 86400 ) ) {
    				wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Preload may have stalled.', 'wp-super-cache' ), get_bloginfo( 'url' ) ), sprintf( __( "Preload has been restarted.\n%s", 'wp-super-cache' ), admin_url( "options-general.php?page=wpsupercache" ) ) );
    				update_option( 'wpsc_preload_restart_email', time() );
    			}
    			add_action( 'admin_notices', 'wpsc_preload_restart_notice' );
    		}
    		wp_schedule_single_event( time() + 30, 'wp_cache_preload_hook' );
    	}
    }

    Thanks @chillinchiz , this corrects the error. Plz WP SUPER CACHE, could you plz release an update ?

    Thanks @chillinchiz. Your fix has been added to the plugin. It’s not yet live but it is in the development version. You can grab it here: https://odd.blog/y/2o

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Php 7.4 and WP supercache’ is closed to new replies.