Slack Integration Setup Not Working

[ad_1]

Hi @davlu

I hope you’re well today!

We have recently identified a bug in Formiantor that is related to this. Our developers are already working on a fix but I don’t have ETA yet.

However, is your site powered by PHP 8.x (e.g. 8.0 or 8.1 or similar)?

If so, please try a workaround for now:

– create an empty file with a .php extension (e.g. “forminator-slack-patch.php”)
– copy and paste following code into it

<?php 
'add_filter( 'pre_option_forminator_addon_slack_settings', 'wpmudev_fix_slack_integration',  10, 3 );
function wpmudev_fix_slack_integration( $pre_option, $option, $default ) {
    
    if ( !is_admin() ) {
        return $pre_option;
    }
    
    if ( !empty( $_POST['action'] ) ) {
        if ( $_POST['action'] == 'forminator_addon_settings' ) {
            if ( empty( $pre_option ) ) {
                $pre_option = array();
            }
        }
    }
    
    return $pre_option;
}

– save the file and upload it to the “/wp-content/mu-plugins” folder of your site’s WordPress installation; if there’s no “mu-plugins” create an empty one first.

Then try setting up integration again from scratch.

Kind regards,
Adam

Thread Starter
davlu

(@davlu)

Thank you Adam! That’s fixed the issue.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer