Error when include wp-load.php

  • Author
    Posts
  • #144668

    This appears to me to be a bug that is possibly being caused by a combination of Parabola and the latest WordPress update. I have a CRON job that includes wp-load.php. When the CRON job runs now it generates the following error:

    PHP Warning: Trying to access array offset on value of type null in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 57 PHP Warning: Trying to access array offset on value of type null in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 101 PHP Warning: Undefined array key “parabola_totalSize” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 103 PHP Warning: Undefined array key “parabola_fpsliderwidth” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 105 PHP Warning: Undefined array key “parabola_fpsliderheight” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 105 PHP Warning: Undefined array key “parabola_colimagewidth” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 106 PHP Warning: Undefined array key “parabola_colimageheight” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 106 PHP Warning: Undefined array key “parabola_totalSize” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 112 PHP Warning: Undefined array key “parabola_sidewidth” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 320 PHP Warning: Undefined array key “parabola_sidebar” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 320 PHP Warning: Undefined array key “parabola_nrcolumns” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 322 PHP Warning: Undefined array key “parabola_colimageheight” in /home/dh_hxn249/rainsnap.org/wp-content/themes/parabola/includes/theme-setup.php on line 331

    I have confirmed that:
    1. All plugins as well as WordPress are up to date.
    2. This error arises even if the only code called by the CRON job are the two lines that include wp-load.php:
    $path = preg_replace( ‘/wp-content.*$/’, ”, __DIR__ );
    include($path . ‘wp-load.php’);
    3. This issue goes away if another theme is activated.

    It would be great if you could fix this bug, or advise me on how to change my code to avoid creating this issue. Including wp-load.php should not cause an error. This CRON job has been running without issues for months now, until I started getting this error a few weeks ago, I think when I updated to the latest version of WordPress. I tried rolling back to an earlier version of Parabola and that did not fix the issue.

    Website: rainsnap.org

Viewing 1 post (of 1 total)

You need to log in to reply to this topic.