Error with Autoflush Enabled
-
Hello,
My testing code is:
$my_post = array( 'post_title' => 'My post', 'post_content' => 'This is my post.', 'post_status' => 'draft', 'post_author' => 1, 'post_category' => array( 1 ) ); $post_id = wp_insert_post( $my_post, true ); var_dump( $post_id );
But I getting an error when “Autoflush Enabled” on SG Optimizer( AKA. Automatic Cache Purge )
But, when I disabled Autoflush feature on SG Optimizer options panel, wp_insert_post works well.
Error:
Fatal error: Uncaught Error: Call to a member function get_extra_permastruct() on null in /home/customer/www/username in /home/customer/www/example.com/public_html/wp-includes/taxonomy.php on line 4324
Thanks for this great plugin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error with Autoflush Enabled’ is closed to new replies.