• Resolved anyakom66

    (@anyakom66)


    Hi,

    I need to modify one of existing forms, but I cannot save it and even cannot preview. Here is the message I have:

    “Something went wrong while saving your form. Please try again.”

    I created a new form. Was able to save the form with small number of elements ( about 15). After this the problem with saving appear again. What is interesting, sometimes it allow me to save one more modification, but most of times no.

    I turn on debug, here is what I have in debug.log:

    [05-Feb-2023 15:24:47 UTC] PHP Warning: Cannot modify header information – headers already sent in W:\Websites\artbeaconsfield\wp-admin\admin-ajax.php on line 27
    [05-Feb-2023 15:24:47 UTC] PHP Warning: Cannot modify header information – headers already sent in W:\Websites\artbeaconsfield\wp-admin\admin-ajax.php on line 28

    In admin-ajax.php, line 27 and 28:

    header( ‘Content-Type: text/html; charset=’ . get_option( ‘blog_charset’ ) );
    header( ‘X-Robots-Tag: noindex’ );

    [05-Feb-2023 15:25:29 UTC] PHP Warning: Cannot modify header information – headers already sent in W:\Websites\artbeaconsfield\wp-includes\http.php on line 497
    [05-Feb-2023 15:25:29 UTC] PHP Warning: Cannot modify header information – headers already sent in W:\Websites\artbeaconsfield\wp-includes\http.php on line 498

    In http.php, line 497 and 497:

    if ( is_allowed_http_origin( $origin ) ) {
    header( ‘Access-Control-Allow-Origin: ‘ . $origin );
    header( ‘Access-Control-Allow-Credentials: true’ );

    if ( ‘OPTIONS’ === $_SERVER[‘REQUEST_METHOD’] ) {
    exit;
    }
    return $origin;
    }

    Thank you,

    //Anya

    • This topic was modified 1 year, 9 months ago by anyakom66.
    • This topic was modified 1 year, 9 months ago by anyakom66.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Save, Preview no more working’ is closed to new replies.