WordPress.org

Forums

Server IP & Memory Usage Display
[resolved] Redefining already defined constructor (8 posts)

  1. kjohnson_2
    Member
    Posted 9 months ago #

    After this plugin is installed, this error occurs each time a page is displayed for the site:

    Strict Standards: Redefining already defined constructor for class ip_address_memory_usage in eclypse.org\wp-content\plugins\server-ip-memory-usage\server-ip-memory-usage.php on line 40

    Swapping the order of function __construct() and function ip_address_memory_usage() in server-ip_memory-usage.php appears to fix this.

    https://wordpress.org/plugins/server-ip-memory-usage/

  2. apasionados
    Member
    Plugin Author

    Posted 9 months ago #

    Hi there. Thanks for the info. We will check the next days and come back to you.

  3. joseluiscruz
    Member
    Posted 4 months ago #

    This error still happens. And furthermore, it can conflict with some plugins.

    When I'm setting up WPML for the first time I have to disable this plugin because if not I can't end the configuration process.

  4. apasionados
    Member
    Plugin Author

    Posted 4 months ago #

    Hi there,

    We are using this plugin on several sites with WPML and never saw this error.

    The error you get is the same as first time?

    Strict Standards: Redefining already defined constructor for class ip_address_memory_usage in eclypse.org\wp-content\plugins\server-ip-memory-usage\server-ip-memory-usage.php on line 40

    If you confirm or send the exact error you got, we will have a look into it next week.

    Sorry for the inconvenience.

  5. joseluiscruz
    Member
    Posted 4 months ago #

    Hi, thanks. The error is the same. Both in the backend and in the frontend, when WP_DEBUG is set to true:

    Strict Standards: Redefining already defined constructor for class ip_address_memory_usage in /home/---/public_html/wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php on line 40

    The thing is I no longer saw the error in the site I'm working on, but that was because I just installed the plugin Query Monitor, which redirects those errors to the firebug console:

    "=== PHP Error in AJAX Response ===" query-monitor.js:157:4
    10:05:53.125 Object { type: "strict", message: "Redefining already defined constructor for class ip_address_memory_usage", file: "/home/---/public_html/wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php", line: 40, stack: Array[1], component: "Core" }

    I checked that using Query Monitor plugin the error no longer conflicts with wpml setup. But if I disable it, reset & reactivate WPML and re-run its config wizard, the stopping error is still there. I made a screenshot of that moment. If I try to press the next button that page reloads again because of the error in your plugin. To continue I must either disable your plugin, or activate the Query Monitor one.

    thank you very much for your time!

  6. apasionados
    Member
    Plugin Author

    Posted 4 months ago #

    Hi there,

    We just uploaded another version of the plugin that doesn't use the __construct.

    It's version 1.0.3 that you can find here: v1.0.3.

    This should fix the problem.

    Please advice if it has solved the problem and works for you. Once you have tested and found ok, we will reléase it.

  7. joseluiscruz
    Member
    Posted 4 months ago #

    Thank you. Can confirm the new version works well in all the previous cases. Gracias

  8. apasionados
    Member
    Plugin Author

    Posted 4 months ago #

    Thanks for the feedback. Gracias.

Reply

You must log in to post.

About this Plugin

About this Topic