Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor codersantosh

    (@codersantosh)

    Hello @gradientthemes ,

    Can you provide the plugin array you are using for the demo? Something like below:

    'plugins' => array(
                    array(
                        'name'      => __( 'Gutentor', 'text-domain' ),
                        'slug'      => 'gutentor',
                    ),
                    array(
                        'name'      => __( 'Contact Form 7', 'text-domain' ),
                        'slug'      => 'contact-form-7',
                        'main_file' => 'wp-contact-form-7.php',/*the main plugin file of contact form 7 is different from plugin slug */
                    ),
                )

    Best Regards!

    Thread Starter Gradient Themes

    (@gradientthemes)

    ‘plugins’ => array(

    array(
    ‘name’ => ‘Elementor Page Builder’,
    ‘slug’ => ‘elementor’,
    ),

    array(
    ‘name’ => ‘WooCommerce’,
    ‘slug’ => ‘woocommerce’,
    ),

    array(
    ‘name’ => ‘Product Quick View’,
    ‘slug’ => ‘yith-woocommerce-quick-view’,
    ),

    array(
    ‘name’ => ‘WP Forms’,
    ‘slug’ => ‘wpforms-lite’,
    ‘main_file’ => ‘wpforms.php’,
    ),

    array(
    ‘name’ => esc_html__(‘Wishlist’, ‘best-shop’ ),
    ‘slug’ => ‘yith-woocommerce-wishlist’,

    ),
    )

    Use fresh installation and install
    First time it will install, if you install same demo or another demo again, the above error displayed.

    Also you can test it with your sample plugin array above

    Plugin Contributor codersantosh

    (@codersantosh)

    @gradientthemes can you add main_file for both plugins of yith?

    'main_file' => 'init.php',/*the main plugin file of yith is different from plugin slug */

    Thread Starter Gradient Themes

    (@gradientthemes)

    I have tried above,

    can you add below code to your plugin and import demo 2 times, first time it will install, second time it will display error: plugin file does not exist, contact theme author:error

    ‘plugins’ => array(
    array(
    ‘name’ => __( ‘Gutentor’, ‘text-domain’ ),
    ‘slug’ => ‘gutentor’,
    ),
    array(
    ‘name’ => __( ‘Contact Form 7’, ‘text-domain’ ),
    ‘slug’ => ‘contact-form-7’,
    ‘main_file’ => ‘wp-contact-form-7.php’,/*the main plugin file of contact form 7 is different from plugin slug */
    ),
    )

    Plugin Contributor codersantosh

    (@codersantosh)

    Hello @gradientthemes , I checked with the CosmosWP theme, and it is working fine without any issue.

    Plugin Contributor codersantosh

    (@codersantosh)

    @gradientthemes in some rare cases plugin does not install correctly, some files got missing, we have added details info about the error now, which will help to correctly install the plugins.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Demo import error’ is closed to new replies.