Title: Plugin breaks on activation
Last modified: May 18, 2021

---

# Plugin breaks on activation

 *  Resolved [stormymondays](https://wordpress.org/support/users/stormymondays/)
 * (@stormymondays)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/)
 * I just installed the plugin and it creates a fatal error.
 * I can see this in the error log:
 * PHP Fatal error: Cannot redeclare pll_the_languages() (previously declared in/
   home/USERNAME/public_html/wp-content/plugins/polylang/include/api.php:31) in /
   home/USERNAME/public_html/wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/
   include/api.php on line 34

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

 *  Plugin Author [richardevcom](https://wordpress.org/support/users/richardevcom/)
 * (@richardevcom)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14455401)
 * Hi [@stormymondays](https://wordpress.org/support/users/stormymondays/) Looking
   at the error I’m pretty sure **you’re using both free and pro version at the 
   same time**, as they both are trying to declare the same function. Oour plugin
   doesn’t declare any of these functions so it’s not our plugins issue. **Try deactivating
   free version**. The error should disappear.
 * If it’s not the case and error still appears – please follow our “[Read before post](https://wordpress.org/support/topic/read-before-creating-a-new-topic/)”
   guideline and share more information about this error.
    -  This reply was modified 5 years ago by [richardevcom](https://wordpress.org/support/users/richardevcom/).
    -  This reply was modified 5 years ago by [richardevcom](https://wordpress.org/support/users/richardevcom/).
 *  Thread Starter [stormymondays](https://wordpress.org/support/users/stormymondays/)
 * (@stormymondays)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14456684)
 * Thanks for the quick reply! No, I don’t have the free and pro version at the 
   same time, the free version is inactive. I do have Polylang for WooCommerce active,
   but that is necessary.
 * I’m on the latest version of everything and I have 54 plugins enabled. The fatal
   error appears when enabling your plugin and stops when I move it out of the plugins
   folder (because it locks me out of everything).
 *  Plugin Author [richardevcom](https://wordpress.org/support/users/richardevcom/)
 * (@richardevcom)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14457772)
 * Can you please confirm by disabling all plugins, but single Polylang plugin and
   then enabling our plugin?
 * [@stormymondays](https://wordpress.org/support/users/stormymondays/) allright.
   I will test single Polylang version with this. It may be due to requiring `api.
   php` and once it is required the functions are registered before Polylang calls
   the file and registers them in some occasions.
    -  This reply was modified 5 years ago by [richardevcom](https://wordpress.org/support/users/richardevcom/).
 *  Plugin Author [richardevcom](https://wordpress.org/support/users/richardevcom/)
 * (@richardevcom)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14458089)
 * [@stormymondays](https://wordpress.org/support/users/stormymondays/) I indeed
   found the issue on our side. Thank you for submitting this issue. 🙂
 * It has been fixed now and submitted, so you should go and update our plugin to
   1.4.0 version.
    -  This reply was modified 5 years ago by [richardevcom](https://wordpress.org/support/users/richardevcom/).
 *  Thread Starter [stormymondays](https://wordpress.org/support/users/stormymondays/)
 * (@stormymondays)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14458976)
 * Many thanks for the speedy fix!
 *  Plugin Author [richardevcom](https://wordpress.org/support/users/richardevcom/)
 * (@richardevcom)
 * [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14459001)
 * You’re always welcome [@stormymondays](https://wordpress.org/support/users/stormymondays/)
   
   I would appreciate if you’d leave a review of our plugin. 🙂

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

The topic ‘Plugin breaks on activation’ is closed to new replies.

 * ![](https://ps.w.org/add-polylang-support-for-customizer/assets/icon-256x256.
   png?rev=2305208)
 * [Add Polylang support for Customizer](https://wordpress.org/plugins/add-polylang-support-for-customizer/)
 * [Support Threads](https://wordpress.org/support/plugin/add-polylang-support-for-customizer/)
 * [Active Topics](https://wordpress.org/support/plugin/add-polylang-support-for-customizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-polylang-support-for-customizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-polylang-support-for-customizer/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [richardevcom](https://wordpress.org/support/users/richardevcom/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/plugin-breaks-on-activation/#post-14459001)
 * Status: resolved