Tomppa Posted May 8, 2012 Share Posted May 8, 2012 I get: Fatal error: Call to undefined function bqsql() in /home/nannasal/public_html/liveryyard/override/classes/AdminTab.php on line 596 What is it and how do I fix it? Link to comment Share on other sites More sharing options...
Tomppa Posted May 8, 2012 Author Share Posted May 8, 2012 (edited) 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 May 8, 2012 by Tomppa (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted May 8, 2012 Share Posted May 8, 2012 Who created that override file (override/classes/AdminTab.php) Did you try to rename it and see if it works correctly? Link to comment Share on other sites More sharing options...
Tomppa Posted May 8, 2012 Author Share Posted May 8, 2012 Hi, I think it came with the package How should I rename it? Link to comment Share on other sites More sharing options...
Tomppa Posted May 8, 2012 Author Share Posted May 8, 2012 Like magic, it worked! I renamed it AdminTab2.php Link to comment Share on other sites More sharing options...
tomerg3 Posted May 8, 2012 Share Posted May 8, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now