• Hi,
    I’ve recently updated the WordPress version of my website and the A2Optimize plugin. After I updated, the website keeps failing to load and blank page is returned to the user.

    I believe this error is related to the A2Optimize plugin because when I clear the Site Cache, the website works again, but after some time (or number of access) it falls back to this error.

    When I enable the debug

    
    PHP Notice:  WP_Scripts::localize was called incorreclty. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in website/public_html/wp-includes/functions.php on line 5313
    
    PHP Warning: filemtime(): stat failed for website/wp-content/cache/a2opt-cache/... in website/wp-content/plugins/a2-optimized-wp/A2_Optimized_CacheDisk.php on line 539
    

    Does anyone know how to fix it?

    Wordpress 5.8.0
    A2Optimize 2.1.3.4

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author A2 Hosting

    (@a2hosting)

    Hello,

    It looks like the static cache files are not able to be written properly to your file system. I would check that the wp-content/cache folder, and all subfolders, have correct permissions, that you have enough disk space / inodes to create files, etc etc.

    If you’re hosted with A2 Hosting, you can open a ticket directly with our support and we can take a closer look at your exact setup to see if we can help further.

    • This reply was modified 3 years, 3 months ago by A2 Hosting.
    Thread Starter wesleygoncalves

    (@wesleygoncalves)

    Hi,
    I checked the permissions and ownership and the wp-content/cache directory and all its subdirectories are owned by my user and have the permission 755. Also, all their files has permission 644. Inodes and disk space are good.

    I’m hosted with A2 Hosting, so I’ll follow your suggestion to open a ticket through the A2 Hosting dashboard to check if I’m missing something.

    Thanks for your support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘filemtime(): stat failed after updating’ is closed to new replies.