• kiwiot

    (@kiwiot)


    Plugin throws a PHP notice

    <b>Notice</b>: Constant ACF_PRO already defined in <b>/var/www/html/public_html/wp-content/plugins/leads/shared/classes/class.acf-bootstrap.php</b> on line <b>42</b><br />

    Running : WP 4.9.4, ACF Pro 5.6.9

Viewing 1 replies (of 1 total)
  • Thread Starter kiwiot

    (@kiwiot)

    For anyone who wants a quick fix to this jump in and wrap the defines

    
               if ( !function_exists('acf_add_local_field_group') ) {
                    if ( ! defined( 'ACF_FREE' ) ) {
                        define( 'ACF_FREE', true );
                    }
                }  else {
                    if ( ! defined( 'ACF_PRO' ) ) {
                        define( 'ACF_PRO', true );
                    }
                    add_filter('lp_init' , array(__CLASS__,'acf_register_global') , 20 , 1 ); /* registeres a global of registered field values for support between ACF5 & ACF6 */
                }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Background PHP Notice’ is closed to new replies.