• Resolved StevenP94

    (@stevenp94)


    [27-Sep-2024 10:43:18 UTC] PHP Notice: Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall
    hook. Please see Debugging in WordPress for more information. (This message was added in
    version 3.1.0.) in /var/www/salotto/wp-includes/functions.php on line 6085
    [27-Sep-2024 10:43:18 UTC] PHP Stack trace:
    [27-Sep-2024 10:43:18 UTC] PHP 1. {main}() /var/www/salotto/wp-admin/admin-ajax.php:0
    [27-Sep-2024 10:43:18 UTC] PHP 2. require_once() /var/www/salotto/wp-admin/admin-ajax.php:22
    [27-Sep-2024 10:43:18 UTC] PHP 3. require_once() /var/www/salotto/wp-load.php:50
    [27-Sep-2024 10:43:18 UTC] PHP 4. require_once() /var/www/salotto/wp-config.php:83
    [27-Sep-2024 10:43:18 UTC] PHP 5. include_once() /var/www/salotto/wp-settings.php:522
    [27-Sep-2024 10:43:18 UTC] PHP 6. CustomHeadersForAcyMailing->__construct() /var/www/salotto/wp-content/plugins/acymailing-custom-headers/acymailing-customheaders.php:73
    [27-Sep-2024 10:43:18 UTC] PHP 7. register_uninstall_hook() /var/www/salotto/wp-content/plugins/acymailing-custom-headers/acymailing-customheaders.php:27
    [27-Sep-2024 10:43:18 UTC] PHP 8. _doing_it_wrong() /var/www/salotto/wp-includes/plugin.php:925
    [27-Sep-2024 10:43:18 UTC] PHP 9. wp_trigger_error() /var/www/salotto/wp-includes/functions.php:6029
    [27-Sep-2024 10:43:18 UTC] PHP 10. trigger_error() /var/www/salotto/wp-includes/functions.php:6085
    [27-Sep-2024 10:43:18 UTC] PHP Notice: Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall
    hook. Please see Debugging in WordPress for more information. (This message was added in
    version 3.1.0.) in /var/www/salotto/wp-includes/functions.php on line 6085
    [27-Sep-2024 10:43:18 UTC] PHP Stack trace:
    [27-Sep-2024 10:43:18 UTC] PHP 1. {main}() /var/www/salotto/wp-admin/admin-ajax.php:0
    [27-Sep-2024 10:43:18 UTC] PHP 2. require_once() /var/www/salotto/wp-admin/admin-ajax.php:22
    [27-Sep-2024 10:43:18 UTC] PHP 3. require_once() /var/www/salotto/wp-load.php:50
    [27-Sep-2024 10:43:18 UTC] PHP 4. require_once() /var/www/salotto/wp-config.php:83
    [27-Sep-2024 10:43:18 UTC] PHP 5. include_once() /var/www/salotto/wp-settings.php:522
    [27-Sep-2024 10:43:18 UTC] PHP 6. AcyMailingIntegrationForModernEventsCalendar->__construct() /var/www/salotto/wp-content/plugins/acymailing-integration-for-modern-events-calendar
    /acymailing-moderneventscalendar.php:73
    [27-Sep-2024 10:43:18 UTC] PHP 7. register_uninstall_hook() /var/www/salotto/wp-content/plugins/acymailing-integration-for-modern-events-calendar/acymailing-moderneventscalendar.p
    hp:27

    Please help me to stop this notices that are filling my logs

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jeremyacy

    (@jeremyacy)

    Hello,

    This seems to be due to the way we define the uninstall script for our external plugins. We will release a new version of our plugins to fix this warning, in the meantime you can temporary disable them (except AcyMailing) if you don’t actively use them.

    The next version is planned to be released during next week.

    Thread Starter StevenP94

    (@stevenp94)

    thanks, meanwhile I used a workaround:
    // register_uninstall_hook(FILE, [$this, ‘uninstall’]);
    register_uninstall_hook(FILE, ‘uninstall’);

    I don’t know if is correct but is working while waiting for a new release.

    thanks for your support

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