I need to customize the output of the shortcode of plugin A by using a function of plugin B. So I alter the shortcode function of plugin A by inserting a condition to check the value of the function of plugin B but I need to include the php file that supports this function. I tried all require_once, require and include but I get the following errors:
Error Warning: require_once(): open_basedir restriction in effect. File(../../magicmembers/core/libs/functions/mgm_misc_functions.php) is not within the allowed path(s)
include(WP_PLUGIN_URL . '/pluginname/pluginfunctions.php');
Error Warning: include(): URL file-access is disabled in the server configuration
What is the correct way?