In my add-on called Search Log v2.5 located here:
In a table called xf_search_log, I try to update a table field called title_constraints. The value of title_constraints is added by the following code:
$titleConstraints = new XenForo_Phrase('searchlog_title_only');
// run query $db->query(" INSERT INTO xf_search_log (search_date, user_id, username, search_query, forum_constraints, user_constraints, title_constraints, newer_than, result_count) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ", array($searchDate, $userId, $username, $searchQuery, $forumConstraints, $userConstraints, $titleConstraints, $newerThan, $resultCount));
Fatal error: Call to a member function result_metadata() on a non-object in /home/southbay/www/forums/library/Zend/Db/Statement/Mysqli.php on line 220
What do I need to do to use a phrases in this situation?