Hi @vijayhardaha
Could you post exactly SQL error details, please?
The mentioned method get() can accept a predefined SQL string attribute. You mentioned code that used to operate with SQL string passed outside, everything is correct in that case.
Output of $default['sql']
ORDER BY {order_by} {order} LIMIT {offset},{count};
Output of $sql
SELECT * FROM wp_tinvwl_lists WHERE status='public' ORDER BY date DESC LIMIT 0,10;
Output of $data
Array
(
[status] => status='public'
)
Search input is also missing in queries.
I tracked the issue, so in file search.class.php in function htmloutput there is a $wpdb->prepare which is failing because of this kind of SQL syntax.
AND (CONCAT(A.display_name, ' ', A.user_email, ' ',B.meta_value) LIKE '%demo%' )
I am guessing '%demo%' becomes a placeholder inside $wpdb->prepare, hence prepare return empty value and in result, I am just getting
ORDER BY
{order_by}
{order} LIMIT {offset},{count};
in $default['sql']
-
This reply was modified 3 years, 8 months ago by
Vijay Hardaha. Reason: fixed the code formatting
@vijayhardaha
Thanks for the bug report.
It affects only when logged users get empty wishlists search results in the premium version of our plugin.
The fix is included in the upcoming update.