I get the error message after adding a comment.

user warning: Table 'baza7239.hidden_filters' doesn't exist query: _hidden_filter_content_test SELECT hfid, filter, type, hits FROM hidden_filters WHERE enabled=1 ORDER BY weight DESC in /var/www/mysite.net/includes/database.mysql.inc on line 172.

I added a filter, but the error still shows after adding comment
I have a prefix in db... Is it a teason?

Comments

Andrzej7’s picture

Yes, it's prefix

I've chcnged:

function _hidden_filter_content_test($content) {
  $query = 'SELECT hfid, filter, type, hits FROM hidden_filters WHERE enabled=1 

for

function _hidden_filter_content_test($content) {
  $query = 'SELECT hfid, filter, type, hits FROM prefix_hidden_filters WHERE enabled=1 

The error stopped

ekes’s picture

Assigned: Unassigned » ekes
Status: Active » Closed (fixed)

Sorry. It's the missing {} around the table name in the query.

function _hidden_filter_content_test($content) {
  $query = 'SELECT hfid, filter, type, hits FROM {hidden_filters} WHERE enabled=1 

Corrected for -dev and cvs.