Plugin Author
Dion
(@diondesigns)
Can you tell me which version of PHP you are using?
I looked in the code, and the only way that error could occur is if you were using a version of PHP older than 5.3.0, or if the usagedd.php file was somehow corrupted.
I have updated UsageDD to version 1.3.1. THe README now states that UsageDD requires PHP 5.3 or later. I also changed the code to eliminate the error; if UsageDD is now installed on a system with PHP 5.2.x, it will do absolutely nothing.
Since it’s remotely possible that you had a corrupted usagedd.php file, if your system uses PHP 5.3 or later, please try downloading the new version and let me know if it helps.
cPanel says the PHP version is 5.5.38.
I installed 1.3.1 and it works now. Thank you for updating it! I’m seeing two numbers at the bottom – number of queries and memory usage.
Plugin Author
Dion
(@diondesigns)
I’m glad the update helped.
It’s really interesting that you only see two numbers. The execution time numbers in UsageDD rely on the REQUEST_TIME_FLOAT
server variable set by PHP. You’ll note in the PHP documentation that this variable has been available since PHP 5.4.0:
https://secure.php.net/manual/en/reserved.variables.server.php
That means either cPanel is reporting an incorrect version of PHP, or your hosting company has edited the cPanel templates to build non-standard versions of PHP.
This would also explain the fatal error you initially received, which should have only happened with a vesion of PHP older than 5.3.0.
Sorry, my mistake. cPanel’s ‘server information’ reports on the left hand side of the main page that it is PHP 5.5.38. However clicking the PHP Selector icon in cPanel says that the current version is only 5.2. Time to upgrade I guess!
Thanks for your help.