• Resolved abqayyumdev

    (@abqayyumdev)


    I am facing this error when i will check for wordpress and envato theme standard here is the plugin link
    https://github.com/envato/envato-theme-check

    Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, bool given in /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/easy-demo-importer/inc/Common/Functions/Filters.php:114 Stack trace: #0 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/easy-demo-importer/inc/Common/Functions/Filters.php(114): strlen() #1 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-includes/class-wp-hook.php(326): SigmaDevs\EasyDemoImporter\Common\Functions\Filters::fixSVGDetection() #2 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-includes/functions.php(3291): apply_filters() #4 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/envato-theme-check-master/checks/class-image-size-check.php(32): wp_check_filetype_and_ext() #5 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/envato-theme-check-master/checkbase.php(117): Image_Size_Check->check() #6 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/envato-theme-check-master/checkbase.php(80): run_themechecks() #7 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/envato-theme-check-master/main.php(27): run_themechecks_against_theme() #8 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/envato-theme-check-master/theme-check.php(71): check_main() #9 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-includes/class-wp-hook.php(324): EnvatoThemeCheck->themecheck_do_page() #10 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-admin/admin.php(259): do_action() #13 /home/u951773191/domains/softmetik.com/public_html/wphuda/wp-admin/themes.php(10): require_once(‘/home/u95177319…’) #14 {main} thrown in?/home/u951773191/domains/softmetik.com/public_html/wphuda/wp-content/plugins/easy-demo-importer/inc/Common/Functions/Filters.php?on line?114

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Sigma Devs Support

    (@sigmadevssupport)

    Hi @abqayyumdev

    Thank you for reaching out about this issue. To help us investigate it further, could you share a few details about your setup? Specifically:

    1. Envato Theme Check Interaction: The Envato Theme Check plugin is primarily designed to validate themes, not plugins. We’ve installed the Envato Theme Check plugin, and it did not detect any issues with our demo importer plugin. Could you let me know if there’s any specific configuration or adjustment in your theme that might be causing the Envato Theme Check plugin to interact with the demo importer?
    2. Demo Importer Configuration: If possible, could you also share your demo importer configuration? This will help us check your environment and better understand how your theme setup might be impacting the plugin.
    3. System Status Page: Could you please check the System Status page under Appearance → Easy System Status in your WordPress dashboard? Please review it for any errors or warnings that might be relevant to the theme. Additionally, could you provide the data from the Copy System Data tab? This will give me a better understanding of your environment.

    These details will allow us to better understand the issue and assist you in resolving it.

    Thank you for your cooperation. Have a nice day!

    Thread Starter abqayyumdev

    (@abqayyumdev)

    Hi @sigmadevssupport,

    Thank you for the faster reply, 

    1. Envato Theme Check Interaction:?I am not using any configuration for Envato Theme Check upload and activate the plugin.once I activate Easy Demo import I see this error.

    2. Demo Importer Configuration: Here is my demo importer configuration > https://github.com/abdulqayyum-softmetik/huda/blob/master/inc/demo-content.php

    3. System Status?Page: Not display any warning and error inside Appearance → Easy System Status

    Here is copy system data

    == Server Info ==
    Operating System: Linux
    Server: LiteSpeed
    MySQL Version: 10.11.9-MariaDB
    PHP Version: 8.2.19
    PHP Max Execution Time: 480
    PHP Max Input Time: 480
    PHP Max Upload Size: 3072M
    PHP Post Max Size: 3072M
    PHP Max Input Vars: 5000
    PHP Memory Limit: 3072M
    cURL Installed: Yes
    cURL version: 7.76.1
    GD Installed: Yes
    GD version: 2.3.3
    Write Permission: No issue
    Download Server Connection: Connection failure

    == WordPress Info ==
    WordPress Version: 6.7
    Site URL: https://wphuda.softmetik.com
    Home URL: https://wphuda.softmetik.com
    Is this Multisite?: No
    Has SSL Enabled?: Yes
    Max Upload Size: 3 GB
    Memory Limit: 40M
    Max Memory Limit: 3072M
    Permalink Structure: /%postname%/
    Language: en-US
    Debug Mode Enabled: Yes
    Script Debug Mode Enabled: No

    == Theme Info ==
    Name: Huda
    Version: 1.0.2
    Author: softmetik
    Author URL: https://softmetik.com
    Child Theme: No

    == Active Plugins ==
    All-in-One WP Migration - v7.87: By ServMask
    Customizer Export/Import - v0.9.7.3: By The Beaver Builder Team
    Easy Demo Importer - v1.1.3: By Sigma Devs
    Easy Export Settings - v1.0.0: By Sigma Devs
    Elementor - v3.25.5: By Elementor.com
    Envato Theme Check - v2.0.0: By Scott Parry
    Kirki Customizer Framework - v5.1.0: By Themeum
    Widget Importer & Exporter - v1.6.1: By ChurchThemes.com
    WooCommerce - v9.4.1: By Automattic
    Xpro Elementor Addons - v1.4.6.1: By Xpro
    Xpro Elementor Theme Builder - v1.2.8.2: By Xpro

    == Inactive Plugins ==



    Thanks Waiting for your response.

    Plugin Support Sigma Devs Support

    (@sigmadevssupport)

    Hello @abqayyumdev

    Thank you very much for providing us with the details. We have successfully replicated the issue on our end and are actively working on a solution. Once resolved, we will release a patch to address the issue. We appreciate your patience as we work to fix this.

    Additionally, we reviewed your demo import configuration and noticed a few areas that could be adjusted. After releasing the update, we will provide you with the correct configuration so you can apply it easily across your other themes. In the meantime, please refer to the plugin documentation for guidance on setting up menus, the front page, etc.

    Thank you for your understanding and patience. Have a wonderful day!

    Thread Starter abqayyumdev

    (@abqayyumdev)

    Hi, Thanks for your reply. Sure, I am waiting. Also, can you please help me set the front page Home and Blog Page for blog posts after the demo import?

    Thanks

    • This reply was modified 1 week, 2 days ago by abqayyumdev.
    Plugin Support Sigma Devs Support

    (@sigmadevssupport)

    hi @abqayyumdev

    Thanks for your patience! We’ve resolved the issue you mentioned. Please update the plugin to the latest version to get the fix.

    Correct Demo Import Configuration
    To get a clearer view, please paste below code into your code editor. We have added detailed comments throughout the code to help clarify how each setting works. Please take a moment to review the comments and examples provided. We believe this will help you understand the configuration and ensure it’s set up correctly.

    <?php
    /**
    * Retrieves the configuration for the Huda demo import.
    *
    * Please note: The function name should be prefixed according to your theme's
    * naming convention.
    *
    * You can check the full developer documentation here including exports and PHP config:
    * https://docs.sigmadevs.com/easy-demo-importer/developer-docs/
    *
    * Example settings:
    * - 'multipleZip => true': Indicates if single demo import is supported.
    * - 'demoData': Contains demo content, including pages, menus, and plugins.
    * - 'blog': Defines the page slug for setting it as the homepage.
    * - 'frontPageBlog': Set to true to designate the Posts page as the front page.
    * - 'menus': Lists the locations for different menus, e.g., 'main-menu'
    *
    * @return array Configuration array for the Huda theme demo import.
    */
    function huda_import_config() {
    return [
    'themeName' => 'Huda',
    'themeSlug' => 'huda',
    /**
    * The 'multipleZip' setting indicates that the demo import functionality
    * supports two options:
    *
    * 1. Full Demo Import ('multipleZip' => false): Imports all home pages
    * and their associated inner pages.
    * 2. Single Demo Import ('multipleZip' => true): Allows importing only a
    * specific home page along with its related inner pages.
    */
    'multipleZip' => true,
    'demoData' => [
    /**
    * The 'blog' key in the 'demoData' array represents the slug of the page.
    *
    * To set a page as the homepage after demo import, you need to pass
    * the page slug as the key. No other settings are required.
    *
    * For example, in this configuration:
    *
    * 'home-page-1' => [
    * 'name' => esc_html__( 'Home Page 1', 'huda' ),
    * 'previewImage' => 'home1/screenshot.jpg',
    * ...
    * ],
    *
    * Here, 'home-page-1' is the slug of the page that can be used for
    * setting the homepage.
    * Make sure each key corresponds to the correct page slug so that it can
    * be used to set the homepage.
    */
    'blog' => [
    'name' => esc_html__( 'Default Demo', 'huda' ),
    'previewImage' => 'https://softmetik.com/demos/wphuda-demos/demo-1-default/screenshot.jpg',
    'previewUrl' => 'https://wphuda.softmetik.com',
    'demoZip' => 'https://softmetik.com/demos/wphuda-demos/demo-1-default/demo-import.zip',

    /**
    * The 'frontPageBlog' key is a special setting used to designate
    * the Posts page as the front page.
    *
    * If you want the Posts page (blog page) to appear as the front page after the demo import, set 'frontPageBlog' => true.
    *
    * If you do not require the Posts page to be the front page, simply
    * omit or discard this setting.
    *
    * Example:
    * 'frontPageBlog' => true, // Sets the Posts page as the front page.
    *
    * If this setting is not needed, you can leave it out entirely.
    */
    'frontPageBlog' => true,

    /**
    * Associative array of menu locations and their corresponding names. No other configuration is required.
    * Format: menu_location => Menu Name.
    *
    * Example:
    * 'menus' => [
    * // Sets 'Main Menu' to the 'main-menu' location.
    * 'main-menu' => 'Main Menu',
    *
    * // Sets 'Footer Menu' to the 'footer-menu' location.
    * 'footer-menu' => 'Footer Menu',
    *
    * // Sets 'Social Links Menu' to the 'social-menu' location.
    * 'social-menu' => 'Social Links Menu',
    * ],
    */
    'menus' => [
    'main-menu' => 'Main Menu',
    ],

    /**
    * Slug for the blog page.
    *
    * This slug should correspond to a page that is designated to display
    * the blog posts. This ensures that the page with this slug is set as
    * the blog page.
    */
    'blogSlug' => 'news',
    /**
    * Array of plugins to install.
    * Some example plugins are included here.
    * The array key needs to be the same as plugin slug.
    * You can also include a bundled plugin here.
    */
    'plugins' => [
    'woocommerce' => [
    'name' => 'WooCommerce',
    'source' => 'wordpress',
    'filePath' => 'woocommerce/woocommerce.php',
    ],
    'kirki' => [
    'name' => 'Kirki Customizer Framework',
    'source' => 'wordpress',
    'filePath' => 'kirki/kirki.php',
    ],
    ],
    ],
    ],
    ];
    }

    add_filter( 'sd/edi/importer/config', 'huda_import_config' );

    There’s a step-by-step developer guide available (please check the plugin description for the link) that will walk you through how to integrate this plugin with your theme. If you have any further questions or need additional assistance, feel free to reach out. We’re here to help!

    Thanks again. Have a great day!

    Thread Starter abqayyumdev

    (@abqayyumdev)

    Hi @sigmadevssupport,

    Thank you very much for the faster support i really happy with that.

    Thanks

    Plugin Support Sigma Devs Support

    (@sigmadevssupport)

    Hi @abqayyumdev

    You’re very welcome! It’s wonderful to hear that you’re happy with our support. If you have a moment, we’d be so grateful if you could leave a review—it really helps us grow and keep supporting amazing users like you.

    Thank you again for your kind words. Have a great day!

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