Title: Fatal error triggered (PHP 8.1)
Last modified: April 8, 2022

---

# Fatal error triggered (PHP 8.1)

 *  Resolved [felr](https://wordpress.org/support/users/felr/)
 * (@felr)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-triggered-php-8-1/)
 * PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback)
   must be a valid callback, non-static method Acronyms::acronym_replace() cannot
   be called statically in /var/www/vhosts/mydomain.com/httpdocs/blog/wp-includes/
   class-wp-hook.php:307
 * Anyone knows how to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [felr](https://wordpress.org/support/users/felr/)
 * (@felr)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-triggered-php-8-1/#post-15668278)
 * I’ve redefined this function to STATIC, this fixed the problem.
 * Would be great if Chris, the author, could throw in an update to bring it up 
   to date w/ current WP & PHP releases again, this should just take a few minutes
   I guess. 😉
    -  This reply was modified 4 years ago by [felr](https://wordpress.org/support/users/felr/).
 *  Plugin Author [Chris](https://wordpress.org/support/users/renaissancedesign/)
 * (@renaissancedesign)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-triggered-php-8-1/#post-15673877)
 * Good catch. Latest release should fix that, sorry for the delay.
 *  Thread Starter [felr](https://wordpress.org/support/users/felr/)
 * (@felr)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-triggered-php-8-1/#post-15675542)
 * Awesome, good to see you back and at this chance, THANKS for this useful plugin!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error triggered (PHP 8.1)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acronyms-2_f8f8f8.svg)
 * [Acronyms 2](https://wordpress.org/plugins/acronyms-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acronyms-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acronyms-2/)
 * [Active Topics](https://wordpress.org/support/plugin/acronyms-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acronyms-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acronyms-2/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [felr](https://wordpress.org/support/users/felr/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/fatal-error-triggered-php-8-1/#post-15675542)
 * Status: resolved