Quantcast
Channel: WordPress.org Forums » [Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Support
Viewing all articles
Browse latest Browse all 1437

Form permanently disappears after being displayed once

$
0
0

Replies: 2

Hi there,

I have a form inserted using the shortcode into a page. When the page is called for the first time, the form is displayed and works correctly :

However, when reopening the same URL, regardless of who accesses it (e.g., if I the page was viewed by someone in Nice using Firefox, and then I access it from Lille using Chrome on the same page), the form no longer appears and won’t reappear until I perform one of the following actions:

  • Republish the page containing the form using Elementor.
  • Activate or deactivate a plugin (tested with Under Construction and WP-Optimize, activating or deactivating any of them).

This would suggest the issue lies server-side rather than client-side. Specifically, I examined the page’s source code depending on whether the form appears or not, and the following lines are missing when the form disappears: https://mensuel.framapad.org/p/probleme-forminator-abdo?lang=fr. However there’s still something in the source code, but the form html tag has a style="display: none;" property.
When I manually removes this property, the form is displayed but doesn’t work and doesn’t have the correct style:

No JS error seems to appear on the client side, but the following message is logged when accessing any page of the website: "PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the forminator domain was triggered too early. This usually indicates some code in the plugin or theme running prematurely. Translations should be loaded at the init action or later." I don’t think this is related to my issue yet because this is raised for every page on the website, even those which doesn’t include the form.

Solutions I’ve tried so far:

  • Disabling most plugins (only Elementor, Elementor Header & Footer Builder, and ElementsKit Lite remained actives).
  • Creating a new form with just a name field to check if one the field was responsible was causing the issue. Same result.
  • Using the following mu-plugin: <?php function wpmudev_forminator_ajax_load_without_nonce() { $_POST[ 'nonce' ] = wp_create_nonce( 'forminator_load_module' ); add_action( 'wp_ajax_forminator_load_form', 'wpmudev_forminator_ajax_load_without_nonce' );
    add_action( 'wp_ajax_nopriv_forminator_load_form', 'wpmudev_forminator_ajax_load_without_nonce' );
  • Verifying than minification was disabled in WP-Optimize.

WordPress and plugins are up-to-date:

  • WordPress: 6.7.1
  • Forminator: 1.37.1
  • Elementor: 3.25.10
  • Elementor Header & Footer Builder: 1.6.47
  • ElementsKit Lite: 3.3.2
  • WP-Optimize: 3.7.1

Could you please help me investigating what can be the cause of this issue?

Best regards and thanks in advance.


Viewing all articles
Browse latest Browse all 1437

Trending Articles