• Resolved Web Generation

    (@webgenerationnz)


    I was installing this plugin on a few different sites today to compare the hosting and some sites were unable to run a benchmark test. The following PHP error was output to the error log for a site using WP 5.9.7 and PHP 7.4.33

    [12-Sep-2023 00:14:51 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_cache_supports() in /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php:1193
    Stack trace: 0 /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(459): wpbenchmarkio->local_wp_cache_flush() 1 /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(448): wpbenchmarkio->reset_and_prepare_object_cache() 2 /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(34): wpbenchmarkio->get_initial_steps() 3 /home/mysite/public_html/wp-content/plugins/wpbenchmark/wp-benchmark-io.php(951): wpbenchmarkio->request_new(Array) 4 /home/mysite/public_html/wp-settings.php(418): include_once(‘/home/mysite/publi…’) 5 /home/mysite/public_html/wp-config.php(110): require_once(‘/home/mysite/publi…’) 6 /home/mysite/public_html/wp-load.php(50): require_once(‘/home/mysite/publi…’) 7 /home/mysite/public_html/wp-admin/admin.php(34): require_once(‘/home/mysite/publi…’) 8 /home/mysite/public_html/wp-admin/tools.php(40 in /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php on line 1193

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Web Generation

    (@webgenerationnz)

    Screenshot of the error as shown in the front end:

    Please any update on the reported issue? I have tested the plugin on my 5 wordpress installations and it worked only on one.
    All of them are running php 7.4.33 (ie. even the one where plugin works ok(!), so php 7.4.33 itself might not be the culprit). Perhaps plugin requires some php component, which is sometimes installed/activated on server (and sometimes not)? If so, please which php component is required (so I can activate it in server parameters)?

    Many thanks

    Error:

    2023-11-14T22:28:09+00:00 CRITICAL Uncaught Error: Call to undefined function wp_cache_supports() in /home/mysite/domains/mysite.ch/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php:1193 Stack trace: #0 /home/mysite/domains/mysite.ch/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(459): wpbenchmarkio->local_wp_cache_flush() #1 /home/mysite/domains/mysite.ch/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(448): wpbenchmarkio->reset_and_prepare_object_cache() #2 /home/mysite/domains/mysite.ch/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(34): wpbenchmarkio->get_initial_steps() #3 /home/mysite/domains/mysite.ch/public_html/wp-content/plugins/wpbenchmark/wp-benchmark-io.php(951): wpbenchmarkio->request_new(Array) #4 /home/mysite/domains/mysite.ch/public_html/wp-settings.php(391): include_once(‘/home/mysite/…’) #5 /home/mysite/domains/mysite.ch/public_html/wp-config.php(96): require_once(‘/home/mysite/…’) #6 /home/mysite/domains/naturau in /home/mysite/domains/mysite.ch/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php on line 1193

    Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    Sorry guys, looks like I kinda missed this place for support..

    Are you still experiencing this? What is your setup? I have never seen this sort of errors on any of sites, where I use it.. What PHP version are using? Any specific extra plugins you might have? maybe drop me a line to info at wpbenchmark dot io ?

    Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    that is quite strange – mentioned function is WordPress function and question is – why could your WP installation miss it.. it is not listed as “deprecated”.. https://developer.wordpress.org/reference/functions/wp_cache_supports/

    but sure – i’ll add extra check for that one, although it would affect object cache benchmarks..

    Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    Try with latest version 1.3.6. I wonder what MySQL version you have.. I have fixed some warning from table definition, besides that I did not discover any issues.

    Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    this was fixed

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.