• Resolved aydun

    (@aydun)


    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 on https://chat.civicrm.org for diagnosing this.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @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 to proceed further?

    Thanks,
    miniOrange

    Thread Starter aydun

    (@aydun)

    Hi @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.

    Hello @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.