10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.26k stars 313 forks source link

Strange behaviour on my home page #1193

Closed willstocks closed 5 years ago

willstocks commented 5 years ago

Have you searched for similar issues before submitting this one?

Tried to but couldn't find anything based on a quick search

Is this a bug, question or feature request?

Bug

Describe the issue you encountered:

Following the process documented here: https://www.cloudways.com/blog/elasticsearch-on-wordpress/ I have setup ElasticPress/ElasticSearch on my Cloudways Wordpress instance, however when I enable EP, my homepage (list of blog posts) gets replaced by the "failed search" screen (cleared all caches!)? I've since disabled the plugin on my site and will try to get it setup on my test site!

It's not the 404 screen... it's the "No search results" screen

Current WordPress version:

5.0.2

Current ElasticPress version:

2.7

Current Elasticsearch version:

5.4

Where do you host your Elasticsearch server:

locally

Other plugins installed (WooCommerce, Simple Redirect Manager, etc..):

A few - I'll get the list. Main ones that may interfere being Autoptimize and W3TC

Steps to reproduce:

  1. Setup EP (Cloudways Digital Ocean 1GB with ES enabled)
  2. Ensure homepage is a list of blogposts
  3. Enable EP and navigate to homepage

Screenshots, if needed: image

fkkm1999 commented 5 years ago

Same problem but i have a static page as homepage

Also on Cloudwaus Digital Ocean

willstocks commented 5 years ago

That's interesting!!! Which version of ElasticSearch were you running? @shahroznawaz - I know we've talked briefly about WordPress/Cloudways - are you able to offer any potential insight here?

fkkm1999 commented 5 years ago

Version 2.7.0

willstocks commented 5 years ago

Was that the ElasticPress version (Plugin), or the ElasticSearch version (service via Cloudways platform)?

fkkm1999 commented 5 years ago

2.4, but its something in the plugin probably.

willstocks commented 5 years ago

Ahhh, OK cool - yeah I was trying to use 5.4 because 6.# didn't work at all (would be nice to see this in the future) so it's not just one version. I highly doubt Cloudways have wrecked ElasticSearch their end, so I'd be leaning more towards plugin-side :(

oscarssanchez commented 5 years ago

Hi @willstocks-tech and @fkkm1999 ,

I just tested 2.7 with ES 5.4.2 and everything behaves as expected from my side.

Because this seems to be from the same hosting provider, I'm inclined to think the problem must be on their side, so the best thing here would be to reach out to them. You can always install the debug bar https://github.com/10up/debug-bar-elasticpress to check what error ES is throwing at you.

Also, note that ES is supported up to 6.3, so you can install that one if you want to :)

Have a good day!

willstocks commented 5 years ago

Aha - thanks @oscarssanchez! I'll give the debug bar a go as well as will reach out to the guys at Cloudways (@Saquibrizwan and @shahroznawaz) to see what's what. When I was using 6.3, it kept giving me a cURL error relating to SSL something or other (I'll regrab that and will log separately if it's not an environmental thing)

shahroznawaz commented 5 years ago

Hey Will, Thanks for notifying it. Looks strange to me also. I need to test it on my end also to check if this happend on every wordpress install or anything specific causing this. I'll test it and add the comment here.

willstocks commented 5 years ago

@oscarssanchez this is a mammoth, but installed, reactivated, synced and went to my homepage and immediately:

TOTAL ELASTICPRESS QUERIES:
1
TOTAL BLOCKING ELASTICPRESS QUERY TIME:
37 ms
Host: http://127.0.0.1:9200
Time Taken: 37 ms
URL: http://127.0.0.1:9200/willstockscouk-1/post/_search
Method: POST
Query Args: 
array(68) {
  ["error"]=>
  string(0) ""
  ["m"]=>
  string(0) ""
  ["p"]=>
  int(0)
  ["post_parent"]=>
  string(0) ""
  ["subpost"]=>
  string(0) ""
  ["subpost_id"]=>
  string(0) ""
  ["attachment"]=>
  string(0) ""
  ["attachment_id"]=>
  int(0)
  ["name"]=>
  string(0) ""
  ["static"]=>
  string(0) ""
  ["pagename"]=>
  string(0) ""
  ["page_id"]=>
  int(0)
  ["second"]=>
  string(0) ""
  ["minute"]=>
  string(0) ""
  ["hour"]=>
  string(0) ""
  ["day"]=>
  int(0)
  ["monthnum"]=>
  int(0)
  ["year"]=>
  int(0)
  ["w"]=>
  int(0)
  ["category_name"]=>
  string(0) ""
  ["tag"]=>
  string(0) ""
  ["cat"]=>
  string(3) "-10"
  ["tag_id"]=>
  string(0) ""
  ["author"]=>
  string(0) ""
  ["author_name"]=>
  string(0) ""
  ["feed"]=>
  string(0) ""
  ["tb"]=>
  string(0) ""
  ["paged"]=>
  int(0)
  ["meta_key"]=>
  string(0) ""
  ["meta_value"]=>
  string(0) ""
  ["preview"]=>
  string(0) ""
  ["s"]=>
  string(0) ""
  ["sentence"]=>
  string(0) ""
  ["title"]=>
  string(0) ""
  ["fields"]=>
  string(0) ""
  ["menu_order"]=>
  string(0) ""
  ["embed"]=>
  string(0) ""
  ["category__in"]=>
  array(0) {
  }
  ["category__not_in"]=>
  array(0) {
  }
  ["category__and"]=>
  array(0) {
  }
  ["post__in"]=>
  array(0) {
  }
  ["post__not_in"]=>
  array(0) {
  }
  ["post_name__in"]=>
  array(0) {
  }
  ["tag__in"]=>
  array(0) {
  }
  ["tag__not_in"]=>
  array(0) {
  }
  ["tag__and"]=>
  array(0) {
  }
  ["tag_slug__in"]=>
  array(0) {
  }
  ["tag_slug__and"]=>
  array(0) {
  }
  ["post_parent__in"]=>
  array(0) {
  }
  ["post_parent__not_in"]=>
  array(0) {
  }
  ["author__in"]=>
  array(0) {
  }
  ["author__not_in"]=>
  array(0) {
  }
  ["ep_integrate"]=>
  bool(true)
  ["ep_facet"]=>
  bool(true)
  ["aggs"]=>
  array(3) {
    ["name"]=>
    string(5) "terms"
    ["use-filter"]=>
    bool(true)
    ["aggs"]=>
    array(3) {
      ["category"]=>
      array(1) {
        ["terms"]=>
        array(2) {
          ["size"]=>
          int(10000)
          ["field"]=>
          string(19) "terms.category.slug"
        }
      }
      ["post_tag"]=>
      array(1) {
        ["terms"]=>
        array(2) {
          ["size"]=>
          int(10000)
          ["field"]=>
          string(19) "terms.post_tag.slug"
        }
      }
      ["post_format"]=>
      array(1) {
        ["terms"]=>
        array(2) {
          ["size"]=>
          int(10000)
          ["field"]=>
          string(22) "terms.post_format.slug"
        }
      }
    }
  }
  ["tax_query"]=>
  array(0) {
  }
  ["ignore_sticky_posts"]=>
  bool(false)
  ["suppress_filters"]=>
  bool(false)
  ["cache_results"]=>
  bool(false)
  ["update_post_term_cache"]=>
  bool(true)
  ["lazy_load_term_meta"]=>
  bool(true)
  ["update_post_meta_cache"]=>
  bool(true)
  ["post_type"]=>
  string(0) ""
  ["posts_per_page"]=>
  int(4)
  ["nopaging"]=>
  bool(false)
  ["comments_per_page"]=>
  string(2) "50"
  ["no_found_rows"]=>
  bool(false)
  ["order"]=>
  string(4) "DESC"
}
Query Body: 
Query Response Code: HTTP 200
Query Result: 
{
    "took": 25,
    "timed_out": false,
    "_shards": {
        "total": 5,
        "successful": 5,
        "failed": 0
    },
    "hits": {
        "total": 0,
        "max_score": null,
        "hits": []
    },
    "aggregations": {
        "terms": {
            "doc_count": 0,
            "post_format": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": []
            },
            "category": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": []
            },
            "post_tag": {
                "doc_count_error_upper_bound": 0,
                "sum_other_doc_count": 0,
                "buckets": []
            }
        }
    }
}
willstocks commented 5 years ago

PHP: 7.2.9 MySQL: 5.7.24

If this helps anyone?

shahroznawaz commented 5 years ago

PHP: 7.2.9 MySQL: 5.7.24

If this helps anyone?

Hey @willstocks-tech can you tell what exact settings and versions you are using? Also which wordpress you are using from the 3 options at Cloudways? Have you setup SSL cert?

willstocks commented 5 years ago

Not a problem at all @shahroznawaz. So I'm setup as follows: DO 1GB London server Wildcard Lets Encrypt SSL image WP 5.0.2 W3TC configured per: https://www.cloudways.com/blog/how-to-use-w3-total-cache-wordpress/ ElasticPress setup as per: https://www.cloudways.com/blog/elasticsearch-on-wordpress/

If you want some further details (such as specifics relating to the settings configs) let me know via PM or will@willstocks.co.uk and I'll grab some screenshots etc.

willstocks commented 5 years ago

I tried Elasticsearch 6.5 first, but that just straight up didn't work. 5.4 setup fine, but obviously there's this issue :)

fkkm1999 commented 5 years ago

I will provide my server and installation details as well. I have the same problem as @willstocks-tech willstocks-tech

Im on a 8gb, 4 core digital ocean server through cloudways. When i enable the plugin all homepage content is gone except for header and footer.

I dont use github usually, if the list is too long, let me know and ill remove it.

WordPress Environment

Home URL: https://www.doornbikes.nl Site URL: https://www.doornbikes.nl WC Version: 3.5.3 Log Directory Writable: ✔ WP Version: 5.0.2 WP Multisite: – WP Memory Limit: 384 MB WP Debug Mode: – WP Cron: – Language: nl_NL External object cache: ✔

Server Environment

Server Info: Apache/2.4.10 (Debian) PHP Version: 7.2.9-1+0~20180910100423.5+jessie~1.gbpdaac35 PHP Post Max Size: 30 MB PHP Time Limit: 300 PHP Max Input Vars: 2500 cURL Version: 7.38.0 OpenSSL/1.0.1t

SUHOSIN Installed: – MySQL Version: 5.6.41-84.1 Max Upload Size: 30 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔

Database

WC Database Version: 3.5.3 WC Database Prefix: wp4hyhu8ydjx Total Database Size: 967.94MB Database Data Size: 759.17MB Database Index Size: 208.77MB wp_4hyhu8ydjx_woocommerce_sessions: Data: 1.02MB + Index: 0.05MB wp_4hyhu8ydjx_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_woocommerce_order_itemmeta: Data: 0.28MB + Index: 0.16MB wp_4hyhu8ydjx_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB wp_4hyhu8ydjx_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_woocommerce_log: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_atum_order_items: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_atum_product_data: Data: 0.17MB + Index: 0.23MB wp_4hyhu8ydjx_bdp_archives: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_bdp_single_layouts: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_blc_filters: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_blc_instances: Data: 0.06MB + Index: 0.05MB wp_4hyhu8ydjx_blc_links: Data: 0.27MB + Index: 0.06MB wp_4hyhu8ydjx_blc_synch: Data: 0.06MB + Index: 0.05MB wp_4hyhu8ydjx_commentmeta: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_comments: Data: 39.56MB + Index: 39.08MB wp_4hyhu8ydjx_et_bloom_stats: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_et_social_stats: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_failed_jobs: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_grp_google_place: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_grp_google_review: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_kcform: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_kiyoh: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_links: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_mailchimp_carts: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_mollie_pending_payment: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_mtrlwid: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_mtrlwid_online: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_options: Data: 7.36MB + Index: 1.41MB wp_4hyhu8ydjx_pmxe_exports: Data: 0.17MB + Index: 0.00MB wp_4hyhu8ydjx_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB wp_4hyhu8ydjx_pmxe_posts: Data: 0.34MB + Index: 0.00MB wp_4hyhu8ydjx_pmxe_templates: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_pmxi_files: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_pmxi_history: Data: 0.05MB + Index: 0.00MB wp_4hyhu8ydjx_pmxi_images: Data: 21.55MB + Index: 0.00MB wp_4hyhu8ydjx_pmxi_imports: Data: 0.25MB + Index: 0.00MB wp_4hyhu8ydjx_pmxi_posts: Data: 1.52MB + Index: 2.02MB wp_4hyhu8ydjx_pmxi_templates: Data: 0.19MB + Index: 0.00MB wp_4hyhu8ydjx_postmeta: Data: 546.00MB + Index: 103.25MB wp_4hyhu8ydjx_posts: Data: 116.61MB + Index: 51.97MB wp_4hyhu8ydjx_queue: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_revslider_css: Data: 0.13MB + Index: 0.00MB wp_4hyhu8ydjx_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_revslider_navigations: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_revslider_sliders: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_revslider_slides: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_revslider_static_slides: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_termmeta: Data: 0.34MB + Index: 0.52MB wp_4hyhu8ydjx_terms: Data: 0.27MB + Index: 0.36MB wp_4hyhu8ydjx_term_relationships: Data: 11.53MB + Index: 6.48MB wp_4hyhu8ydjx_term_taxonomy: Data: 0.25MB + Index: 0.28MB wp_4hyhu8ydjx_usermeta: Data: 0.17MB + Index: 0.14MB wp_4hyhu8ydjx_users: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_wc_crm_customermeta: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_wc_crm_customer_list: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_crm_groups: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_crm_groups_relationships: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_crm_log: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_crm_statuses: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_download_log: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_wc_point_of_sale_sale_reports: Data: 0.00MB + Index: 0.00MB wp_4hyhu8ydjx_wc_poin_of_sale_tabs: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_poin_of_sale_tabs_meta: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wc_webhooks: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_wfBadLeechers: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfblockediplog: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfBlocks7: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_wfblocks7: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_wfConfig: Data: 0.44MB + Index: 0.00MB wp_4hyhu8ydjx_wfconfig: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfCrawlers: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfcrawlers: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfFileChanges: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wffilechanges: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfFileMods: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wffilemods: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfHits: Data: 2.02MB + Index: 1.17MB wp_4hyhu8ydjx_wfhits: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_wfhoover: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_wfHoover: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_wfIssues: Data: 0.02MB + Index: 0.06MB wp_4hyhu8ydjx_wfissues: Data: 0.02MB + Index: 0.06MB wp_4hyhu8ydjx_wfKnownFileList: Data: 2.52MB + Index: 0.00MB wp_4hyhu8ydjx_wfknownfilelist: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfLeechers: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB wp_4hyhu8ydjx_wfLocs: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wflocs: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfLogins: Data: 0.20MB + Index: 0.06MB wp_4hyhu8ydjx_wflogins: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_wfnotifications: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfNotifications: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfPendingIssues: Data: 0.02MB + Index: 0.06MB wp_4hyhu8ydjx_wfpendingissues: Data: 0.02MB + Index: 0.06MB wp_4hyhu8ydjx_wfReverseCache: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfreversecache: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfScanners: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfSNIPCache: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_wfsnipcache: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_wfstatus: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_wfStatus: Data: 0.14MB + Index: 0.11MB wp_4hyhu8ydjx_wftrafficrates: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfTrafficRates: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_wfVulnScanners: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_woobe_history: Data: 0.02MB + Index: 0.05MB wp_4hyhu8ydjx_woobe_history_bulk: Data: 0.02MB + Index: 0.03MB wp_4hyhu8ydjx_wpmelon_advbedit_temp: Data: 1.52MB + Index: 0.00MB wp_4hyhu8ydjx_wp_wc_poin_of_sale_cache: Data: 0.02MB + Index: 0.00MB wp_4hyhu8ydjx_yoast_seo_links: Data: 0.09MB + Index: 0.02MB wp_4hyhu8ydjx_yoast_seo_meta: Data: 1.52MB + Index: 0.00MB wp_rankie_changes: Data: 0.08MB + Index: 0.00MB wp_rankie_keywords: Data: 0.08MB + Index: 0.00MB wp_rankie_log: Data: 0.02MB + Index: 0.00MB wp_rankie_ranks: Data: 0.20MB + Index: 0.00MB

Post Type Counts

acf-field: 3 acf-field-group: 4 attachment: 137097 atum_supplier: 1 custom_css: 2 divi_bars: 2 dmmenu: 1 et_pb_layout: 14 jetpack_migration: 2 jp_pay_product: 6 nav_menu_item: 17 oembed_cache: 1 page: 17 post: 17 pos_temp_register_or: 1 product: 17082 product_variation: 2468 scheduled-action: 164878 shop_coupon: 4 shop_order: 63 shop_order_refund: 4 widget_area: 1 wp_log: 2 yith-wcgpf-feed: 1 yith_wcps_type: 3

Security

Secure connection (HTTPS): ✔ Hide errors from visitors: ✔

Active Plugins (46)

ManageWP - Worker: by ManageWP – 4.6.3 Query Monitor: by John Blackbourn & contributors – 3.2.2 Advanced Custom Fields PRO: by Elliot Condon – 5.7.6 ARG Multistep Checkout for WooCommerce: by ARG Themes – 3.6 – Not tested with the active version of WooCommerce ATUM Inventory Management for WooCommerce: by Stock Management Labs™ – 1.5.1.1 Broken Link Checker: by Janis Elsts Vladimir Prelovac – 1.11.5

Webcraftic Clearfy – WordPress optimization plugin: by Webcraftic – 1.5.0 Custom Field Finder: by Joost de Valk – 0.1 Divi Bars: by Divi Life — Tim Strifler – 1.4.6 Divi BodyCommerce: by Divi Engine – 3.1.4 Divi Builder: by Elegant Themes – 2.19.3 Extended Widget Options: by Phpbits Creative Studio – 4.6.1 Facebook for WooCommerce: by Facebook – 1.9.8 – Not tested with the active version of WooCommerce Health Check & Troubleshooting: by The WordPress.org community – 1.2.3 Improved Variable Product Attributes for WooCommerce: by Mihajlovic Nenad – 4.2.1 – Not tested with the active version of WooCommerce Kiyoh Customerreview: by kiyoh – 1.0.11 – Not tested with the active version of WooCommerce Mollie Payments for WooCommerce: by Mollie – 5.0.7 Monarch Plugin: by Elegant Themes – 1.4.10 WooCommerce Product Filter: by Mihajlovic Nenad – 6.6.4 Redis Object Cache: by Till Krüss – 1.4.1 Slider Revolution: by ThemePunch – 5.4.8 SendCloud | Smart Shipping Service: by SendCloud B.V. – 1.0.16 Sticky Menu (or Anything!) on Scroll: by Mark Senff – 2.1.1 Term Management Tools: by scribu – 1.1.4 Transients Manager: by Pippin Williamson – 1.7.5 UberMenu 3 - The Ultimate WordPress Mega Menu: by Chris Mavricos SevenSpark – 3.4.1.1

Google Reviews Widget: by RichPlugins – 1.6.8 WooCommerce UPC, EAN, and ISBN: by Scott Bolinger – 0.4.0 – Not tested with the active version of WooCommerce Woocomerce Brands Pro: by Proword – 4.3.9 – Not tested with the active version of WooCommerce WooCommerce Advanced Bulk Edit: by George Iron – 4.4.2 – Not tested with the active version of WooCommerce Woocommerce Cyclesoftware: by Wielands – 1.3 – Not tested with the active version of WooCommerce WooCommerce Google Analytics Pro: by SkyVerge – 1.6.4 WooCommerce: by Automattic – 3.5.3 Wordfence Security: by Wordfence – 7.1.18 Yoast SEO Premium: by Team Yoast – 8.2.2 WP All Export Pro: by Soflyy – 1.5.3 WP All Import Pro: by Soflyy – 4.5.5 Wordpress Rankie: by ValvePress – 1.6.3 WP Rocket: by WP Media – 3.2.2 WP All Import - ACF Add-On: by Soflyy – 3.1.9 WP All Import - WooCommerce Add-On Pro: by Soflyy – 3.0.5 – Not tested with the active version of WooCommerce Yoast SEO: News: by Team Yoast – 8.2 Yoast SEO: Video: by Team Yoast – 8.2 YITH WooCommerce PDF Invoice and Shipping List Premium: by YITHEMES – 1.8.3 – Not tested with the active version of WooCommerce YITH WooCommerce Product Slider Carousel Premium: by YITH – 1.0.29 WP All Import - Yoast WordPress SEO Add-On: by Soflyy – 1.1.7

Settings

API Enabled: ✔ Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5)

WC Pages

Shop base: #199 - /winkel/ Cart: #200 - /winkelwagen/ Checkout: #201 - /afrekenen/ My account: #202 - /mijn-account/ Terms and conditions: #8892 - /algemene-voorwaarden/

Theme

Name: Divi Child Version: 3.0.106.1523863430 Author URL: http://www.elegantthemes.com Child Theme: ✔ Parent Theme Name: Divi Parent Theme Version: 3.19.3 Parent Theme Author URL: http://www.elegantthemes.com WooCommerce Support: ✔

shahroznawaz commented 5 years ago

@fkkm1999 I've noted your issue also and looking into it I'll add comment here after testing it :)

shahroznawaz commented 5 years ago

@fkkm1999 @willstocks-tech please send your server login credentials details to shahroze.nawaz@cloudways.com

allan23 commented 5 years ago

Hi @willstocks-tech, you mentioned W3TC. What are your caching settings for that plugin?

willstocks commented 5 years ago

@shahroznawaz - I’ll get that sent over this evening!

@allan23 - I set up W3TC as per: https://www.cloudways.com/blog/how-to-use-w3-total-cache-wordpress/ However I know @fkkm1999 isn’t using W3TC per the comment above. I have also made sure to clear all caches and I still see the issue

On Mon, 7 Jan 2019 at 18:23, Allan Collins notifications@github.com wrote:

Hi @willstocks-tech https://github.com/willstocks-tech, you mentioned W3TC. What are your caching settings for that plugin?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/10up/ElasticPress/issues/1193#issuecomment-452031501, or mute the thread https://github.com/notifications/unsubscribe-auth/Apt9As4yKm_ImO2OkuudQ5fjXFKYXX0Pks5vA5CEgaJpZM4Zzaul .

fkkm1999 commented 5 years ago

Thank you.

Bit of topic but does elasticpress need to work for elastic search to work, or does elasticpress just hook up the front end search with elastic search?

willstocks commented 5 years ago

Just to confirm with everyone - I have set up a staging site for the guys at Cloudways to work with to try and resolve the issues They have logged a ticket against my account for me (shout out to @shahroznawaz for arranging) and their support team are currently investigating/troubleshooting. Note: This staging environment consists of a fresh WP install and a direct copy of my theme and plugins. Everything else remains completely untouched. Copied and pasted /wp-content/themes/ and wp-content/plugins/ exactly and that is all. Will update here when I get an update!

fkkm1999 commented 5 years ago

I just did some trouble shooting with CW support and after disabling my childtheme it was working again so i guess its something in my functions.php for me.

willstocks commented 5 years ago

Interesting! I have a fairly hefty functions.php file myself, at around 500 lines. The only thing I can think that I have in there that might affect this is - @oscarssanchez does ElasticPress have any reliance on jQuery and if so, which version?

shahroznawaz commented 5 years ago

Just to confirm with everyone - I have set up a staging site for the guys at Cloudways to work with to try and resolve the issues They have logged a ticket against my account for me (shout out to @shahroznawaz for arranging) and their support team are currently investigating/troubleshooting. Note: This staging environment consists of a fresh WP install and a direct copy of my theme and plugins. Everything else remains completely untouched. Copied and pasted /wp-content/themes/ and wp-content/plugins/ exactly and that is all. Will update here when I get an update!

Hey will, Thanks for the shoutout. I'm in touch with the support team and they are investigating the issue on the server level. I hope the issue will resolve soon and we come to know the problem. As @fkkm1999 had resolved the issue by finding in a local file which is a part of the application so till then you can dig out in-app files too :)

willstocks commented 5 years ago

@fkkm1999 - did you manage to work out what exactly within your functions.php was causing the issue?

fkkm1999 commented 5 years ago

@fkkm1999 - did you manage to work out what exactly within your functions.php was causing the issue?

I was able to fix it, it was a piece of code in my child themes functions.php that was hiding out of stock products. I deleted it im not sure what it exactly was sorry :(

willstocks commented 5 years ago

Ahhhh bummer!

No worries - they guys @ Cloudways have my theme and might be able to pick out the function that's causing the issue, because I'm not even sure where to start! Do you remember what that piece of code was hooking in to? Maybe I'm hooking into the same place!

fkkm1999 commented 5 years ago

No idea, I just copy paste from google lol. :P Goodluck with solving it :)

oscarssanchez commented 5 years ago

Hi @willstocks-tech sorry for the late reply,

ElasticPress uses jQuery on the dashboard only to make possible indexing from there, and the version is the one that is packed with WordPress :)

Did you find out solutions for your problem? I'm curious as @fkkm1999 said he modified his functions.php file.

Thank you!

willstocks commented 5 years ago

Hey Oscar,

No worries!

Cloudways did some checks and it’s defo looking theme related.

I’m going to purse through my functions.php to see if I can work out what is causing the issue! I’ll let you know if/when I work out what it is 😊

On Fri, 18 Jan 2019 at 18:29, Oscar Sanchez S. notifications@github.com wrote:

Hi @willstocks-tech https://github.com/willstocks-tech sorry for the late reply,

ElasticPress uses jQuery on the dashboard only to make possible indexing from there, and the version is the one that is packed with WordPress :)

Did you find out solutions for your problem? I'm curious as @fkkm1999 https://github.com/fkkm1999 said he modified his functions.php file.

Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/10up/ElasticPress/issues/1193#issuecomment-455642888, or mute the thread https://github.com/notifications/unsubscribe-auth/Apt9AvjuaaRFpYul1CbVgoVgG8RlvuAmks5vEhKDgaJpZM4Zzaul .

willstocks commented 5 years ago

@oscarssanchez / @allan23 - I've managed to identify the issue:

function excludeCat($query) {
    if ( $query->is_home ) {
        $query->set('cat', '-10');
    }
    return $query;
}
add_filter('pre_get_posts', 'excludeCat');

I'm excluding a specific list of posts that have a specific category set, from displaying on my home page. Why would this throw off EP?!

willstocks commented 5 years ago

@oscarssanchez / @allan23 - any thoughts on this, or potential other methods I could use??