Add to cart crash browser and work, or don't crash browser and don't work

Started by spiritheater, April 10, 2013, 14:25:36 PM

Previous topic - Next topic

spiritheater

hi there!

so, first, excuse me if i'm doing some langage mistakes, i'm french and can't find answers to my problem on french websites.

I'm having shopping cart issues.... and big one! with joomla 2.5.9 and virtuemart 2.0.20b
a first, the website was working well offline, when i was testing it with xampp.
when i put the website online, after correcting small bugs, an issue appears: when i'm clicking the "add to cart" button, mozzilla crash, chrome crash ( not completely, their internal security talds me after a while that an error occurs, and ask me to reload the last page)and IE crashes

i've found how to correct this bug by using jQuery easy, or another template.
when i was using another template ( atomic ), everything was going well, but the website was just everything but user friendly or nice.
after installing end setting jquery easy to use local jquery and jquery ui ( those from com JCE), the crash was corrected, but still impossible to add stuff to the cart...99% of the time.

i don't know why or when, but sometimes, a product appears into my cart...

i have tried to enable and disable vmart settings ( use vmart jquery, google jquery, etc ), to change jquery easy settings, to modify my template to use vmart jquery and disable vmart jquery in vmart configuration, to add every jquery file to jquery easy, all these things at the same time and one by one, combinations, etc, but still the same issues....

so i've tried something else, asking myself " and if i create a news template without jquery??? "
i've disabled jquery easy, going back to the settings working with a basic template. and tryed another time....
and the issues are stilling there.....

so now: i can't add to cart, if i disable jquery easy, browser crashes when i click "add to cart button", and sometimes, after a crash, something appears in my cart.

i think i'm going crazy!

if you want to try, go to http://www.ned-ateliers.fr, you can choose your language.

spiritheater

#1
firebug give me some errors, do you know how to solve them?
=========================================
ReferenceError: jQuery is not defined
//modal.js line 20

jQuery.noConflict();
=========================================
ReferenceError: Hash is not defined
//jquerynoconflicts.js line 1

...erlay,this.win])},removeEvents:function(a){if(!this.$events)return this;a?this.$...
=========================================
ReferenceError: Virtuemart is not defined


Virtuemart.addtocart_popup = '1' ;
//index.php with arguments
=========================================
ReferenceError: jQuery is not defined


jQuery(document).ready(function($) {

=========================================


when i make some tests with jquery easy enabled with other versions than local ones, crash still happening, but "jquery is not defined" error disappears.

No matters the template ( joomla atomic, beez 20, beez 40 or home made), the issue is the same.

so, i give you all configurations for virtuemart and jquery easy, if you have any idea!

if some options aren't listed here, it's because i haven't used them.
========================
jquery easy:
========================
basic options frontend:

enable jquery: jquery / jquery+jquery UI => same errors and effects

jquery version: local
(virtuemart and jce and template jquery used)

jquery ui: custom/local
(same versions then jquery)

theme: none

protocol: http
librairies: uncompressed and minified have been tested


advanced options frontend:
jquery:
strip remaining scripts (tested files)
jquery.ui.touch-punch.min.js
jquery-1.8.2.min.js
chosen.jquery.min.js
facebox.js
jquery-ui-1.9.1.custom.min.js
jquery.js
script.responsive.js
script.js
styles-ui.js
sort.js
manager.js
filter.js
facebox.js
jquery.min.js
jquery.noConflict.js
jquery.noConflict.js
jquery.ui.core.min.js
jquery.ui.datepicker.min.js
jquery.validation.js
jquery.validationEngine.js
vmcreditcard.js
vmprices.js
vmsite.js
vmtabs.js
jquery.fancybox-1.3.4.js
jquery.fancybox-1.3.4.pack.js
jquery.mousewheel-3.0.4.pack.js
jquery.easing-1.3.pack.js
jquery-ui-i18n.js


strip remaining css (tested files)

jquery-ui.custom.css
jquery.fancybox-1.3.4.css
validationEngine.jquery.css
validationEngine.template.css
facebox.css

strip no conflict code: no/yes, same issues
add no conflict co: thru script/ thru script declaration
fix document ready: yes

mootools: disable when possible: no/yes

disable captions: no
strip blank lines: no

==============
jquery plugin details:
==============
activated
public acces
display order:
0 asc order
0 system virtuemart display effects
0 jce mediabox
0 system jquery easy
( and then usual order)
=============================

virtuemart:


templates configuration (haven't tried other tabs)
shop default template: joomla default
category template: joomla default

enabled:
use virtuemart CSS
use virtuemart jquery
use product scripts
use ajax country script

google jquery is disabled.

==============================

note: i'm using home made artisteer 4 template

Peter Pillen

I'm not a js wizard, but loading 2 noconflict.js files, doesn't look right to me.

Disable Jquery easy, enable google query js, clean your cache and browsercache and check again would be my best guess.

Hope you find an answer. It would not surprise me that you will need to reïnstall joomla and virtuemart. It looks like core file problems.

spiritheater

i'm erasing the website and going back to first version, and so for the database. everything should work with basic template, so i will make some test with basic jquery easy options.

"strip remaining script" isn't to help jquery easy to find other jquery scripts ?

spiritheater

#4
so, there is some changes now! i've removed my database and all the files on my server, and upload my restoration files and database. i've disabled the home made template, set joomla to use "atomic", and install jquery easy again.  i've tested all of this, and now, the scripts make the browsers to crash, but when i reload the page, i can see the products in my cart!

with my home made template, the problem is the same than with joomla basic template.

my parameters for jquery easy are: enabled jquery+jquery UI, jquery v1.8(latest) and jquery UI v1.9(specify= 1)

theme: none
protocol HTTP
libraries uncompressed

i think that while trying everything to solve the crash problem, i've made a mistake and unset some important data for cart.

virtuemart is set to use joomla default template , and google jquery is disabled, but issues are the same when enabled. so, actually, the only problem is that clicking "add to cart" crash browsers.....

crash bug was solved on my last try when i was setting jquery to use a local jquery and jquery UI, but cart was not working.
so i've tried to set up a local jquery, and the crash bug is fixed again, but, another time, impossible to add something inside the cart.
same issue while using local jquery only or local jquery+ui (JCE jquery 1.8.2 min and jquery UI 1.9.1 custom min, i've also tried virtuemart jquery and jquery UI files)

this time, going back is ok, and i can add to cart, even if my browser crash.

so, there is a problem with my jquery files!

=======
//edit: after some more tries, i've foudn that Jquery UI don't change anything, only jQuery make changes when setting jquery easy plug-in.


did someone have an idea?


spiritheater

keep trying with other jquery scripts, but still nothing good.... every idea can help!

spiritheater

excuse me but, up, still no idea, no solution, impossible to solve!

jenkinhill

I have tested with the debugger in IE10 which reports that a JavaScript is failing to complete on hitting Add to Cart. Stopping that script leads to the add to cart function continuing as normal, so it looks like this is occurring in a non-VirtueMart script. There are also reports of problems with Artisteer scripts not completing - eg http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=10994~-1   - and many other people have reported different JS issues with Artisteer templates.

Did you try the Beez template with all Artisteer modules (like menu) and any plugins inactivated?
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

spiritheater

ok, i will search for this kind of issue. i haven't tried with beez this time, only atomic ( resultats where the same last time),  i will try and see now :) thank's for your advices, i really hope to find this time!

spiritheater

THANK'S a lot! i've read the post and search some mor informations, following the track you give me. it was a conflict between slide effect and virtuemart pop-up box when adding stuff to cart!!!

jquery easy correct the jquery conflict between template and virtuemart, and i've had to disabled the slide effect in joomla extensions module, and it works!

thank's a lot!