PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/ElasticsearchErrorInterpreter.php +19 -2 5.0.25.3.5 View file →
@@ -90,15 +90,32 @@
90 90 'solution' => sprintf(
91 91 /* translators: Elasticsearch or ElasticPress.io; 2. Link to article; 3. Link to article */
92 92 __( 'Your website content has more public custom fields than %1$s is able to store. Check our articles about <a href="%2$s">Elasticsearch field limitations</a> and <a href="%3$s">how to index just the custom fields you need</a> and sync again.', 'elasticpress' ),
93 93 Utils\is_epio() ? __( 'ElasticPress.io', 'elasticpress' ) : __( 'Elasticsearch', 'elasticpress' ),
94 - 'https://elasticpress.zendesk.com/hc/en-us/articles/360051401212-I-get-the-error-Limit-of-total-fields-in-index-has-been-exceeded-',
95 - 'https://elasticpress.zendesk.com/hc/en-us/articles/360052019111'
94 + 'https://www.elasticpress.io/resources/articles/i-get-the-error-limit-of-total-fields-in-index-has-been-exceeded/',
95 + 'https://www.elasticpress.io/resources/articles/how-to-exclude-metadata-from-indexing/'
96 96 ),
97 97 ];
98 98 }
99 99
100 + if ( preg_match( '/Number of (.*) index errors/', $error, $matches ) ) {
101 + return [
102 + 'error' => $error,
103 + 'solution' => '',
104 + ];
105 + }
106 +
100 107 if ( Utils\is_epio() ) {
108 + if ( preg_match( '/you have reached the limit of indices your plan supports/', $error, $matches ) ) {
109 + return [
110 + 'error' => $error,
111 + 'solution' => sprintf(
112 + /* translators: ElasticPress.io Article URL */
113 + __( 'Please refer to <a href="%s">this article</a> outlining how to address this issue.', 'elasticpress' ),
114 + 'https://www.elasticpress.io/resources/articles/how-to-fix-the-you-have-reached-the-limit-of-indices-of-your-plan-and-it-was-not-possible-to-create-a-new-index-error/'
115 + ),
116 + ];
117 + }
101 118 return [
102 119 'error' => $error,
103 120 'solution' => sprintf(
104 121 /* translators: ElasticPress.io My Account URL */