• Hi there. I just downloaded and installed the plugin – Great idea for a plugin by the way. So I install and then navigate to the Crontrol option page and I get the following errors:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /xxxx/blog/wp-content/plugins/wp-crontrol/wp-crontrol.php on line 100

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /xxx/blog/wp-content/plugins/wp-crontrol/wp-crontrol.php on line 125

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /xxx/blog/wp-content/plugins/wp-crontrol/wp-crontrol.php on line 125

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /xxx/blog/wp-content/plugins/wp-crontrol/wp-crontrol.php on line 125

    So then I proceeded to add a new ‘every-2-hour’ cron schedule and I was able to do that. I was also able to delete it but I don’t see anything in the actions section for each of the cron schedules.

    Since then, I don’t get the error anymore on screen when I visit the Crontrol page. Weird.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I had the same issue.

    Hi vscarpenter & schmitt,

    I updated the code which should fix the proble you experienced. However, as you noticed, the problem only presents yourself when you first activate the plugin, so you’re in the clear now.

    vscarpenter:
    You can’t do anything with the built-in cron schedules because WP hard-codes those. It’s probably for the best also, as other plugins might be relying on them.

    Cheers,
    Edward

    Hi, I have also received this kind of message in my blog?

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in X:\wordpress\wp-includes\post.php on line 703

    May I know how to fix this problem?

    Thank you!

    plokmaster,

    Are you running the wp-crontrol plugin? If so, which version of WordPress are you running?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error when visting the Crontrol option page’ is closed to new replies.