Support » Plugin: CubePoints » Error notice: Warning: Invalid argument…

  • 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.


Viewing 3 replies - 1 through 3 (of 3 total)
  • i keep getting the same error, i have a 3.4 wp installation… whats d problem

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error notice: Warning: Invalid argument…’ is closed to new replies.