Title: Plugin incompatible with PHP 8.1
Last modified: December 2, 2023

---

# Plugin incompatible with PHP 8.1

 *  [Lock](https://wordpress.org/support/users/locksoft/)
 * (@locksoft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/)
 * Hi guys, I use your plugin a lot and I love it.
 * Recently one of my other plugins (SEO Framework) got updated to PHP 8.1. Being
   still on a previous release on my website, I’ve got several critical errors about
   it. So I updated it to 8.1 and it solved the issue.
 * However, on 8.1 Modern Footnotes stopped to work. I can see the notes numbers
   but without styling and clicking on them nothing works.
 * Are you planning to make MF compatible with PHP 8.* in a near future?
 * Thanks and have a nice day.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-incompatible-with-php-8-1-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [prismtechstudios](https://wordpress.org/support/users/prismtechstudios/)
 * (@prismtechstudios)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17247766)
 * Hello [@locksoft](https://wordpress.org/support/users/locksoft/), the plugin 
   should be compatible with PHP 8.x. I just confirmed on another site using PHP
   8.2 and it works when I just tested at [https://www.lemonskin.net/io/23634/](https://www.lemonskin.net/io/23634/).
   Are you still seeing the issue on your end, and do you get a particular error
   message from WordPress?
 *  Thread Starter [Lock](https://wordpress.org/support/users/locksoft/)
 * (@locksoft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17247832)
 * Hi prismtechstudios,
 * If I configure my hosting PHP to use PHP 7.4:
 * ![](https://i0.wp.com/i.postimg.cc/bYRCMWFB/temp-Image-Ef31-Qw.jpg?ssl=1)
 * I get MF to work perfectly:
 * ![](https://i0.wp.com/i.postimg.cc/tgJ0By5y/temp-Imagem-Uyq2f.jpg?ssl=1)
 * But, setting it to 8.1 (o 8.2), waiting for a while and emptying the browser 
   cache, I get this:
 * ![](https://i0.wp.com/i.postimg.cc/Ls0sD2cF/temp-Image-JNra-PR.jpg?ssl=1)
 * There are not error messages of any sort, but the plugin simply doesn’t work.
   It’s not just a style issue, even clicking the link does nothing.
 * I don’t know why or if it’s really the PHP version giving this problem, but it’s
   the only thing I’ve changed.
    -  This reply was modified 2 years, 5 months ago by [Lock](https://wordpress.org/support/users/locksoft/).
    -  This reply was modified 2 years, 5 months ago by [Lock](https://wordpress.org/support/users/locksoft/).
    -  This reply was modified 2 years, 5 months ago by [Lock](https://wordpress.org/support/users/locksoft/).
 *  Thread Starter [Lock](https://wordpress.org/support/users/locksoft/)
 * (@locksoft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17248032)
 * Edit: it worked when you tried it because I had to go back to PHP 7.4 (like now).
 * P.S. Ah ah, please ignore the “good evenTing” in the test. 🙂
    -  This reply was modified 2 years, 5 months ago by [Lock](https://wordpress.org/support/users/locksoft/).
 *  Plugin Author [prismtechstudios](https://wordpress.org/support/users/prismtechstudios/)
 * (@prismtechstudios)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17260698)
 * [@locksoft](https://wordpress.org/support/users/locksoft/) The behavior you’re
   describing would be due to a JavaScript error, and with those, an error in any
   plugin or theme will break every other plugin or theme. Could you follow the 
   steps under **Step 3: Diagnosis** of [Using Your Browser to Diagnose JavaScript Errors – Documentation – WordPress.org](https://wordpress.org/documentation/article/using-your-browser-to-diagnose-javascript-errors/)
   and take a screenshot of any error messages that you see? This will at least 
   help diagnose if the problem is related to Modern Footnotes.
 *  Thread Starter [Lock](https://wordpress.org/support/users/locksoft/)
 * (@locksoft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17260709)
 * Fair. I’ll do some testing. 🙂
 * Thanks.
 * **Edit:** You know what? I’ve set PHP to 8.1 and everything is perfectly working,
   even emptying the cache. In the meanwhile WP updated to 6.4.2, so I don’t know
   if it’s related, but now it’s all ok.
 * The only JS error I get is about the wp-admin-bar, that I think I’ve hidden in
   WP settings as I don’t need it (and maybe WP still tries to invoke it), but it
   doesn’t seem to block anything:
 * ![](https://i0.wp.com/i.postimg.cc/SRxn7bZv/temp-Image-NLFVP5.jpg?ssl=1)
 * I think we can close this ticket. Many thanks for your help.
 * Have a nice day. 🙂
    -  This reply was modified 2 years, 5 months ago by [Lock](https://wordpress.org/support/users/locksoft/).
 *  Thread Starter [Lock](https://wordpress.org/support/users/locksoft/)
 * (@locksoft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17264967)
 * **UPDATE:**
 * No, after a while, the plugin stops working on PHP 8.x:
 * ![](https://i0.wp.com/i.postimg.cc/s1dPxhdS/temp-Image5-ZLK49.jpg?ssl=1)
 * Switching back to PHP 7.4 it starts working again.
 * No track of Javascript errors in the console:
 * ![](https://i0.wp.com/i.postimg.cc/3JTn3sKq/temp-Image-Ac-U1-Ud.jpg?ssl=1)
 * Any idea?
 *  Plugin Author [prismtechstudios](https://wordpress.org/support/users/prismtechstudios/)
 * (@prismtechstudios)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17275438)
 * [@locksoft](https://wordpress.org/support/users/locksoft/) thanks for all that
   information. The only thought I have initially: do you use any page speed plugins?
   Sometimes those can combine the JavaScript files in the wrong order, which causes
   issues. If you do, you could try disabling the plugin when you see the issue,
   checking the site to see if it works, and then enabling the page speed plugin
   again after that.
 *  Thread Starter [Lock](https://wordpress.org/support/users/locksoft/)
 * (@locksoft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17281857)
 * I don’t think I have any age speed plugins. These are the ones I have (since 
   a long time and, so far, they didn’t give me any troubles):
 * ![](https://i0.wp.com/i.postimg.cc/nLypGtF6/temp-Image66wv-Sm.jpg?ssl=1)
 * ![](https://i0.wp.com/i.postimg.cc/br8P4H2g/temp-Imagea1-ADmm.jpg?ssl=1)
 * ![](https://i0.wp.com/i.postimg.cc/RVS9RdmV/temp-Image-E4-Dvn6.jpg?ssl=1)
 * Some of them are disabled, because I don’t use them anymore and I’ll remove them
   soon.

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

The topic ‘Plugin incompatible with PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/modern-footnotes/assets/icon-128x128.jpg?rev=1634981)
 * [Modern Footnotes](https://wordpress.org/plugins/modern-footnotes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/modern-footnotes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/modern-footnotes/)
 * [Active Topics](https://wordpress.org/support/plugin/modern-footnotes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modern-footnotes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modern-footnotes/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Lock](https://wordpress.org/support/users/locksoft/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-incompatible-with-php-8-1-2/#post-17281857)
 * Status: not resolved