Hello,
The form shortcode works as expected.
With that said the form shortcode will not work on one single page. Message error; “You cannot send message to”.
I traced the message in your code to file: class-fep-shortcodes.php line 110. Which is wrapped with ! fep_current_user_can( ‘send_new_message_to’, $to_id ).
I commented out that condition which triggered another Message error; ” You do not have permission to send message to this receiver!
So, I traced that message to file: form-shortcode-message.php. line 9. Which is wrapped with ! fep_current_user_can( ‘send_new_message_to’, $to_id ).
I commented out that condition and the form came up. Here is my shortcode;
[fep_shortcode_new_message_form to=”‘ . $store_user->get_id() . ‘” subject=”test”]
I submitted a message and received the following errors;
Error: Invalid receiver “2”.
Error: You must enter a valid recipient!
Again, The form shortcode works fine everywhere accept this one page. I’m thinking that form shortcode is looking at a different slug?????
This one page has custom url rewrite: mysite.com/merchant/author-name
Where merchant = ‘slug’ and author-name = whichever store name gets clicked on
if you can direct me as to what the problem could be and how I can get this form shortcode to work on this page would be appreciated.
Thank You.
Good Day.