Title: Fatal error when editing user
Last modified: October 14, 2021

---

# Fatal error when editing user

 *  Resolved [mickwall](https://wordpress.org/support/users/mickwall/)
 * (@mickwall)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-when-editing-user/)
 * When editing a user I get an error at the bottom of the page
 * Grant My Tickets Permissions
    There has been a critical error on this website.
   Please check your site admin email inbox for instructions.
 * Learn more about troubleshooting WordPress.
 * In the server error log I see the following
 *  AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined
   function mc_kses_elements() in /var/www/wordpress/wp-content/plugins/my-tickets/
   my-tickets.php:793\nStack trace:\n#0 /var/www/wordpress/wp-includes/class-wp-
   hook.php(303): mt_user_profile()\n#1 /var/www/wordpress/wp-includes/class-wp-
   hook.php(327): WP_Hook->apply_filters()\n#2 /var/www/wordpress/wp-includes/plugin.
   php(470): WP_Hook->do_action()\n#3 /var/www/wordpress/wp-admin/user-edit.php(
   821): do_action()\n#4 {main}\n thrown in /var/www/wordpress/wp-content/plugins/
   my-tickets/my-tickets.php on line 793’, referer: [https://www.stjohnsshirley.org.uk/wp-admin/user-edit.php?user_id=97&wp_http_referer=%2Fwp-admin%2Fusers.php%3Fs%3Dbecky%26action%3D-1%26new_role%26ure_add_role%26ure_revoke_role%26primary_role%3Dshop_manager%26paged%3D1%26action2%3D-1%26new_role2%26ure_add_role_2%26ure_revoke_role_2](https://www.stjohnsshirley.org.uk/wp-admin/user-edit.php?user_id=97&wp_http_referer=%2Fwp-admin%2Fusers.php%3Fs%3Dbecky%26action%3D-1%26new_role%26ure_add_role%26ure_revoke_role%26primary_role%3Dshop_manager%26paged%3D1%26action2%3D-1%26new_role2%26ure_add_role_2%26ure_revoke_role_2)
   [
   Thu Oct 14 15:31:20.478272 2021] [proxy_fcgi:error] [pid 981:tid 139885163816704][
   client 141.101.105.26:12604] AH01071: Got error ‘PHP message: PHP Fatal error:
   Uncaught Error: Call to undefined function mc_kses_elements() in /var/www/wordpress/
   wp-content/plugins/my-tickets/my-tickets.php:793\nStack trace:\n#0 /var/www/wordpress/
   wp-includes/class-wp-hook.php(303): mt_user_profile()\n#1 /var/www/wordpress/
   wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()\n#2 /var/www/wordpress/
   wp-includes/plugin.php(470): WP_Hook->do_action()\n#3 /var/www/wordpress/wp-admin/
   user-edit.php(821): do_action()\n#4 {main}\n thrown in /var/www/wordpress/wp-
   content/plugins/my-tickets/my-tickets.php on line 793’, referer: [https://www.stjohnsshirley.org.uk/wp-admin/users.php?s=becky&action=-1&new_role&ure_add_role&ure_revoke_role&primary_role=shop_manager&paged=1&action2=-1&new_role2&ure_add_role_2&ure_revoke_role_2](https://www.stjohnsshirley.org.uk/wp-admin/users.php?s=becky&action=-1&new_role&ure_add_role&ure_revoke_role&primary_role=shop_manager&paged=1&action2=-1&new_role2&ure_add_role_2&ure_revoke_role_2)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-editing-user%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [mickwall](https://wordpress.org/support/users/mickwall/)
 * (@mickwall)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-when-editing-user/#post-14970665)
 * I have Manually edited lines 793 and 799 and changed mc_ksess_elements to mt_ksess_elements
   and that seems to of resolved things for me
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-editing-user/#post-14974108)
 * Updated release is out – thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error when editing user’ is closed to new replies.

 * ![](https://ps.w.org/my-tickets/assets/icon-256x256.png?rev=1097581)
 * [My Tickets - Accessible Event Ticketing](https://wordpress.org/plugins/my-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/my-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-tickets/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-editing-user/#post-14974108)
 * Status: resolved