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');
infunction moppm_includes
ofclass 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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error activitating plugin – use absolute paths’ is closed to new replies.