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.*) ?
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).
Fix was committed to the dev version
https://downloads.wp.xz.cn/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?
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
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
I was getting the same fatal error under php 5.2. Now upped it to php5.4 and error no longer shows. Many thanks.
@dozza, Thanks for letting me know.
Tim
(@tjalexander70)
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.
@tjalexander70, Any chance to see the error message?
Tim
(@tjalexander70)
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
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.wp.xz.cn/plugin/user-role-editor.zip
base-lib.php file from it (and any others) does not use get_called_class() function anymore.
@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).
OK, 4.23.1 seems to work on 5.2*
Thanks Vladimir.
I close this topic as v.4.23.1 is ready for download…
Thanks to Serge and all other participants of this thread for the help with resolving this issue.