Odd behavior on product pages
-
I have several products that I am trying to only load the same plugins for with several recurring issues:
1) If I use “Page Type Filter” > “Page Type” > “Product”, for ACF Pro, some of the product pages display normally and some generate PHP errors (not recognizing the ACF functions). I think this may be because when ACF is added back in by PLF it is added in a different order? But not sure why this only happens on some products and others work fine. Some are variable products, some are simple products, but it happens to both types… I don’t see any pattern as to why it happens to certain pages.
2) If I turn on ACF Pro to “Normal Mode”, again some pages load fine, but now the pages that previously has php errors do load without those errors, but are not loading the same plugins that the other product pages are. For example, I have wpDataTales set to “Page Type Filter” > “Page Type” > “Product”. That plugin loads on some product pages, but not the ones that were previously having php errors.
The crazy thing is that with the settings in scenario #2, I have seen ALL of the product pages loading normally. It is only when I again go in and tweak the PLF settings again that seems to break the certain product pages.
Using “Query Monitor” to inspect queries, I can see that the pages that are breaking have 4 extra queries that the other pages do not:
All have:
1) get_page_by_path()
2) WP_Query->get_posts()Pages that keep breaking have extra calls:
3) WP_Term_Query->get_terms()
4) update_meta_cache()
5) WP_User::get_data_by()
6) update_meta_cache()This is one that consistently works: https://www.screeninnovationsdev.com/screen/5-motorized/
This is one that consistently breaks: https://www.screeninnovationsdev.com/screen/zero-g/Any insight would be appreciated!
pw to view site: sirules
Thanks,
jThe page I need help with: [log in to see the link]
- The topic ‘Odd behavior on product pages’ is closed to new replies.