• Resolved ArtGoddess

    (@artgoddess)


    Hello,

    On my WordPress sites, I usually deactivate WP Cron and activate the Cron from CPanel. I’m using PHP 7.4.

    From time to time, I receive this email:

    Notice: Trying to access array offset on value of type int in /home/user/public_html/wp/wp-admin/includes/class-wp-site-health.php on line 2303
    Notice: Trying to access array offset on value of type int in /home/user/public_html/wp/wp-admin/includes/class-wp-site-health.php on line 2305
    Notice: Trying to access array offset on value of type int in /home/user/public_html/wp/wp-admin/includes/class-wp-site-health.php on line 2303
    Notice: Trying to access array offset on value of type int in /home/user/public_html/wp/wp-admin/includes/class-wp-site-health.php on line 2305
    Notice: Trying to access array offset on value of type int in /home/user/public_html/wp/wp-admin/includes/class-wp-site-health.php on line 2303
    Notice: Trying to access array offset on value of type int in /home/user/public_html/wp/wp-admin/includes/class-wp-site-health.php on line 2305

    Do you know what can be happening? Many thanks for your guidance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    WP is trying to compile a list of site health check results, but one or more of the checks returned an unexpected value, probably because its cron had been disabled. WP is not happy when its cron is disabled because that’s how it manages update checks among several other things. If your site is otherwise working as you need and you ensure your installation is kept up to date you can probably ignore the notices. But WP will not be happy without its cron.

    Thread Starter ArtGoddess

    (@artgoddess)

    Thank you @bcworkz for your kind answer.

    I have reactivated again WP Cron and deactivated the CPanel one. Let’s consider this issue solved. If there are more notices, I will open another thread.

    Stay safe.

    I have PHP 7.4. on my site and see this in my log:
    Trying to access array offset on value of type int in /…myurl…/wp-admin/includes/class-wp-site-health.php on line 2305
    I am not doing anything with cron but still get this notice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to access array offset in class-wp-site-health.php’ is closed to new replies.