• The plugin itself is working fine. I can display the points and everything. But I think the path used to find the modules is a little bit odd.
    I tried changing this in core.php ABSPATH.PLUGINDIR.’/’.dirname(plugin_basename(__FILE__))
    with plugin_dir_path( __FILE__ ) . No luck, I am getting the white screen of death. If you have the time and have any suggestion I would really appreciate it. Thanks!

    One last thing. This is what I am using for my plugin folder and I know its not from this because all my others plugin are working fine so far.

    define(‘WP_PLUGIN_DIR’, $_SERVER[‘DOCUMENT_ROOT’] . ‘/features’ );
    define(‘WP_PLUGIN_URL’, ‘https://’ . $_SERVER[‘SERVER_NAME’] . ‘/features’);
    define(‘DISALLOW_FILE_EDIT’, true);

    https://www.ads-software.com/extend/plugins/cubepoints/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Whenever you are debugging in WordPress its a good idea to turn on WordPress Debug. Then it will log errors and you can see what is going on. Try that and let me know what gets logged.

    Thread Starter Chumlee

    (@chumlee)

    features/cubepoints/cp_core.php:191 – Invalid argument supplied for foreach()

    Thread Starter Chumlee

    (@chumlee)

    function cp_modules_include(){
    foreach (glob(ABSPATH. ‘/features/cubepoints/modules/*.php’) as $filename){
    require_once($filename);
    }
    foreach (glob(ABSPATH. ‘/features/cubepoints/modules/*.php’) as $filename){
    require_once($filename);
    }
    }
    This did it. Mark it as solved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modules don't show up in admin panel under Cubepoints->Modules.’ is closed to new replies.