Shortcode does not display, due to role empty
-
Hi,
We have a huge problem with the plugin, when diplaying the message page :
– on a page, we need to display the inbox, with the shortcode [front-end-pm],
– it does not work well logged users. We have a “You do not have permission to access message system”
– by debbuging the program, we have seen that it calls “fep_current_user_can(access_message)”, and when it failed, the user call you made on function.php, line 827 :
$roles = wp_get_current_user()->roles;
returns an empty array. So, user having no roles, can not access message.
You perform a lot of calls to “fep_current_user_can(access_message)”, and only the one called by “main_shortcode_output” returns 0 roles, the other calls returning correct values.For precision, we are on a WordPress on windows.
Same installation on Linux works well.Any idea ?
Best Regards
- The topic ‘Shortcode does not display, due to role empty’ is closed to new replies.