We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7598f38 + 2ffb84d commit e6e005aCopy full SHA for e6e005a
classes/class-send-products.php
@@ -224,10 +224,8 @@ public static function send_products_to_algolia($id = '')
224
*/
225
$result = $index->saveObjects($records);
226
227
- if ('Algolia\AlgoliaSearch\Response\NullResponse' === get_class($result)) {
228
- echo '<div class="notice notice-error is-dismissible">
229
- <p>' . esc_html__('Potential API key issue. You may dismiss this if you are using the premium version.', 'algolia-woo-indexer') . '</p>
230
- </div>';
+ if ('Algolia\AlgoliaSearch\Response\NullResponse' === get_class($result)) {
+ wp_die(esc_html__('No response from the server. Please check your settings and try again', 'algolia_woo_indexer_settings'));
231
}
232
233
/**
0 commit comments