Jump to content

I get: Fatal error: Call to undefined function bqsql() in...


Recommended Posts

When I try to get the second page of customers or orders I get a message Fatal error: Call to undefined function bqsql() in /home/nannasal/public_html/liveryyard/override/classes/AdminTab.php on line 596

 

Only thing that helps is logging out and back in.

 

This is the script, line 596 bolded:

 

/* Manage list filtering */

elseif (Tools::isSubmit('submitFilter'.$this->table) OR $cookie->{'submitFilter'.$this->table} !== false)

{

$_POST = array_merge($cookie->getFamily($this->table.'Filter_'), (isset($_POST) ? $_POST : array()));

foreach ($_POST AS $key => $value)

{

/* Extracting filters from $_POST on key filter_ */

if ($value != NULL AND !strncmp($key, $this->table.'Filter_', 7 + Tools::strlen($this->table)))

{

$key = Tools::substr($key, 7 + Tools::strlen($this->table));

/* Table alias could be specified using a ! eg. alias!field */

$tmpTab = explode('!', $key);

$filter = count($tmpTab) > 1 ? $tmpTab[1] : $tmpTab[0];

if ($field = $this->filterToField($key, $filter))

{

$type = (array_key_exists('filter_type', $field) ? $field['filter_type'] : (array_key_exists('type', $field) ? $field['type'] : false));

if (($type == 'date' OR $type == 'datetime') AND is_string($value))

$value = unserialize($value);

$key = isset($tmpTab[1]) ? $tmpTab[0].'.`'.bqSQL($tmpTab[1]).'`' : '`'.bqSQL($tmpTab[0]).'`';

if (array_key_exists('tmpTableFilter', $field))

$sqlFilter = & $this->_tmpTableFilter;

elseif (array_key_exists('havingFilter', $field))

$sqlFilter = & $this->_filterHaving;

else

$sqlFilter = & $this->_filter;

Edited by Tomppa (see edit history)
Link to comment
Share on other sites

By default, there are no active files in the /override folder (files starting with _ are not used).

 

Someone must have copied it there, possibly for some module you installed, just make sure it was not being used for a 3rd party module as it will not work properly now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...