Save to Database

Home Forums Quform WordPress Save to Database

This topic is: not resolved
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #32628
    linux
    Participant

    Hi,

    I have problem with save data to custom database. Try to “use wordpress database” and different database. I following instruction https://support.themecatcher.net/quform-wordpress/settings/database-settings/custom-database-settings

    I also set “what to save” and i following https://support.themecatcher.net/quform-wordpress-v2/guides/integration/saving-form-data-to-a-custom-database

    I already enable wordpress debug log by following https://support.themecatcher.net/quform-wordpress-v2/guides/advanced/enabling-debug-logging.

    But data not save to both wordpress database or different database. I dont see debug log on wp-content/debug.log

    Please help.

    #32629
    linux
    Participant

    Try to upload debug.log from my local computer to my cpanel. And set permission to 666
    But debug.log empty

    #32630
    linux
    Participant

    Try with codes below, but debug.log still empty

    define( ‘WP_DEBUG’, true );
    if ( WP_DEBUG ) {
    @error_reporting( E_ALL );
    @ini_set( ‘log_errors’, true );
    @ini_set( ‘log_errors_max_len’, ‘0’ );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );
    define( ‘CONCATENATE_SCRIPTS’, false );
    define( ‘SAVEQUERIES’, true );
    }

    #32631
    linux
    Participant

    Try to use code below. But still not save to database

    //SAVE TO DATABASE
    add_filter(‘quform_post_process_1’, function (array $result, Quform_Form $form) {
    global $wpdb;

    $data = array(
    ‘nama’ => $form->getValueText(‘quform_1_3′),
    ’email’ => $form->getValueText(‘quform_1_4’),
    ‘telepon’ => $form->getValueText(‘quform_1_5’),
    ‘pelatihan’ => $form->getValueText(‘quform_1_6’),
    );

    $wpdb->insert(‘pelatihan’, $data);

    return $result;
    }, 10, 2);

    #32632
    linux
    Participant

    My theme using Elementor page builder

    #32634
    linux
    Participant

    I disable all plugins except quform and use twenty theme. Still not working

    #32638
    linux
    Participant

    Hello, wordpress debug is working. But data still not save to wordpress db or external db. And debug.log no error.

    #32653
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32663
    linux
    Participant

    I send the credential login. Check your contact form.
    Please check it asap. I difficult to monitoring this ticket because we have different time. At 11PM now.

    #32668
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32675
    linux
    Participant

    Hello, my problem solved by your update varchar to 255 characters.
    Anyway, how to prevent duplicate entry ? I see to many duplicate record on my table. And timestamp is same for duplicate entry.

    #32684
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy