Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nimo24

    (@nimo24)

    Please look at the last line of the markup generated by Sureform. There you will find the markup with the uneditable error message:

     <p id="srfm-error-message" class="srfm-error-message" hidden="true">There was an error trying to submit your form.
    Please try again.</p>

    See full markup:

    <form-data" id="srfm-form-1509" class="srfm-form " form-id="1509" after-submission="hide form" message-type="same page"
    success-url="" ajaxurl="http://blank.local/wp-admin/admin-ajax.php" nonce="4bc2ccce8f">
    <input type="hidden" id="sureforms_form_submit" name="sureforms_form_submit" value="4d05c8983f"><input type="hidden"
    name="_wp_http_referer" value="/">
    <input type="hidden" value="1509" name="form-id">
    <input type="hidden" value="" name="srfm-sender-email-field" id="srfm-sender-email">
    <input type="hidden" value="" id="srfm-page-break">
    <input type="hidden" value="" name="srfm-honeypot-field">
    <div data-block-id="74d02424"
    class="srfm-block-single srfm-block srfm-input-block srf-input-74d02424-block srfm-block-width-33-33 1509">
    <div class="srfm-block-wrap">
    <input class="srfm-input-common srfm-input-input" type="text"
    name="srfm-input-74d02424-lbl-VGV4dCBGaWVsZA-srfm-input" id="srfm-input-74d02424-lbl-VGV4dCBGaWVsZA"
    aria-describedby="srfm-error-74d02424" data-required="true" data-unique="false" maxlength="100" value=""
    placeholder="Text Field *" data-srfm-mask="none">
    </div>
    <div class="srfm-error-wrap">
    <div class="srfm-error-message" data-srfm-id="srfm-error-74d02424" data-error-msg="This field is required."
    data-unique-msg="Value needs to be unique.">This field is required.</div>
    </div>
    </div>

    <div data-block-id="af2fabad"
    class="srfm-block-single srfm-block srfm-gdpr-block srf-gdpr-af2fabad-block srfm-block-width-100 1509">
    <div class="srfm-block-wrap">
    <input class="srfm-input-common screen-reader-text srfm-input-gdpr" id="srfm-gdpr-560350691"
    name="srfm-gdpr-af2fabad-lbl-SSBjb25zZW50IHRvIGhhdmUgdGhpcyB3ZWJzaXRlIHN0b3JlIG15IHN1Ym1pdHRlZCBpbmZvcm1hdGlvbiBzbyB0aGV5IGNhbiByZXNwb25kIHRvIG15IGlucXVpcnku-srfm-gdpr"
    aria-describedby="srfm-error-af2fabad" data-required="true" type="checkbox">
    <label class="srfm-cbx" for="srfm-gdpr-560350691">
    <span class="srfm-span-wrap">
    <svg class="srfm-check-icon" width="12px" height="10px" aria-hidden="true">
    <use xlink:href="#srfm-gdpr-af2fabad-check"></use>
    </svg>
    </span>
    <span class="srfm-span-wrap srfm-block-label">I consent to have this website store my submitted
    information
    so they can respond to my inquiry. <span class="srfm-required" aria-label="Required"><span
    aria-hidden="true"> *</span></span></span>
    </label>
    <svg class="srfm-inline-svg" aria-hidden="true">
    <symbol id="srfm-gdpr-af2fabad-check" viewBox="0 0 12 10">
    <polyline points="1.5 6 4.5 9 10.5 1"></polyline>
    </symbol>
    </svg>
    </div>
    <div class="srfm-error-wrap">
    <div class="srfm-error-message" data-srfm-id="srfm-error-af2fabad" data-error-msg="This field is required.">
    This
    field is required.</div>
    </div>
    </div>


    <div class="srfm-submit-container ">
    <div style="width: ; text-align: left" class="wp-block-button">
    <button style="width:" id="srfm-submit-btn" class="srfm-btn-frontend srfm-button srfm-submit-button">
    <div class="srfm-submit-wrap">
    Submit <div class="srfm-loader"></div>
    </div>
    </button>
    </div>
    </div>
    <p id="srfm-error-message" class="srfm-error-message" hidden="true">There was an error trying to submit your form.
    Please try again.</p>
    </form>
    Thread Starter nimo24

    (@nimo24)

    Thanks, maybe you can also consider to rename the plugin to “Disable API” or (“Disable Endpoint”) (instead of “Disable XML-RCP-API”). It would make it clearer that any kind of wordpress enpoint/api can be disabled..

    Thread Starter nimo24

    (@nimo24)

    >If you don’t want to remove code comments, simply turn off that option.

    I only want to remove HTML comments but not CSS or JS comments. This is actually not possible with this plugin. By providing 3 options it would be possible..

    Thread Starter nimo24

    (@nimo24)

    Using a “static” webpage with no wordpress/php, the same basic auth setup with .htaccess works without prompting the user again and again on each page link..so it has to do with wordpress.

    In https://de.ww.wp.xz.cn/plugins/http-digest-auth/, it is described that

    If you are using FastCGI PHP this plugin may keep prompting for the credentials even if you enter the right pair, in this case use the following in your .htaccess file

    (I dont use this plugin.)

    <IfModule mod_setenvif.c>
    SetEnvIfNoCase ^Authorization$ "(.+)" PHP_AUTH_DIGEST=$1
    </IfModule>

    However, I dont use digest auth but basic auth, the above leads to HTTP-Error “500 Internal Server Error”.

    I try this https://www.coderrr.com/using-http-auth-basic-wordpress/ instead of using basic auth in .htaccess.

    Or maybe someone knows a simpler solution by using proper .htaccess setup?

    • This reply was modified 7 years, 1 month ago by nimo24.
    Thread Starter nimo24

    (@nimo24)

    it was a type error..

    Thread Starter nimo24

    (@nimo24)

    was my fault..the height of the container must be 100%…

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