Home › Forums › Front End PM PRO › Unable to submit message on latest version
Tagged: ajax problem, message, unable to submit
- This topic has 14 replies, 2 voices, and was last updated 5 years, 5 months ago by Andrew Perryman.
-
AuthorPosts
-
June 13, 2019 at 12:36 am #25649Andrew PerrymanParticipant
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
June 13, 2019 at 8:55 am #25664Shamim HasanKeymasterCan 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?
June 15, 2019 at 12:51 am #25771Andrew PerrymanParticipantThis reply has been marked as private.June 15, 2019 at 10:24 am #25777Shamim HasanKeymasterI 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.June 15, 2019 at 10:16 pm #25803Andrew PerrymanParticipantHi 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
June 15, 2019 at 11:19 pm #25806Andrew PerrymanParticipantHi 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;};
}
June 15, 2019 at 11:31 pm #25809Shamim HasanKeymasterYour code is correct except last semi-colon.
June 15, 2019 at 11:32 pm #25811Andrew PerrymanParticipantPS..
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
June 15, 2019 at 11:36 pm #25814Andrew PerrymanParticipantOk thanksShamim, I will amend..
June 15, 2019 at 11:59 pm #25817Andrew PerrymanParticipantOk 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
June 16, 2019 at 12:00 am #25820Andrew PerrymanParticipantOops that should have been group not drop icon..
June 16, 2019 at 12:24 am #25823Andrew PerrymanParticipantShamim,
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);June 16, 2019 at 12:52 am #25826Andrew PerrymanParticipantThe 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 settingsI’ll mark thread as resolved.
Look forward to your thoughts on the above code.
Thanks once again.
Andrew
June 16, 2019 at 8:54 am #25831Shamim HasanKeymasterYes, 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
June 16, 2019 at 5:03 pm #25847Andrew PerrymanParticipantHi 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.. 🙂
-
AuthorPosts
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.