The edit form is empty

This topic contains 3 reply and 2 voices, and was last updated by Ivar 10 years ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
March 28, 2014 at 10:10 pm 17491
Ivar 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.
March 30, 2014 at 12:15 am 17562
Tareq Hasan Tareq Hasan

Checkout this video, it’ll be clear for you I guess 🙂
http://docs.wedevs.com/setting-up-the-plugin/

March 30, 2014 at 4:06 pm 17616
Ivar Ivar

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? 🙂

March 31, 2014 at 5:02 pm 17663
Ivar Ivar

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 3 Posts - 1 through 3 (of 3 total)