Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jrthdataplaneus

    (@jrthdataplaneus)

    Hi again,

    This is very strange: in Kali Forms, everything appears to be working perfectly. After saving, special characters and hyphens are stored correctly.

    However, on the frontend, every page that uses one of the newly saved forms is now empty—the content area is no longer rendered. We are using Elementor and embedding the forms via shortcode.

    The HTML output stops immediately after the opening Elementor wrapper:

    <div data-elementor-type="wp-page" data-elementor-id="123" class="elementor elementor-123">

    When trying to edit one of the empty pages, a critical error is displayed. The additional “Edit with Elementor” button is not shown at all.

    This is the critical error:

    An E_ERROR error occurred on line 22 of the file /www/htdocs/our-website.com/wp-content/plugins/kali-forms/Inc/Utils/class-gridhelper.php.

    Error message:
    Uncaught TypeError: usort(): Argument #1 ($array) must be of type array, null given in /www/htdocs/our-website.com/wp-content/plugins/kali-forms/Inc/Utils/class-gridhelper.php:22

    Stack trace:
    #0 /www/htdocs/our-website.com/wp-content/plugins/kali-forms/Inc/Utils/class-gridhelper.php(22): usort(NULL, Array)
    #1 /www/htdocs/our-website.com/wp-content/plugins/kali-forms/Inc/Frontend/class-form-shortcode.php(374): KaliForms\Inc\Frontend\Form_Shortcode->walk_array(NULL)
    #2 /www/htdocs/our-website.com/wp-content/plugins/kali-forms/Inc/Frontend/class-form-shortcode.php(165): KaliForms\Inc\Frontend\Form_Shortcode->prepare_data()
    #3 /www/htdocs/our-website.com/wp-content/plugins/kali-forms/Inc/Backend/Posts/class-forms.php(762): KaliForms\Inc\Frontend\Form_Shortcode->__construct(Array)
    #4 /www/htdocs/our-website.com/wp-includes/shortcodes.php(434): KaliForms\Inc\Backend\Posts\Forms->register_shortcode(Array, '', 'kaliform')
    #5 [internal function]: do_shortcode_tag(Array)
    #6 /www/htdocs/our-website.com/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(kalifo...', 'do_shortcode_ta...', 'Bezp\xC5\x82atna ...')
    #7 /www/htdocs/our-website.com/wp-includes/class-wp-hook.php(341): do_shortcode('Bezp\xC5\x82atna ...')
    #8 /www/htdocs/our-website.com/wp-includes/plugin.php(205): WP_Hook->apply_filters('Bezp\xC5\x82atna ...', Array)
    #9 /www/htdocs/our-website.com/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(2007): apply_filters('the_content', 'Bezp\xC5\x82atna ...')
    #10 /www/htdocs/our-website.com/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(669): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
    #11 /www/htdocs/our-website.com/wp-includes/rest-api/class-wp-rest-server.php(1293): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request))
    #12 /www/htdocs/our-website.com/wp-includes/rest-api/class-wp-rest-server.php(1126): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/pages/(?...', Array, NULL)
    #13 /www/htdocs/our-website.com/wp-includes/rest-api.php(607): WP_REST_Server->dispatch(Object(WP_REST_Request))
    #14 /www/htdocs/our-website.com/wp-includes/rest-api.php(2994): rest_do_request(Object(WP_REST_Request))
    #15 [internal function]: rest_preload_api_request(Array, '/wp/v2/pages/19...')
    #16 /www/htdocs/our-website.com/wp-includes/block-editor.php(738): array_reduce(Array, 'rest_preload_ap...', Array)
    #17 /www/htdocs/our-website.com/wp-admin/edit-form-blocks.php(120): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
    #18 /www/htdocs/our-website.com/wp-admin/post.php(187): require('/www/htdocs/w01...')
    #19 {main}
    thrown

    Addition:
    When trying to add the shortcode to a regular page (without using Elementor), i am unable to save the page. The following message appears: “Updating failed.”

    Other shortcodes can be added and saved without any problems. This issue occurs only with the Kali Forms shortcode.

    Thread Starter jrthdataplaneus

    (@jrthdataplaneus)

    Hello @andreic86,

    Thank you very much for your quick response. At the moment, we are using other characters as a workaround and a redirection for the broken links, so everything is fine.

    Have a nice day, too!

Viewing 2 replies - 1 through 2 (of 2 total)