VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: erik88 on June 29, 2012, 17:23:00 PM

Title: Cart Troubles
Post by: erik88 on June 29, 2012, 17:23:00 PM
Hi there,

We've got this errors in a cart page:

Warning: mysqli_real_escape_string() [function.mysqli-real-escape-string]: Couldn't fetch mysqli in /libraries/joomla/database/database/mysqli.php on line 154

Warning: mysqli_query() [function.mysqli-query]: Couldn't fetch mysqli in /libraries/joomla/database/database/mysqli.php on line 379

Warning: mysqli_errno() [function.mysqli-errno]: Couldn't fetch mysqli in /libraries/joomla/database/database/mysqli.php on line 384

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch mysqli in /libraries/joomla/database/database/mysqli.php on line 385


Also there are troubles with adding product images.

We have: Joomla! 2.5.0, VirtueMart 2.0.2.

Any suggestions?

Thanks
Title: Re: Cart Troubles
Post by: PRO on June 29, 2012, 17:58:23 PM
BACKUP your site,

and then in joomla config.

Choose

MYSQL    instead of MYSQLI
Title: Re: Cart Troubles
Post by: erik88 on June 29, 2012, 23:03:15 PM
Those warnings disappeared but the new one appeared:

Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /libraries/joomla/database/database/mysql.php on line 141
Title: Re: Cart Troubles
Post by: PRO on June 29, 2012, 23:30:32 PM
turn off error reporting
Title: Re: Cart Troubles
Post by: jenkinhill on June 29, 2012, 23:38:44 PM
http://forum.virtuemart.net/index.php?topic=102555.0
Title: Re: Cart Troubles
Post by: erik88 on June 30, 2012, 04:23:47 AM
I don't need to hide the errors but to fix them. There are troubles with adding product images.

Everything worked fine with MySQLi and we did nothing. The errors occurred I suppose in cause of updating PHP or MySQL/MySQLi on our host server.
Title: How to perform checkout in virtuemart from another componet
Post by: anoop on June 30, 2012, 08:15:23 AM
Hi all,
I am new here!. I have used virtuemart in my site to purchase the and add the products to the cart, I have created a custom component to display some final steps after "view cart" in virtuemart. skipped the billing information because the site uses cash on payment method.  I have checked the the code . the check out is perform in the cart helper file cart.php. How can i include this file to  and call confirmDone() function to force checkout. from joomla custom component model or view .  please reply ,



Thank you
anoop