Title: Fatal Error
Last modified: August 31, 2016

---

# Fatal Error

 *  Resolved [spameur](https://wordpress.org/support/users/spameur/)
 * (@spameur)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/)
 * Hello,
    Last version (4.23) breaks my site, get this php error message:
 * `Fatal error: Call to undefined function get_called_class() in /home/mydomain/
   public_html/wp-content/plugins/user-role-editor/includes/classes/base-lib.php
   on line 27`
 * Is it possible to fix it ?
 * [https://wordpress.org/plugins/user-role-editor/](https://wordpress.org/plugins/user-role-editor/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/fatal-error-1986/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-1986/page/2/?output_format=md)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012414)
 * Hi,
 * Thanks for the information.
    This function requires PHP 5.3+. I will search the
   replacement. Will you plan to switch to the higher PHP version than your current
   one (5.2.*) ?
 *  [Greg Greensky](https://wordpress.org/support/users/greg-greensky/)
 * (@greg-greensky)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012435)
 * Having that error too with PHP 5.2.12. Updating PHP on shared hosting requires
   admin action.
 * Temporarily uninstalling the plugin until something changes (either your code
   or the PHP on my shared sever).
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012442)
 * Fix was committed to the dev version
    [https://downloads.wordpress.org/plugin/user-role-editor.zip](https://downloads.wordpress.org/plugin/user-role-editor.zip)
   Call to `get_called_class()` was excluded. The oldest PHP version available to
   me is 5.4. Could you please test dev version against PHP 5.2 at your hosting?
 *  [Greg Greensky](https://wordpress.org/support/users/greg-greensky/)
 * (@greg-greensky)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012451)
 * Nope, now I get:
 * Plugin could not be activated because it triggered a fatal error.
    Fatal error:
   Call to undefined function get_called_class() in H:\root\home\greensky-001\www\
   site1\wp-content\plugins\user-role-editor\includes\classes\task-queue.php on 
   line 30
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012454)
 * Thanks again. I missed this class :(.
    Fixed. Please make another try – again
   with dev version for a while. File updated: includes/classes/task-queue.php
 *  [dozza](https://wordpress.org/support/users/dozza/)
 * (@dozza)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012457)
 * I was getting the same fatal error under php 5.2. Now upped it to php5.4 and 
   error no longer shows. Many thanks.
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012458)
 * [@dozza](https://wordpress.org/support/users/dozza/), Thanks for letting me know.
 *  [Tim](https://wordpress.org/support/users/tjalexander70/)
 * (@tjalexander70)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012466)
 * The 4.23.1 updates also breaks my site, had to turn it off… have PHP version 
   5.2.17 on a shared hosting. So, upgrading for the plugin in not an option.
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012467)
 * [@tjalexander70](https://wordpress.org/support/users/tjalexander70/), Any chance
   to see the error message?
 *  [Tim](https://wordpress.org/support/users/tjalexander70/)
 * (@tjalexander70)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012476)
 * The page was giving a 500 internal server error.
 * I pulled the logs and thing is what I found…
 * > PHP Fatal error: Call to undefined function get_called_class() in …wp-content/
   > plugins/user-role-editor/includes/classes/base-lib.php on line 27
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012480)
 * Thanks. I suppose that some mess in files may take place.
    Please delete user-
   role-editor folder and re-upload development 4.23.1 version from
 * [https://downloads.wordpress.org/plugin/user-role-editor.zip](https://downloads.wordpress.org/plugin/user-role-editor.zip)
 * base-lib.php file from it (and any others) does not use get_called_class() function
   anymore.
 *  [jebcomdev](https://wordpress.org/support/users/jebcomdev/)
 * (@jebcomdev)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012497)
 * [@vladimir](https://wordpress.org/support/users/vladimir/), thank you so much
   for your quick response to this issue! As it turns out, your update fixed the
   problem on my setup (host is running PHP 5.2 if that helps).
 *  Thread Starter [spameur](https://wordpress.org/support/users/spameur/)
 * (@spameur)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012499)
 * OK, 4.23.1 seems to work on 5.2*
    Thanks Vladimir.
 *  Thread Starter [spameur](https://wordpress.org/support/users/spameur/)
 * (@spameur)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012540)
 * I close this topic as v.4.23.1 is ready for download…
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/#post-7012544)
 * Thanks to Serge and all other participants of this thread for the help with resolving
   this issue.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/fatal-error-1986/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-1986/page/2/?output_format=md)

The topic ‘Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

 * 19 replies
 * 8 participants
 * Last reply from: [twitchski](https://wordpress.org/support/users/twitchski/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-1986/page/2/#post-7012571)
 * Status: resolved