• Resolved elieelia9

    (@elieelia9)


    Hi there,

    I seem to be getting an error when submitting any form on my website. When trying to access settings on the forminator plugin, I get the following error:

    Fatal error: Uncaught Error: Undefined class constant 'DOMAIN' in /home/marcosin/public_html/wp-content/mu-plugins/wpmudev-forminator-hidden-input-time-field.php:79 Stack trace: #0 /home/marcosin/public_html/wp-includes/class-wp-hook.php(292): WPMUDEV_Forminator_Hidden_Input_Time_Field->wpmudev_forminator_vars_lists(Array) #1 /home/marcosin/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array) #2 /home/marcosin/public_html/wp-content/plugins/forminator/library/helpers/helper-fields.php(365): apply_filters('forminator_vars...', Array) #3 /home/marcosin/public_html/wp-content/plugins/forminator/admin/classes/class-admin-data.php(126): forminator_get_vars() #4 /home/marcosin/public_html/wp-content/plugins/forminator/admin/classes/class-admin-data.php(36): Forminator_Admin_Data->admin_js_defaults() #5 /home/marcosin/public_html/wp-content/plugins/forminator/admin/classes/class-admin.php(96): Forminator_Admin_Data->get_options_data() #6 /home/marcosin/public_html/wp-includes/class-wp-hook.php(292): Form in /home/marcosin/public_html/wp-content/mu-plugins/wpmudev-forminator-hidden-input-time-field.php on line 79

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @elieelia9,

    Are you using the latest version of the Forminator? We have noticed such issues would occur if the plugin isn’t updated to the latest version or if there was an issue with updating the plugin.

    If you are already using the latest version ie 1.14.11 then please re-install the Forminator plugin and then check whether you get the same issue or not?

    Please do let us know how that goes. Looking forward to your response.

    Kind Regards,
    Nithin

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @elieelia9

    Allow me to jump here too.

    It looks you are using this mu-plugin:
    https://gist.github.com/wpmudev-sls/a3c3d3268a7168b3599fccc1b48d341d

    Can you please replace it where it says Forminator::DOMAIN replace it using “forminator”, for example:

    'user_ip' => esc_html__( 'User IP Address', 'forminator' ),

    Best Regards
    Patrick Freitas

    Thread Starter elieelia9

    (@elieelia9)

    @wpmudevsupport12 I’ve made the replacements, but the error persists.

    @wpmudevsupport11 My forminator plugin is updated to the latest version. Will uninstalling it and re-installing it cause me to loose any forms I’ve created or any submission retention?

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @elieelia9,

    You can choose to preserve the data and setting when the plugin is removed. Please find the option at WP Dashboard >> Settings >> Data. However, make sure to take a full backup of the site as an easy restore point if something goes wrong.

    Reff: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#data

    Kind Regards,
    Nebu John

    Thread Starter elieelia9

    (@elieelia9)

    @wpmudevsupport12 I updated the mu-plugin, and can now access Forminator’s settings through my WP admin panel.
    @wpmudevsupport14 I then uninstalled and reinstalled the plugin.

    I am still getting Error Submitting Form on any of my forms.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @elieelia9

    I took a closer look at the code and found one extra update required.

    Where it says:

    add_filter( 'forminator_custom_form_submit_field_data', array( $this, 'wpmudev_forminator_custom_form_submit_field_data' ), 10, 2 );

    Replace to:

    add_filter( 'forminator_form_submit_field_data', array( $this, 'wpmudev_forminator_custom_form_submit_field_data' ), 10, 2 );

    After this update, I was able to submit the form, for further reference I added the updated code on https://gist.github.com/patrickfreitasdev/4078ef5c277036b9d875ba1092095572

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @elieelia9

    An extra update on the line:

    $custom_form = Forminator_Custom_Form_Model::model()->load( $form_id );

    To:

    $custom_form = Forminator_Form_Model::model()->load( $form_id );

    The shared link should have all required modifications, you can replace the mu-plugin code.

    Let us know if it will work now.
    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @elieelia9 ,

    We haven’t heard from you for over a week now, so it looks like you no longer need our assistance.

    Please feel free to re-open this ticket if needed.

    kind regards,
    Kasia

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

The topic ‘Form Submission Error’ is closed to new replies.