• Resolved erdalaltin

    (@erdalaltin)


    I get this at new or old versions. The plugin work with the error but error file size increase fast.

    Note: I not get that error windows 7 OS / XAMPP.

    [Mon Jun 17 19:36:48.510167 2019] [:error] [pid 29958] [client 66.249.75.89:47095] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: PHP message: PHP Notice: Object of class WP_Post could not be converted to int in /var/www/html/wp-content/plugins/w3-total-cache/Util_Environment.php on line 716

    • This topic was modified 5 years, 5 months ago by erdalaltin.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    Can you please replace the line 716 in /var/www/html/wp-content/plugins/w3-total-cache/Util_Environment.php with following:
    ( isset( $GLOBALS['post_id'] ) && is_numeric( $GLOBALS['post_id'] ) ? (int) $GLOBALS['post_id'] : 0 ),
    See if the issue persists.

    Thread Starter erdalaltin

    (@erdalaltin)

    thanks…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Object of class WP_Post could not be converted to int in’ is closed to new replies.