I also have the same issue. Is there any solution, please?
I also have the same issue. Is there any solution?
no solution yet… tried almost everything available online 🙁
If i run the following query on the SQL DB manually, it looses the connection.
SELECT DISTINCT posts.ID as product_id, posts.post_parent as parent_id
FROM wp_posts posts
LEFT JOIN wp_postmeta postmeta
ON posts.ID = postmeta.post_id
WHERE posts.post_type IN (‘product’,’product_variation’)
AND ( ( ( posts.post_title LIKE ‘%samsung%’)
OR ( posts.post_excerpt LIKE ‘%samsung%’)
OR ( posts.post_content LIKE ‘%samsung%’ )
OR ( postmeta.meta_key = ‘_sku’
AND postmeta.meta_value LIKE ‘%samsung%’ ) ))
ORDER BY posts.post_parent ASC, posts.post_title ASC
If i just run it on post.title it works, looks like all those joins are making it fail….
SELECT DISTINCT posts.ID as product_id, posts.post_parent as parent_id FROM wp_posts posts LEFT JOIN wp_postmeta postmeta ON posts.ID = postmeta.post_id WHERE posts.post_type IN (‘product’,’product_variation’) AND ( posts.post_title LIKE ‘%samsung%’) ORDER BY posts.post_parent ASC, posts.post_title ASC
The same issue. Made the downgrade from 3.5.1 to 3.3.0 and the search is working fine…
-
This reply was modified 5 years, 5 months ago by antondrob.
-
This reply was modified 5 years, 5 months ago by antondrob.