ElasticPress and WoodMart theme conflict help
-
Hello,
I recently enabled ElasticSearch and the ElasticPress plugin on my site. After troubleshooting, I narrowed down the issue to the WoodMart theme and how it deals with Elementor images and would like your help. The issue does not happen when using the Tweny TwentyFour theme.
Specifically, the error message is related to a null value being passed to a function that expects an object and occurs when the get_gallery_image_ids() function is called on a null object in the product-image.php file within the Woodmart theme.
I have included my SSH error details and my staging site login details below, as I don’t want to have a super long post on your thread with a bunch of code.
Attachments:
You must be
logged in to view attached files.
Hello,
Sorry, but the password seems to be wrong and we can’t enter your dashboard. We also need your SSH access so we can reproduce the issue.
Kind Regards
I apologize for the error. I have included updated information below. The FTP information (minus the port) is the same information for access to SSH; I have enabled SSH access to my staging environment for you. I verified that all of the data below now works.
Try to add the following PHP code snippet to the child theme functions.php file to fix this
function wd_exclude_post_types_from_indexing( $post_types ) {
unset( $post_types['woodmart_layout'] );
return $post_types;
}
add_filter( 'ep_indexable_post_types', 'wd_exclude_post_types_from_indexing' );
Thank you very much. That code worked and we are all set. As always, I appreciate your help!
Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.
The topic ‘ElasticPress and WoodMart theme conflict help’ is closed to new replies.