Fatal Error when using Front End Submission Forms
-
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.phpyou added a Patch for ACF, that does not includewp-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.ww.wp.xz.cn/Function_Reference/is_plugin_activePlease 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/
The topic ‘Fatal Error when using Front End Submission Forms’ is closed to new replies.