Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • noting also we’re on PHP 7.2 and CentOS. All worked fine previous to this release.

    Following up — I see the same error, I have direct (SSH) access to the filesystem.

    [10-Sep-2021 18:59:07 UTC] PHP Fatal error:  Uncaught W3TC\Util_WpFile_FilesystemOperationException in /mnt/ebs/public_html/localwp/wp-content/plugins/w3-total-cache/Util_WpFile.php:242
    Stack trace:
    #0 /mnt/ebs/public_html/localwp/wp-content/plugins/w3-total-cache/Generic_Environment.php(19): W3TC\Util_WpFile::file_exists('/mnt/ebs/public...')
    #1 /mnt/ebs/public_html/localwp/wp-content/plugins/w3-total-cache/Root_Environment.php(28): W3TC\Generic_Environment->fix_on_wpadmin_request(Object(W3TC\Config), false)
    #2 /mnt/ebs/public_html/localwp/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(742): W3TC\Root_Environment->fix_in_wpadmin(Object(W3TC\Config))
    #3 /mnt/ebs/public_html/localwp/wp-includes/class-wp-hook.php(303): W3TC\Generic_Plugin_Admin->admin_notices('')
    #4 /mnt/ebs/public_html/localwp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(false, Array)
    #5 /mnt/ebs/public_html/localwp/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #6 /mnt/ebs/public_html/localwp/wp-admin/admin-header.php(273): do_action('network_admin_n... in /mnt/ebs/public_html/localwp/wp-content/plugins/w3-total-cache/Util_WpFile.php on line 242

    Joshua — thanks for the very helpful plugin. I actually had the same problem — this plugin doesn’t do anything on the home page — and I looked into the plugin code and found the problem pretty quickly.

    You are conditioning running everything on get_queried_object_id() returning a non-0 value. Trouble is, in my theme (as in many), the home page isn’t a ‘page’, and it doesn’t have a post_id or page_id.

    For my own hack I made changed these two lines in your main plugin file

    if( get_queried_object_id() ) {
    	$queried_object_id = get_queried_object_id();

    to

    if( get_queried_object_id() ) {
    	$queried_object_id = get_queried_object_id();
    } elseif (is_home()){
    	$queried_object_id = 1;
    }
    if ($queried_object_id){

    This is imperfect fix — I don’t use date-based archives and I suspect we’d have the same problem on them — but it worked for my case like a charm.

    This is happening for me, too. The error is because $evt is expected to be an object, and my environment has php set “strict”

    In fsCalendarEvent.php at line 69 is

    $evt->eventid = 0;

    I inserted a line above it to instantiate $evt as a class to fix it.

    $evt = new stdClass();
    $evt->eventid = 0;

    It seems to work for me.

Viewing 4 replies - 1 through 4 (of 4 total)