• On php 7.1 I have such errors

    
    Warning: Illegal string offset 'uri' in /server_path/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 861
    
    Warning: Illegal string offset 'blog_id' in /server_path/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 862
    
    Warning: Illegal string offset 'post' in /server_path/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 863
    
    Warning: Illegal string offset 'key' in /server_path/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 864
    
    Warning: Illegal string offset 'headers' in /server_path/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 870
    
    Fatal error: Uncaught Error: Cannot use string offset as an array in /server_path/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:870
    

    To resolve the problem we need replace variable type definition:

    $wp_cache_meta = ''; to $wp_cache_meta = array(); in wp-cache-phase2.php

    • This topic was modified 9 years, 4 months ago by Timur Kamaev.

The topic ‘Fatal error on PHP 7.1’ is closed to new replies.