Title: Errors in Log
Last modified: September 27, 2024

---

# Errors in Log

 *  Resolved [StevenP94](https://wordpress.org/support/users/stevenp94/)
 * (@stevenp94)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-in-log-19/)
 *     ```wp-block-code
       [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 uninstallhook. Please see Debugging in WordPress for more information. (This message was added inversion 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 uninstallhook. Please see Debugging in WordPress for more information. (This message was added inversion 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.php: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](https://wordpress.org/support/users/jeremyacy/)
 * (@jeremyacy)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-in-log-19/#post-18041254)
 * 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](https://wordpress.org/support/users/stevenp94/)
 * (@stevenp94)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-in-log-19/#post-18041500)
 * 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)

The topic ‘Errors in Log’ is closed to new replies.

 * ![](https://ps.w.org/acymailing/assets/icon-256x256.png?rev=2912466)
 * [AcyMailing - An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress](https://wordpress.org/plugins/acymailing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acymailing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acymailing/)
 * [Active Topics](https://wordpress.org/support/plugin/acymailing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acymailing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acymailing/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [StevenP94](https://wordpress.org/support/users/stevenp94/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/errors-in-log-19/#post-18041500)
 * Status: resolved