Support » Plugin: WP Spell Check » plugin causing issue in cron.php

  • Resolved rwpett


    I was getting the following error: Warning: array_merge(): Argument #1 is not an array in /homepages/3/d88752171/htdocs/app578897945/wp-includes/cron.php on line 439
    Disabling the WP Spell Check Plug in resulted in the error going away.
    Any thoughts on how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve been having this problem too.

    In my case, I was seeing errors with WordPress SEO plugin:
    Catchable fatal error: Argument 1 passed to WPSEO_OnPage::add_weekly_schedule() must be of the type array, null given in /wp-content/plugins/wordpress-seo/admin/onpage/class-onpage.php on line 105

    It appears to be a result of /wp-spell-check/wpspellcheck.php, function cron_add_custom(), which runs on the filter cron_schedules. Approx line 2308-2350.

    In some cases, this function has no return value, when the filter expects an array returned. This would happen when if (sizeof($check_db) == 0).

    Finishing off the function with return $schedules; would probably fix the issue.

    Plugin Author WP Spell Check


    We have tried to fix this issue in our new version and it will be released next week. If you see any other PHP errors or Javascript errors, please post them here so we can fix them as well.
    Thank you for your support

    Your team @wpspellcheck

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plugin causing issue in cron.php’ is closed to new replies.