Cannot save posts with Gutenberg editor
-
Hi
I noticed that when creating content with the new Gutenberg editor I am unable to save posts while Relevanssi is enabled. The error occurs when the AJAX save is triggered and only produces when no taxonomies are set to be indexed (i.e. the default setting).
Here is the trace of the error:
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/relevanssi/lib/indexing.php on line <i>393</i></th></tr>The issue seems to be that the setting “relevanssi_index_taxonomies_list” is not set in the DB yet, so a simple empty() test solve the issue.
indexing.php at line 391
if (!empty($taxonomies)){ // Then process all taxonomies, if any. foreach ($taxonomies as $taxonomy) { if ($debug) relevanssi_debug_echo("Indexing taxonomy terms for $taxonomy"); $insert_data = relevanssi_index_taxonomy_terms($post, $taxonomy, $insert_data); } }
Cheers
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cannot save posts with Gutenberg editor’ is closed to new replies.