Home Forums Plugin Support WP User Frontend Pro Users can't edit their posts

This topic is: resolved

This topic contains 11 replies, has 6 voices, and was last updated by  Harsha 4 years, 10 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #22708

    Danilo
    Participant
    Post count: 43

    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?

    #22758

    Vayu
    Member
    Post count: 17

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

    #22765

    ced
    Participant
    Post count: 32

    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 ) );

    #22766

    Vayu
    Member
    Post count: 17

    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. ๐Ÿ˜‰

    #22769

    ced
    Participant
    Post count: 32

    Yep, but I think Tareq will correct it soon, so, no matter about hacking this core file ๐Ÿ™‚

    #22777

    Tareq Hasan
    Keymaster
    Post count: 2831

    I've pushed the update: v2.2.1

    #22783

    Robin
    Member
    Post count: 8

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

    #22785

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #22787

    Robin
    Member
    Post count: 8

    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

    #22789

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #22796

    Danilo
    Participant
    Post count: 43

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

    Thank you.

    #24818

    Harsha
    Member
    Post count: 2

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

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

The topic ‘Users can't edit their posts’ is closed to new replies.