• Resolved gmariani405

    (@gmariani405)


    PHP Warning:  Attempt to read property "current_options" on null in /chroot/home/USER/ACCOUNT/html/wp-content/plugins/spiffy-calendar/includes/block.php on line 25
    PHP Warning:  Trying to access array offset on value of type null in /chroot/home/USER/ACCOUNT/html/wp-content/plugins/spiffy-calendar/includes/block.php on line 25

    I get the above messages when trying to use WP-CLI. It appears it’s trying to access a global variable that doesn’t exist yet. Can you add a check prior to trying to use $spiffy_calendar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gmariani405

    (@gmariani405)

    forgot, this is using version 4.9.2 on WordPress 6.2

    if ($spiffy_calendar && $spiffy_calendar->current_options['alphabetic_categories'] == 'true') $sql .= " ORDER BY category_name";

    Doing this simple check fixed it for me

    • This reply was modified 1 year, 11 months ago by gmariani405.
    Plugin Author Spiffy Plugins

    (@spiffyplugins)

    Version 4.9.4 should fix this problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error when using WP-CLI’ is closed to new replies.