Forums

Error when visting the Crontrol option page (5 posts)

  1. vscarpenter
    Member
    Posted 4 years ago #

    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.

  2. schmitt
    Member
    Posted 4 years ago #

    I had the same issue.

  3. scompt
    Member
    Posted 4 years ago #

    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

  4. plokmaster
    Member
    Posted 4 years ago #

    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!

  5. scompt
    Member
    Posted 4 years ago #

    plokmaster,

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

Topic Closed

This topic has been closed to new replies.

About this Topic