• Resolved jaeger

    (@jaegerschnitzel)


    Today I tried to update to PHP8. Unfortunately my blog does not work.
    I activated Debug mode and saw the following error:

    Fatal error: Uncaught Error: Call to undefined function create_function() in /data/web/htdocs/wp-content/plugins/wp-memory-usage/wp-memory-usage.php:108 Stack trace: #0 /data/web/htdocs/wp-settings.php(388): include_once() #1 /data/web/htdocs/wp-config.php(37): require_once(‘/data/web/…’) #2 /data/web/htdocs/wp-load.php(37): require_once(‘/data/web/…’) #3 /data/web/htdocs/wp-admin/admin.php(34): require_once(‘/data/web/…’) #4 /data/web/htdocs/wp-admin/index.php(10): require_once(‘/data/web/…’) #5 {main} thrown in /data/web/htdocs/wp-content/plugins/wp-memory-usage/wp-memory-usage.php on line 108

    Perhaps you can fix it. I hope so šŸ™‚

    • This topic was modified 4 months, 2 weeks ago by jaeger.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author sminozzi

    (@sminozzi)

    Hi Jaeger,

    This error message is caused by another plugin, not for our plugin.

    Try to deactivate this plugin:
    WP-Memory-Usage
    because it was actualized last time 7 years ago and is compatible with WordPress 3.7, not 5.6.

    Please, try our plugin wp-memory and let us know if it has some issue with PHP 8 and we will fix it quickly, if necessary.
    https://wordpress.org/plugins/wp-memory/

    Our plugin can show you the available memory too.

    To deactivate it, remove this folder:
    /data/web/htdocs/wp-content/plugins/wp-memory-usage/

    You can do it by FTP or thru your file manager on your hosting panel.

    You can also change your php to 7.x and do it, go to your
    Dashboard => Plugins => WP-Memory-Usage
    and deactivate it.

    Otherwise, request support to your hosting company to remove that folder.

    Cheers,
    Bill

    Thread Starter jaeger

    (@jaegerschnitzel)

    I’m very sorry about the confusion. Yes you are correct.
    And thanks a lot for the explanation how I can fix the problem.

    Unfortunately your plugin also throws and error:

    Fatal error: Uncaught Error: Call to undefined function add_management_page() in /data/htdocs/wp-content/plugins/wp-memory/wpmemory.php:180 Stack trace: #0 /data/htdocs/wp-includes/class-wp-hook.php(287): wp_memory_init(”) #1 /data/htdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /data/htdocs/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /data/htdocs/wp-settings.php(579): do_action(‘wp_loaded’) #4 /data/htdocs/wp-config.php(37): require_once(‘/data/web/…’) #5 /data/htdocs/wp-load.php(37): require_once(‘/data/web/…’) #6 /data/htdocs/wp-admin/admin.php(34): require_once(‘/data/web/…’) #7 /data/htdocs/wp-admin/plugins.php(10): require_once(‘/data/web/…’) #8 {main} thrown in /data/htdocs/wp-content/plugins/wp-memory/wpmemory.php on line 180

    Plugin Author sminozzi

    (@sminozzi)

    Hi Jaeger,

    Thanks for let me know.
    I’m on London timezone. Tomorrow I will find a solution and let you know.
    I will install PHP 8 in our server and run a couple of tests.

    Thanks for the patience,
    Cheers,
    Bill

    Plugin Author sminozzi

    (@sminozzi)

    Hi Jaeger,

    I’m working on that.
    Please, check if you are running the last version of WordPress (5.6 or 5.6.1)

    Please, let me know.
    Cheers,
    Bill

    Plugin Author sminozzi

    (@sminozzi)

    Hi Jaeger,

    The plugin works fine now (Version 1.4) with PHP 8 (tested with PHP 8.0.1)
    Just install from WordPress the version 1.4

    Thanks for the patience and for the collaboration.

    Cheers,
    Bill

    Thread Starter jaeger

    (@jaegerschnitzel)

    Thanks a lot for that quick fix!
    I can agree that it’s working now šŸ™‚

    Plugin Author sminozzi

    (@sminozzi)

    Hi Jaeger,
    You are welcome. I’m happy to hear that.
    Please, leave us a good review.
    Thanks,
    Bill

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