Unable to submit message on latest version


Home Forums Front End PM PRO Unable to submit message on latest version

This topic is: Resolved
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #25649
    Andrew Perryman
    Participant

    Hi Shamim,
    I have had to regress back to version 10.1.6 as 10.2.1 has problems submitting messages.

    I guess it must be the new Ajax setup as all it does is state “please refresh page and try again: when I attempt to send a message.

    Maybe you could take a look if I update when ready for you however I can’t keep it in that state as our members use it a lot now.

    Andrew

    #25664
    Shamim Hasan
    Keymaster

    Can you please create a staging site so that i can check without affecting your live users?

    Can you please send test user credentials using https://www.shamimsplugins.com/sensitive-information/ so that i can have a look?

    #25771
    Andrew Perryman
    Participant
    This reply has been marked as private.
    #25777
    Shamim Hasan
    Keymaster

    I see you are using a custom plugin for this plugin. In that plugin you are using get_current_screen() function without checking if that function exists or not.

    Please go to custom-fepm-config.php around line 56 and add function_exists( 'get_current_screen' ) check before that.

    #25803
    Andrew Perryman
    Participant

    Hi Shamim,

    This is the code you issued to restrict roles form our setup.. Did you amend the staging custom-fepm-config.php plugin to test this?
    If so and you tested it successfully I will copy the code from the staging plugin copy and place it in the original..

    The staging copy is still up and running along with your credential access if not, I will take a look but if the code is not there can you amend it for me and the I will copy it across and update the original and then update FE Pro to the latest version.

    I’ll await your update..

    Thanks…

    Andrew

    #25806
    Andrew Perryman
    Participant

    Hi Shamin,

    Just to check I have added this as requested to the staging enviro, can you please check if this is what you meant at about line 56 of the custom-fepm-config.php plugin

    Please note and check the placement of the last last semi-colon too?


    If (function_exists('get_current_screen')){
    if ( is_admin() && 'users' !== @get_current_screen()->parent_base )
    { return $value;};
    }

    #25809
    Shamim Hasan
    Keymaster

    Your code is correct except last semi-colon.

    #25811
    Andrew Perryman
    Participant

    PS..
    I have updated the staging custom-fepm-config.php plugin file directly from my host file explorer as I getting a scrape nonce check error trying to edit it from the WordPress plugin editor.

    Probably because it is a staging environment.

    Andrew

    #25814
    Andrew Perryman
    Participant

    Ok thanksShamim, I will amend..

    #25817
    Andrew Perryman
    Participant

    Ok Shamim,

    The issue to send is fixed, however I now seem to have the drop icon missing in the message box but this could be a result of the staging copy as I can hover and see the anchor tag appear giving the group name.

    I will update the production plugin and give it a try.

    Andrew

    #25820
    Andrew Perryman
    Participant

    Oops that should have been group not drop icon..

    #25823
    Andrew Perryman
    Participant

    Shamim,

    Thanks for your help, all looks good and we are now on version 10.2.1.

    I have a bypass setup to allow users to still send to a group even if the original or anybody deletes themselves from a group message.

    Is the code below now defunct and included in this version?

    // FEPM allow a group to carry on replying in that group if one user deletes (completes housekeeping) from a group message.
    add_filter( 'fep_current_user_can', function( $can, $cap, $id ){
    if( 'send_reply' !== $cap || $can ) {
    return $can;
    }
    if( ! is_user_logged_in() || fep_is_user_blocked() ) {
    return $can;
    }
    if( ! $id || fep_get_message_status( $id ) !== 'publish' ) {
    return $can;
    }
    if ( in_array( get_current_user_id(), fep_get_participants( $id ) ) ) {
    $can = true;
    }

    return $can;
    }, 10, 3);

    #25826
    Andrew Perryman
    Participant

    The reason I ask the above is because it states a similar change in version 10.1.7 as (2) below..

    10.1.7
    1. Show users in directory and suggestion only who has access to message system
    2. Option added so that user can reply to messages deleted by other user
    3. Add html field type in admin settings

    I’ll mark thread as resolved.

    Look forward to your thoughts on the above code.

    Thanks once again.

    Andrew

    #25831
    Shamim Hasan
    Keymaster

    Yes, you can now remove this code. There is now a settings to allow reply of deleted message. Please go to Front End PM PRO > Settings > Security

    #25847
    Andrew Perryman
    Participant

    Hi Shamim,

    Thanks for the update, I have completed the needful and removed the above code for group administration.

    Thank you very much for input to resolve our self inflicted issue.

    If you wish in the future to have a use of an external test bed (staging platform) don’t hesitate to ask..

    I will now complete clear down housekeeping.

    Andrew.. 🙂

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

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.