Author Topic: Serious bug in cart  (Read 5053 times)

johnpetrucci

  • Beginner
  • *
  • Posts: 11
Serious bug in cart
« on: August 01, 2012, 21:34:11 pm »
Hi, i have a serious problemi with the cart.
If I add in the cart 14 products, everything is ok, but if I add another products, the cart is cleared.
When i have 15 products in cart, this is cleared and i see the message "There are no products in your cart".
How can I resolve?
Thanks

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9972
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Serious bug in cart
« Reply #1 on: August 01, 2012, 22:50:22 pm »
Without the correct virtuemart version, we have no clue.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

easy

  • Jr. Member
  • **
  • Posts: 69
Re: Serious bug in cart
« Reply #2 on: August 02, 2012, 04:12:43 am »
I confirm, have same problem never noticed it before - I just didn't put 15 items into cart.
14 items in cart are shown perfect
When I add one more the I have 1 last product in cart only.

I am using J2.5.6 and VM2.0.8e

johnpetrucci

  • Beginner
  • *
  • Posts: 11
Re: Serious bug in cart
« Reply #3 on: August 02, 2012, 09:21:03 am »
Scuse me Milbo, I'm using virtuemart 2.0.8c
This is a serious bug, because is impossible to use virtuemart  :(

johnpetrucci

  • Beginner
  • *
  • Posts: 11
Re: Serious bug in cart
« Reply #4 on: August 02, 2012, 10:05:50 am »
In this discussion there is this problem... http://forum.virtuemart.net/index.php?topic=99768.15
But when I change the session_handler to None, i can't log in administrator panel. I had to change the value of $handler_session manually from configuration.php.
However it's true, when i changed the value of $handler_session to None, the cart worked correctly. But how is the solution?

$handler_session = 'None' --> No log in administrator panel
$handler_sessione = 'Database' --> Cart crash

 :'(

david.kwock

  • Beginner
  • *
  • Posts: 17
Re: Serious bug in cart
« Reply #5 on: August 02, 2012, 15:51:09 pm »
After you change the session handler to 'none', you should clear your browser cookie to log-in to the back-end of your website.

I was kicked out from the admin panel after the change, but I was able to login back to the admin panel as soon as I cleared the cookie from my web browser.

Hope this helps you.

David

easy

  • Jr. Member
  • **
  • Posts: 69
Re: Serious bug in cart
« Reply #6 on: August 02, 2012, 19:14:46 pm »
I do not think it should be sorted this way.
Yes, I agree, it's OK for temporary and testing sites only and not live shops.
Did you report a bug already?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9972
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Serious bug in cart
« Reply #7 on: August 05, 2012, 10:49:41 am »
We increase the database session table,

But joomlas repair tools will set it back and the size is much too small, that is all.

So use text for the joomla session table or use session handling without database. Using the tools "update tables if necessary" will do the trick for you
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

johnpetrucci

  • Beginner
  • *
  • Posts: 11
Re: Serious bug in cart
« Reply #8 on: August 06, 2012, 15:25:53 pm »
If I want change the value of joomla session table, how raw i must change? Because the data raw is Text alredy...
Where I can take  the tools "update tables if necessary"?
Thanks

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10375
  • VirtueMart Version: 3+
Re: Serious bug in cart
« Reply #9 on: August 06, 2012, 21:48:17 pm »
This happened to me a couple weeks ago.

I went to "extensions manager"
"Database"

Then there was an error in the session table,
I "fixed it", and it went away
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

darien81

  • Beginner
  • *
  • Posts: 6
Re: Serious bug in cart
« Reply #10 on: August 09, 2012, 23:43:21 pm »
I am having a similar problem: When I add more than 5 custom fields and hit "save" I am kicked out of the product, and my additions are not saved.

I am using Joomla 2.5.6 and VM 2.0.8e

I have tried all of the above remedies, and nothing fixes the issue.

I have set the session handler to "none". I have hit the "Install tables or if necessary rebuild them".

When I go into PHP MyAdmin, I am unable to change the field type from VARCHAR to MEDIUMTEXT in jos_session. I get the following error:
#1170 - BLOB/TEXT column 'session_id' used in key specification without a key length

When I turn on Joomla Maximum Error Checking, I do get a warning in the products panel:
Notice: Trying to get property of non-object in /home/sitename/public_html/administrator/components/com_virtuemart/models/customfields.php on line 684

Anyhow, I have hundreds of SKUs and thousands of custom fields to enter. Can anyone shed some light on this? It did not happen in VM 2.0.8c (I have a dev site running "c" and there is no problem).

Thanks

easy

  • Jr. Member
  • **
  • Posts: 69
Re: Serious bug in cart
« Reply #11 on: August 10, 2012, 01:54:39 am »
Did you try to fix mediumtext in jom_session at your joomla admin end?
Login to administartor/ Extensions/Extensions Manager/Database(tab) and look if there is any database (jos_session) not up to date and if so please click FIX then, that's all

darien81

  • Beginner
  • *
  • Posts: 6
Re: Serious bug in cart
« Reply #12 on: August 10, 2012, 16:54:20 pm »
Yes Easy. That was another suggestion I found in the forums, but it did not make any difference. At this point, I can add one custom field, but if I try to add any more than that at one time, I get kicked back to the VM dashboard. This is completely frustrating.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9972
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Serious bug in cart
« Reply #13 on: August 12, 2012, 02:14:12 am »

When I go into PHP MyAdmin, I am unable to change the field type from VARCHAR to MEDIUMTEXT in jos_session. I get the following error:
#1170 - BLOB/TEXT column 'session_id' used in key specification without a key length
It does not harm to empty the table completly and to change then the size.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/