• Resolved agxer

    (@agxer)


    Hi,

    when i go to publish my mapping there briefly appears a message “Something went wrong. please reload the page.” under the publish button. then the page reloads and it is not saved and the selections where you choose Existing Post or New Post are all borked.

    I have latest versions of everything. Anyone else had this issue?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    there is either a javascript error on your page or a PHP server error.

    Inspect the page and check for errors on your console.

    Enable WP_DEBUG mode on your server to check for server errors.

    Thread Starter agxer

    (@agxer)

    i am not getting any errors via debug OR console!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    what version of WP and PHP are you running?

    Thread Starter agxer

    (@agxer)

    latest version of WP and PHP 7.4

    Thread Starter agxer

    (@agxer)

    WP 5.6

    Plugin Author Aurovrata Venet

    (@aurovrata)

    ok.

    what type of post are you mapping to? Existing post type or custom?

    Thread Starter agxer

    (@agxer)

    i am trying to map to an existing post, the standard ‘post’ type. when i hit save or publish it gives the fore-mentioned error message briefly then when the page reloads it goes shows all the settings i made except under ‘Existing Post’ it shows the options for new post. And nothing is saved, in other words when i go back out it still says ‘Create New’ with no other option to edit etc.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    when i hit save or publish

    in both cases the error appears?

    it goes shows all the settings i made except under ‘Existing Post’ it shows the options for new post. And nothing is saved, in other words when i go back out it still says ‘Create New

    so it looks like you selection of post type is not being set properly on your page or sent properly to the server.

    The settings requires javascript to work without errors (hence the suggestion that there is an error on the page).

    THe send is using AJAX, and this could also be blocked by your server (htaccess file or apache server). You can inspect your page when you save/publish to see the POST request being sent, see if the following fields are being set:

    – ‘mapped_post_type_source’
    – ‘mapped_post_type’

    I’m getting the same error. In debugging, it looks like the $_POST array does not have either “save_draft”, “update_post” or “save_post” set.

    [18-May-2021 01:00:01 UTC] DEBUG_MSG: 
              + unknown saving Array
    (
        [action] => save_post_mapping
        [cf7_2_post_nonce] => 76f55ad6c4
        [meta-box-order-nonce] => 62f05c50e3
        [closedpostboxesnonce] => 9de5d54aa7
        [cf7_2_post_map-title] => artwork_title
        [cf7_2_post_map-slug] => 
        [cf7_2_post_map-author] => 
        [cf7_2_post_map-thumbnail] => image_file
        [cf7_2_post_map-editor] => 
        [cf7_2_post_map-excerpt] => 
        [cf7_post_id] => 71
        [mapped_post_type] => post
        [mapped_post_type_source] => system
        [system_post_type] => post

    This is around line 454 of admin/class-cf7-2-post-admin.php

    I’m looking into if further…

    Plugin Author Aurovrata Venet

    (@aurovrata)

    @spacetaxi please start your own thread. This is WP support forum policy.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Won’t Save/Publish Mapping’ is closed to new replies.