WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints
Error notice: Warning: Invalid argument... (4 posts)

  1. Stephen Harris
    Member
    Posted 1 year ago #

    Hi guys,

    I got a bug report from someone for Event Organiser about the calendar not loading. Looking at their site (and I confirmed this on a local install to), I got the following error in the ajax response

    Warning: Invalid argument supplied for foreach() in /var/www/git/cubepoints/cp_core.php on line 191

    Apologies if this has already been reported (I couldnt' see anything about this in the forum), but just wanted to make you aware.

    Cheers!

    http://wordpress.org/extend/plugins/cubepoints/

  2. maxsinner
    Member
    Posted 1 year ago #

    i keep getting the same error, i have a 3.4 wp installation... whats d problem

  3. J.D. Grimes
    Member
    Posted 1 year ago #

    You can see line 191 here. There is a global variable $cp_module. That is the variable that the foreach is trying to loop over. For some reason though, $cp_module isn't an array, so it can't be looped in this way. Its possible that the global variable $cp_module is being used by another plugin.

  4. J.D. Grimes
    Member
    Posted 1 year ago #

    One thing that could cause this is if modules aren't being loaded. Go to the CubePoints -> Modules page. Do you see any modules there? If not, that is the problem. You are probably using a different name for wp-content or something. In cp_core.php on lines 177 and 181 change ABSPATH.PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)) to the real full path to the /modules/ folder inside of CubePoints.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.