Support » Plugin: Core Control » Foreach Invalid argument supplied

  • Hey there,

    Before anything, great plugin, really useful! I’ve been using it with the cron module and I noticed a warning regarding an invalid argument on line 138, which means, when you list the cronjobs there is no output for the hooked functions, therefore I tried to fixed it. I’m not sure if it’s 100% correct, however it shows at least one function per cron.

    Here is the (semi probably) fixed version.
    Path: /pluginDir/modules/core_control_cron.php

    DL: https://dl.dropboxusercontent.com/u/55484/core_control_cron.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Great plugin indeed! Thanks.

    Getting the same notice and some warnings:

    
    Notice: Undefined index: function in /srv/www/fgh/htdocs/wp-content/plugins/core-control/modules/core_control_cron.php on line 141
    
    Notice: Undefined index: function in /srv/www/fgh/htdocs/wp-content/plugins/core-control/modules/core_control_cron.php on line 148
    
    Warning: Invalid argument supplied for foreach() in /srv/www/fgh/htdocs/wp-content/plugins/core-control/modules/core_control_cron.php on line 138
    
    Warning: Invalid argument supplied for foreach() in /srv/www/fgh/htdocs/wp-content/plugins/core-control/modules/core_control_cron.php on line 138
    
    Thread Starter FancyThought

    (@psiico)

    Yeah, I tried to patch it up but I think my patch still returns some sort of warnings. Let’s wait and see if there is an oficial release 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Foreach Invalid argument supplied’ is closed to new replies.