Author Topic: Cart Troubles  (Read 1643 times)

erik88

  • Beginner
  • *
  • Posts: 15
Cart Troubles
« on: June 29, 2012, 17:23:00 pm »
Hi there,

We've got this errors in a cart page:

Code: [Select]
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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10330
  • VirtueMart Version: 3+
Re: Cart Troubles
« Reply #1 on: June 29, 2012, 17:58:23 pm »
BACKUP your site,

and then in joomla config.

Choose

MYSQL    instead of MYSQLI
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

erik88

  • Beginner
  • *
  • Posts: 15
Re: Cart Troubles
« Reply #2 on: June 29, 2012, 23:03:15 pm »
Those warnings disappeared but the new one appeared:

Code: [Select]
Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /libraries/joomla/database/database/mysql.php on line 141

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10330
  • VirtueMart Version: 3+
Re: Cart Troubles
« Reply #3 on: June 29, 2012, 23:30:32 pm »
turn off error reporting
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: Cart Troubles
« Reply #4 on: June 29, 2012, 23:38:44 pm »
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

erik88

  • Beginner
  • *
  • Posts: 15
Re: Cart Troubles
« Reply #5 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.

anoop

  • Beginner
  • *
  • Posts: 2
How to perform checkout in virtuemart from another componet
« Reply #6 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