Home Forums WoodMart support forum ElasticPress and WoodMart theme conflict help

ElasticPress and WoodMart theme conflict help

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #591387

    jessiet
    Participant

    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.
    #591450

    Artem Temos
    Keymaster

    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

    #591628

    jessiet
    Participant

    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.

    #591807

    Artem Temos
    Keymaster

    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' );
    #591903

    jessiet
    Participant

    Thank you very much. That code worked and we are all set. As always, I appreciate your help!

    #591945

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘ElasticPress and WoodMart theme conflict help’ is closed to new replies.