Home Forums Plugin Support WP User Frontend Pro The edit form is empty

This topic is: not resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Ivar 5 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17491

    Ivar
    Member
    Post count: 7

    Hey,

    I created a page for editing posts, added the shortcode [wpuf_edit] to it and selected it as “Edit Page” at Settings > General Options.

    When I click “Edit” on a post the form shows up as expected with all the correct fields, but all the fields are empty. How come?

    Thank you in advance.

    #17562

    Tareq Hasan
    Keymaster
    Post count: 2831

    Checkout this video, it'll be clear for you I guess ๐Ÿ™‚
    http://docs.wedevs.com/setting-up-the-plugin/

    #17616

    Ivar
    Member
    Post count: 7

    Yeah, I did exactly as the video said. As mentioned, the form is appearing but all the fields are empty. I could show you in TeamViewer or something if you don't believe me? ๐Ÿ™‚

    #17663

    Ivar
    Member
    Post count: 7

    After some troubleshooting I discovered that $post_id at line 76 in /class/frontend-form-post.php allways get a value of zero. I ran print_r($_GET) and for some reason $_GET isn't set. Really weird.

    I changed row 76 to this, and now it's working:

    $url = parse_url($_SERVER['REQUEST_URI']);
    parse_str($url['query'], $data);
    $post_id = isset( $data['pid'] ) ? intval( $data['pid'] ) : 0;

    Have you got any idea what happened with $_GET?

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘The edit form is empty’ is closed to new replies.