• Resolved jrthdataplaneus

    (@jrthdataplaneus)


    Hi,
    i have a problem with special characters and quotation marks in several places.

    WordPress 7.0.2
    PHP Version 8.3.29
    Kali Forms Version 2.4.21
    Kali Forms Pro Version 1.9.7

    Steps to reproduce:

    <New Form, Blank>

    -> add "Textbox" field:
    -> Placeholder:
    Test ę ł ž

    -> add "Terms and conditions" field
    -> Field type "Custom Text":
    -> Terms and Conditions text body:
    Test <a href="https://anywebsitename.com/NameofPDF.pdf" target="_blank">Link</a>

    <Save>

    -> Textbox field placeholder is now:
    Test u0119 u0142 u017e

    -> Terms and conditions text body is now:
    Test <a href="//anywebsitename.com/NameofPDF.pdfu0022" target="u0022_blanku0022">Link</a>

    ---

    <go to "Notifications">
    <Create new email notification>
    -> Subject:
    Test "Test"
    -> Sender Name, Sender email, Send notification to
    anything
    -> Message / Email body
    Test text with "quotation" marks

    <Save>

    -> Subject is now:
    Test u0022Testu0022

    -> Email body is now:
    Test text with u0022quotationu0022 marks


    ...and, switching back to Builder,
    -> Terms and conditions text body is now:
    Test <a href="u0022//anywebsitename.com/NameofPDF.pdfu0022u0022" target="u0022u0022_blanku0022u0022">Link</a>
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Andrei Cristea

    (@andreic86)

    Hello @jrthdataplaneus,

    Thank you for the detailed report, our dev team is currently looking into this and we will release a fix as soon as possible (a rough estimate would be either later today or first thing tomorrow morning).

    Have a nice day!

    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!

    Plugin Contributor Andrei Cristea

    (@andreic86)

    Hello again,
    Can you please test this again with the latest version available, this should be resolved now.

    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.

    Plugin Contributor Andrei Cristea

    (@andreic86)

    Hello @jrthdataplaneus,

    Can you please use the Contact form on our website to submit a screenshot of your current page configuration? Also, can you please let us know what Elementor version you are using?

    https://kaliforms.com/get-help/

    We will gladly take a look, try to replicate this and investigate the matter.

    Plugin Contributor Andrei Cristea

    (@andreic86)

    Hello,

    We have just released a fix for this in Kali Forms 2.4.23, please make sure to update to this version and the error will be resolved.

    Have a nice day!

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

You must be logged in to reply to this topic.