Support » Plugin: Relevanssi - A Better Search » Fatal Error when using Front End Submission Forms

  • Resolved Beda

    (@bedas)


    Hello

    When you use Relevannsi and a Front End Submission Tool like CRED, you will receive a Fatal Error.

    To replicate, you need to use as example Views and types, index a Custom Field with Relevanssi and use an Edit Form to submit a related post.

    The Error is visible on submission.

    It’s due to the fact that in indexing.php you added a Patch for ACF, that does not include wp-admin/includes/plugin.php.
    (line 733)

    If you add this below to your code, just above if (! is_plugin_active('advanced-custom-fields/acf.php')) return ; you will fix the issue:
    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );

    This is also explained in the Codex:
    https://codex.wordpress.org/Function_Reference/is_plugin_active

    Please let us know if we are wrong, but As Far I saw, this fixes the problem.

    We are to reach here:
    https://wp-types.com/forums/forum/support-2/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error when using Front End Submission Forms’ is closed to new replies.