Problems with cart: Products not added and cart below starting page

Started by martin.g, August 29, 2011, 16:03:37 PM

Previous topic - Next topic

martin.g

Hello,

I have two problems with the cart. Maybe they are depending.
A click on "Cart" in my menu redirects me to:
http://www.example.org/joomla/index.php/warenkorb -> That is fine, although I don´t know why there has to be the index.php in it, but okay. Perhaps this depends on SEO.

When I click on "Add to cart", I get redirected to
http://www.example.org/joomla/index.php/shop/myCategory/myProduct/index.php -> This shows the starting page and below the starting content the cart is displayed. Additionally the cart is still empty and in the cart table no product is added.
Perhaps it depends on this error message:
Warning: mysqli_close() [function.mysqli-close]: Couldn't fetch mysqli in /www/example.org/web/joomla/libraries/joomla/database/database/mysqli.php on line 148
I found this message only appearing in context of the cart.

Can you tell me what to do? The only post with this problem on VM2 I found, was this one:
http://forum.virtuemart.net/index.php?topic=89641
And the answer was not quite helpful.

Thanky you and best regards
Martin

Edit: Sorry, I did not want to post this into Administration & Configuration as Milbo said it was wrong in this forum. It was a mistake, although I think this would be a configurable item.
And I use Joomla 1.7 with VM 1.9.8_RC2e

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

martin.g

Thank you for the answer. I use PHP 5.2.13
I got got neither an error with installing 1.9.8d nor upgrading to 1.9.8e. But I also get to Error 404 when I click comvirtuemartallinone or comvm-all-in-one in adminmenu. I have both entries and got no error while installation. Is this related to the problem? I didn´t know I could configure anything about the allinone modules and thaught the admin entry was fake.

martin.g

Well, I tried to switch from MySQLi to MySQL. The only difference is the missing error message :-)

Milbo

Yes  the admin entry of the aio is a fake. The new version shows a page with "here is nothing to see uninstall me" lol.

look on the field of your session table of joomla. The field data should be text. in the other case your session field is to short and cannot hold the cart completly.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

martin.g

Okay, then I will ignore the admin entries. Thank you.
The field type of "data" in "_session" is even "longtext".
Do you have any other suggestions?

Milbo

Does the F version makes a difference? Does it help to disable SEO?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

martin.g

Ah, I didn´t get, there is a new version. So I upgraded now, but nothing changed in behaviour.

When I disable SEO (in Joomla and VM) the error still persists. I get redirected to http://www.example.org/joomla/index.php and the cart shows below the index page and no products are in the cart.

martin.g

Well, I´m a little desperated now. I cleared the table and installed the demo data and the behaviour still is the same :-(

martin.g

I suppose the reason is a javascript error on the site. I did a new demo installation on a fresh joomla with demo data and now I know how it should look/work. Didn´t know there was a popup layer with question how to proceed. I guess the JS error prevents the JS function that opens this window from being started.
The message (from Firebug) is:
jQuery(".product").product is not a function
in
components/com_virtuemart/asses/js/vmprices.js Line 109

Do you know the reason of this error? Parallel I will try to find out the reason on my own, but I don´t know much about JS on Jommla

Studio 42

Quote from: martin.g on August 30, 2011, 19:52:32 PM
I suppose the reason is a javascript error on the site. I did a new demo installation on a fresh joomla with demo data and now I know how it should look/work. Didn´t know there was a popup layer with question how to proceed. I guess the JS error prevents the JS function that opens this window from being started.
The message (from Firebug) is:
jQuery(".product").product is not a function
in
components/com_virtuemart/asses/js/vmprices.js Line 109

Do you know the reason of this error? Parallel I will try to find out the reason on my own, but I don´t know much about JS on Jommla
Hello,
We use the google Jquery api from "http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" , is this loaded ?

Can you test on the defaut template (BEEZ-20)to know if it's not a js/css conflict with a template ?
Try to remove/disable all none Virtuemart 2 modules.

jQuery(".product").product is not a function is typical a mootools  conflict or non existing jQuery library


martin.g

Yes the google jQuery is loaded. Template BEEZ-20 couldn´t be found. I copied from my fresh installation, didn´t change anything.
But I found the solution. After loading the VM skripts the company doing the webdesign loads jquery-1.4.2 .... So jQuery Version is overwritten with an old one. Perhaps I should have changed the complete Joomla Template to BEEZ-20, buit I didn´t realize.
Well guys, thank you for pushing me to solution! I know on the difficulty to assist while not sitting in front of the problem.

Best regards
Martin

Eric Brown

Martin.  I am getting this error too.  Please explain where to go to fix this.  I read your post, but am not quite sure where to fix it.

Thanks!

Eric
So long, and thanks for all the fish!

Milbo

load your page, use firebug or simular,... search for jQuery, ensure that only the virtuemart version is loaded.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Eric Brown

Actually.  I got it by setting the database to MySQL instead of MySQLi...weird...

thanks so much!
So long, and thanks for all the fish!