• Resolved frankieandshadow

    (@frankieandshadow)


    A recent update (probably the one for https://ww.wp.xz.cn/support/topic/fatal-error-when-relevanssi-is-not-activated/ ) is getting a runtime PHP fatal error “Call to undefined function is_plugin_active()” when making a REST query which used to work. (Relevnasi is active, but it never gets that far as the function supposedly to test whether it is or not apparently does not exist; perhaps it is called too early?).

    I replaced if (!is_plugin_active( 'relevanssi/relevanssi.php' ) && !is_plugin_active( 'relevanssi-premium/relevanssi.php' )) {withif (FALSE) { on the offending line rest-api-for-relevanssi.php:64 and it works again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sergiy Dzysyak

    (@dzysyak)

    The bug is fixed with the last update that was just uploaded.

    Thank you for the report.

    Thread Starter frankieandshadow

    (@frankieandshadow)

    Thank you! I can confirm it is now working again for me.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin crashes with undefined function is_plugin_active’ is closed to new replies.