
-
AuthorPosts
-
May 6, 2022 at 5:43 pm #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
May 7, 2022 at 10:45 am #1350848Hey 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,
RikardMay 14, 2022 at 11:13 am #1351752This reply has been marked as private.May 14, 2022 at 1:24 pm #1351769Hi,
Thanks for that. I’m not sure where you are seeing these error messages though?
Best regards,
RikardMay 14, 2022 at 2:44 pm #1351778This reply has been marked as private.May 15, 2022 at 10:00 pm #1351878Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.