Title: Error activitating plugin &#8211; use absolute paths
Last modified: September 8, 2022

---

# Error activitating plugin – use absolute paths

 *  Resolved [aydun](https://wordpress.org/support/users/aydun/)
 * (@aydun)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-activitating-plugin-use-absolute-paths/)
 * Trying to activate this plugin when the CiviCRM plugin is installed results in
   an error.
 * This is caused by the line
    `require('api'.DIRECTORY_SEPARATOR.'api.php');` in`
   function moppm_includes` of `class MOPPM`.
 * The CiviCRM plugin also has a file `api/api.php` resulting in this file being
   loaded twice.
 * This can be fixed by using absolute paths:
    `require plugin_dir_path(__FILE__).'
   api' . DIRECTORY_SEPARATOR . 'api.php';`
 * (Thanks to [@haystack](https://wordpress.org/support/users/haystack/) on [https://chat.civicrm.org](https://chat.civicrm.org)
   for diagnosing this.)

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

 *  [piyushmishra20](https://wordpress.org/support/users/piyushmishra20/)
 * (@piyushmishra20)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-activitating-plugin-use-absolute-paths/#post-16003737)
 * Hi [@aydun](https://wordpress.org/support/users/aydun/),
 * Thank you for reaching out to us.
    We appreciate your suggestion.
 * We will definitely consider this improvement in our next release.
    We can provide
   you with a customized plugin for now.
 * Could you please raise a query within the plugin or from our [Website](https://www.miniorange.com/contact)
   to proceed further?
 * Thanks,
    miniOrange
 *  Thread Starter [aydun](https://wordpress.org/support/users/aydun/)
 * (@aydun)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-activitating-plugin-use-absolute-paths/#post-16005540)
 * Hi [@piyushmishra20](https://wordpress.org/support/users/piyushmishra20/)
 * Thanks for the response. I’ve already made that change so I’m OK for now but 
   it would be good to see this in the next release.
 *  [piyushmishra20](https://wordpress.org/support/users/piyushmishra20/)
 * (@piyushmishra20)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-activitating-plugin-use-absolute-paths/#post-16011417)
 * Hello [@aydun](https://wordpress.org/support/users/aydun/),
 * Thanks for letting me know.
 * The correction would unquestionably be made, and the new release would include
   it.
 * For now, we are closing this ticket.
 * Thanks
    miniOrange team

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

The topic ‘Error activitating plugin – use absolute paths’ is closed to new replies.

 * ![](https://ps.w.org/password-policy-manager/assets/icon-256x256.png?rev=2454407)
 * [Password Policy Manager | Password Manager](https://wordpress.org/plugins/password-policy-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/password-policy-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/password-policy-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/password-policy-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/password-policy-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/password-policy-manager/reviews/)

## Tags

 * [password strength](https://wordpress.org/support/topic-tag/password-strength/)
 * [strong password](https://wordpress.org/support/topic-tag/strong-password/)

 * 3 replies
 * 2 participants
 * Last reply from: [piyushmishra20](https://wordpress.org/support/users/piyushmishra20/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-activitating-plugin-use-absolute-paths/#post-16011417)
 * Status: resolved