Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1350828

    I am getting the following critical errors when using plugin participants database email expansion – is this a theme problem or a plugin problem?

    Fatal error: Uncaught TypeError: Argument 2 passed to aviaPostCssManagement::handler_wp_save_post() must be an instance of WP_Post, null given, called in wp-includes/class-wp-hook.php on line 307 and defined in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:385 Stack trace: #0 /wp-includes/class-wp-hook.php(307): aviaPostCssManagement->handler_wp_save_post() #1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #2 /wp-includes/plugin.php(474): WP_Hook->do_action() #3 /wp-includes/post.php(4687): do_action() #4 /wp-admin/includes/post.php(700): wp_insert_post() #5 /wp-admin/post-new.php(66): get_default_post_to_edit() #6 {main} thrown in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php on line 385

    #1350848

    Hey mdhills,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1351752
    This reply has been marked as private.
    #1351769

    Hi,

    Thanks for that. I’m not sure where you are seeing these error messages though?

    Best regards,
    Rikard

    #1351778
    This reply has been marked as private.
    #1351878

    Hi,
    Thanks for the login, your WordPress ▸ Appearance ▸ Theme File Editor seems to be disabled, but I believe if you add this function to your child theme functions.php it may help:

    function custom_avf_post_css_create_file( $create ) {
    	return false;
    }
    add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );

    I see that you already have a few Email Template for your Participants Database Email Expansion Kit plugin, did this error just start?
    I’ve never heard of this plugin so I’m not sure what it is doing, but I believe the Email Templates are saved as a post-type in WordPress because the error:
    get_default_post_to_edit() #6 {main} thrown in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php on line 385
    points to the function handler_wp_save_post.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.