Title: Getting &#8220;critical error&#8221; whenever plugin activated
Last modified: December 20, 2022

---

# Getting “critical error” whenever plugin activated

 *  [mjoundi](https://wordpress.org/support/users/mjoundi/)
 * (@mjoundi)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/)
 * Getting “critical error” whenever plugin activated.
 * Need to go through FTP and rename plugin.
 * I have tried everything, including reverting to the default theme, and deactivating
   ALL other plugins. Tried PHP 7.2 – 7.4. Same thing happens.
 * Any ideas? Plugin worked perfectly on another site that has many plugins.I have
   no more ideas about what could be conflicting here.
 * EDIT: Below is the error:
 *     ```
       Fatal error: Uncaught Error: Call to undefined function get_user_by() in /home/bilalcen/public_html/wp-includes/meta.php:1660 Stack trace: #0 /home/bilalcen/public_html/wp-includes/meta.php(176): get_object_subtype('user', 1) #1 /home/bilalcen/public_html/wp-includes/user.php(1049): update_metadata('user', 1, 'show_welcome_sc...', 1, '') #2 /home/bilalcen/public_html/wp-content/install.php(33): update_user_meta(1, 'show_welcome_sc...', 1) #3 /home/bilalcen/public_html/wp-admin/includes/upgrade.php(13): require('/home/bilalcen/...') #4 /home/bilalcen/public_html/wp-content/plugins/daily-prayer-time-for-mosques/Models/db.php(3): require_once('/home/bilalcen/...') #5 /home/bilalcen/public_html/wp-content/plugins/daily-prayer-time-for-mosques/Models/Init.php(3): require_once('/home/bilalcen/...') #6 /home/bilalcen/public_html/wp-content/plugins/daily-prayer-time-for-mosques/daily-prayer-time.php(10): require_once('/home/bilalcen/...') #7 /home/bilalcen/public_html/wp-settings.php(409): include_once('/home/bilalcen/...') #8 /h in /home/bilalcen/public_html/wp-includes/meta.php on line 1660
   
       Notice: is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/bilalcen/public_html/wp-includes/functions.php on line 5663
   
       Notice: is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/bilalcen/public_html/wp-includes/functions.php on line 5663
       There has been a critical error on this website. Please check your site admin email inbox for instructions.
       Learn more about troubleshooting WordPress.
       ```
   
    -  This topic was modified 4 years, 7 months ago by [mjoundi](https://wordpress.org/support/users/mjoundi/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-critical-error-whenever-plugin-activated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [mmrs151](https://wordpress.org/support/users/mmrs151/)
 * (@mmrs151)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/#post-15221660)
 * Jzk brother [@mjoundi](https://wordpress.org/support/users/mjoundi/)
 * Trying to understand the conflict …
 *  Plugin Author [mmrs151](https://wordpress.org/support/users/mmrs151/)
 * (@mmrs151)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/#post-15221677)
 * If you do not activate my plugin, does your site work correctly?
 *  Thread Starter [mjoundi](https://wordpress.org/support/users/mjoundi/)
 * (@mjoundi)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/#post-15222284)
 * Yes, this is the current site: _[ redundant link removed ]_
 * When activated, even with no other plugins and default theme, get a critical 
   error screen.
 * Thanks.
    -  This reply was modified 3 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 *  Thread Starter [mjoundi](https://wordpress.org/support/users/mjoundi/)
 * (@mjoundi)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/#post-15429455)
 * Salam – just following up, any updates regarding this?
 * Wordpress is on latest version, default theme, no other plugins, latest PHP (
   tried multiple versions), and still get critical error whenever activating plugin.
   I cannot think of anything else to try. Please advise, as we’d like to get this
   live thanks.
 *  Plugin Author [mmrs151](https://wordpress.org/support/users/mmrs151/)
 * (@mmrs151)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/#post-15430639)
 * wassalam,
 * Fatal error: Uncaught Error: Call to undefined function get_user_by()
 * is not one of my functions. but I will try to have a deeper look soon iA

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

The topic ‘Getting “critical error” whenever plugin activated’ is closed to new 
replies.

 * ![](https://ps.w.org/daily-prayer-time-for-mosques/assets/icon-128x128.png?rev
   =1215663)
 * [Daily Prayer Time](https://wordpress.org/plugins/daily-prayer-time-for-mosques/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/daily-prayer-time-for-mosques/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/daily-prayer-time-for-mosques/)
 * [Active Topics](https://wordpress.org/support/plugin/daily-prayer-time-for-mosques/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/daily-prayer-time-for-mosques/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/daily-prayer-time-for-mosques/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mmrs151](https://wordpress.org/support/users/mmrs151/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/getting-critical-error-whenever-plugin-activated/#post-15430639)
 * Status: not resolved