Users can't edit their posts

This topic contains 11 reply and 6 voices, and was last updated by Harsha 9 years, 8 months ago
Viewing 11 Posts - 1 through 11 (of 11 total)
Author Posts
July 2, 2014 at 4:20 am 22708
Harsha Hi. In every page that I put a form shortcode I used WPUF FORM META BOX too, like instructions says. But users can't edit their published posts. They get a message in a yellow box, saying that they haven't permissions to edit. I checked the option to give users ability to edit in options, but it doesn't work. Any suggestion?
July 2, 2014 at 5:54 pm 22758
Vayu Vayu

I have the same problem after the update to version 2.2. When I look in the code of edit-profile.php, I see that the variable $post is used to get information. However, the $post variable is holding information about the current page (the dashboard page), and not the posts which it should. So $post->ID will get the ID of the dashboard and not the posts. get_the_ID() should be used in the loop instead.
I don’t know if the developer of this plugin will fix this???

July 2, 2014 at 7:13 pm 22765
ced ced

Thanks Vayu,
It works perfectly again.
As you said, in dashboard.php, I’ve changed :

$url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );

with :
$url = add_query_arg( array('pid' => get_the_ID() ), get_permalink( $edit_page ) );

July 2, 2014 at 7:16 pm 22766
Vayu Vayu

No problem! Just remember that is bad practice to edit core files, as they will be overwritten in future updates and all your changes will be lost. Let’s just hope that this will be fix in future versions. 😉

July 2, 2014 at 7:24 pm 22769
ced ced

Yep, but I think Tareq will correct it soon, so, no matter about hacking this core file 🙂

July 2, 2014 at 8:33 pm 22777
Tareq Hasan Tareq Hasan

I’ve pushed the update: v2.2.1

July 2, 2014 at 9:31 pm 22783
Robin Robin

How long will it take before WordPress automatically updates the plugin? I am experiencing this too.

July 2, 2014 at 9:39 pm 22785
Tareq Hasan Tareq Hasan

It takes about 12 hours. But if you don’t to want to wait, you can download from your account here and update manually.

July 2, 2014 at 9:54 pm 22787
Robin Robin

I have just done that. It’s fixed both the issue described and another problem with strange incorrect data being re-loaded into the form again properly.

Excellent. Can I ask a serious question though? Shouldn’t some form of ‘beta testing’ pick this sort of issue up? Do you have a working group of folk who can contribute ?

Robin

July 2, 2014 at 10:10 pm 22789
Tareq Hasan Tareq Hasan

We did test by in-house devs/support but sadly it did catch our eyes. Sorry for the trouble.

July 2, 2014 at 11:22 pm 22796
Danilo Danilo

Update 2.2.1 is working for me.
Users can now update their posts.

Thank you.

August 9, 2014 at 1:03 am 24818
Harsha Harsha

Looks like this change/fix was missed in the PRO version. I’ve applied the change manually. Wanted to give a heads up.

Viewing 11 Posts - 1 through 11 (of 11 total)