VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: drayks on September 18, 2013, 14:26:42 PM

Title: Shopper Fields Error, Call to undefined method JDatabaseMySQLi::getTableColumns
Post by: drayks on September 18, 2013, 14:26:42 PM
Hi everyone,

i have searched hi and low for this all over the interent but i cannot find any solution.

Im pretty sure this is a Joomla Bug than a VirtueMart Bug, anyway this is the problem.

When i try to insert a "Shopper Field" item in the Administrator I get the following error

[18-Sep-2013 15:22:27] PHP Fatal error:  Call to undefined method JDatabaseMySQLi::getTableColumns() in C:\inetpub\vhosts\pyrotexnima-corfu.gr\httpdocs\administrator\components\com_virtuemart\helpers\vmtable.php on line 1508

At line 1508 in that file:

//Check if a column is there
$db = JFactory::getDbo();
if(JVM_VERSION===1){
   $columns = $this->getTableColumns($this->_tbl);
} else {
   $columns = $this->_db->getTableColumns($this->_tbl);    <-- Line 1508
}


Joomla Version 1.6.3
VirtueMart Version 2.0.22c

I hope someone can point me to the right direction, thank in advance.
Title: Re: Shopper Fields Error, Call to undefined method JDatabaseMySQLi::getTableColumns
Post by: Maxim Pishnyak on September 18, 2013, 20:03:39 PM
Use VM2.0.22d on Joomla 2.5.
Title: Re: Shopper Fields Error, Call to undefined method JDatabaseMySQLi::getTableColumns
Post by: drayks on September 19, 2013, 12:38:55 PM
Thank for your reply, updating Joomla would be my last option right now.

Thank you anyway.
Title: Re: Shopper Fields Error, Call to undefined method JDatabaseMySQLi::getTableColumns
Post by: jenkinhill on September 19, 2013, 18:00:19 PM
Joomla 1.6.3 has known critical security holes and should not be used for a live site. VM2.0.22 is developed and tested  to run on J2.5 and no earlier versions.
http://forum.virtuemart.net/index.php?topic=118683.0