WP-CLI error: Attempt to read property “current_options” on null
-
PHP Warning: Attempt to read property "current_options" on null in /chroot/home/.../wp-content/plugins/spiffy-calendar/includes/block.php on line 25I ran into this error when running WP-CLI. Might I suggest adding something like this at line 22 (after the global):
if (!isset($spiffy_calendar)) { $spiffy_calendar = new stdClass(); $spiffy_calendar->current_options = ['alphabetic_categories' => 'true']; }Or whatever to initialize the variable properly, just so it doesn’t throw an error. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘WP-CLI error: Attempt to read property “current_options” on null’ is closed to new replies.