• pulstar21

    (@pulstar21)


    Deprecated: Creation of dynamic property Kirki\Field\Repeater::$compiler is deprecated in?/home/u689081133/domains/mydomain.xyz/public_html/wp-content/plugins/kirki/kirki-packages/compatibility/src/Field.php?on line?305

    Deprecated: Creation of dynamic property Kirki\Field\Repeater::$compiler is deprecated in?/home/u689081133/domains/mydomain.xyz/public_html/wp-content/plugins/kirki/kirki-packages/compatibility/src/Field.php?on line?305

    Deprecated: Creation of dynamic property Kirki\Field\Repeater::$compiler is deprecated in?/home/u689081133/domains/mydomain.xyz/public_html/wp-content/plugins/kirki/kirki-packages/compatibility/src/Field.php?on line?305

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @pulstar21,

    I had the same deprecated code issue with Kirki and managed to resolve it by disabling certain configurations that are no longer supported. Here’s the solution that worked for me:

    /**
     * Kirki Config
     *
     * @param array $config is an array of Kirki configuration parameters.
     */
    function csco_kirki_config( $config ) {
    
        if ( isset( $config['compiler'] ) ) {
            unset( $config['compiler'] );
        }
    
        if ( isset( $config['disable_loader'] ) ) {
            unset( $config['disable_loader'] );
        }
    
        return $config;
    }
    add_filter( 'kirki/config', 'csco_kirki_config', 999 );

    You can add this code to your theme’s functions.php file or, if you prefer, you can use the Code Snippets plugin to insert it. Code Snippets makes it easier to manage custom code without directly editing theme files.

    Hope this helps!

    Thread Starter pulstar21

    (@pulstar21)

    I will test it. Thank you very much!

    I actually contacted support for one of the themes using this as a framework and was asked to downgrade PHP version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.