Title: Critical error when disabling polylang plugin
Last modified: April 12, 2024

---

# Critical error when disabling polylang plugin

 *  [wheelmuc1](https://wordpress.org/support/users/wheelmuc1/)
 * (@wheelmuc1)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/critical-error-when-disabling-polylang-plugin/)
 * Hi there,
 * I installed polylang free on our company website in order to make it multilingual.
   I am using bricks page builder to build the pages.
 * As I am experiencing some performance issues with the site I tried to disable
   plugin after plugin. However with polylang I experience a critical error. So 
   at the moment it is not possible to deactivate the plugin.
 * Would you please be so kind and let me know where this might come from and how
   I can fix that ?
 * Many thanks in advance
 * Andreas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-when-disabling-polylang-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/critical-error-when-disabling-polylang-plugin/#post-17686705)
 * Hello,
 * A deactivated plugin can do nothing. So if you have a critical error when Polylang
   is deactivated, that means that the error can’t be in Polylang. 
   Generally, this
   kind of error occurs when using Polylang functions without checking that they
   exist, most often is custom code.The error message should tell you where it is.
 *  Thread Starter [wheelmuc1](https://wordpress.org/support/users/wheelmuc1/)
 * (@wheelmuc1)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/critical-error-when-disabling-polylang-plugin/#post-17707446)
 * Hi [@chouby](https://wordpress.org/support/users/chouby/),
 * many thanks for your feedback. The issue happens when I try to deactivate the
   plugin.
 * So as soon I hit the deactivate button I recieve a critical error.
 * Hence it’s not possible to deactivate the plugin.
 * When I rename the polylang folder via ftp to disable the plugin the whole site
   crashes.
 * to me it looks like it has something to do with polylang.
 * Greetings
 * Andreas
 *  [nicolagruppoyec](https://wordpress.org/support/users/nicolagruppoyec/)
 * (@nicolagruppoyec)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/critical-error-when-disabling-polylang-plugin/#post-17834832)
 * Same error, debug return me:
   **Warning**: Attempt to read property “model” on
   null in **/home/i82kk9tz/public_html/wp-content/plugins/polylang/include/api.
   php** on line **94**Ver. WP -> 6.5.4Ver. PHP-> 8.1.22Any solutions?

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

The topic ‘Critical error when disabling polylang plugin’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [nicolagruppoyec](https://wordpress.org/support/users/nicolagruppoyec/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/critical-error-when-disabling-polylang-plugin/#post-17834832)
 * Status: not resolved