VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Arjan7 on April 29, 2015, 11:40:35 AM

Title: Jquery error in backend at Order-page while loading invoices
Post by: Arjan7 on April 29, 2015, 11:40:35 AM
Hello,

This forum has solved lots of my problems already, but cannot find a solution for this one yet. So it's my first post!

I'm using the latest version Virtuemart (3.0.8 ) and the latest version of Joomla (3.4.1).
The problem I describe occurs in both Firefox and IE.

In the backend of the website, and clicking on Virtuemart --> Orders the website is hanging and after a few seconds it gives a pop-up with a text something like "Script doesn't respond".
See this screenshot! http://kopie.zijnboodschap.nl/images/Scripterror.jpg (http://kopie.zijnboodschap.nl/images/Scripterror.jpg)

(Script: ..../media/jui/js/jquery.min.js:3)

Further at the screenshot you see that all menu items at the left-menu are open/collapsed also. This only happens when I hit the 'Orders' button.

After hitting one of the buttons of the pop-up (doesn't matter which one) I cannot open the invoices, i get the following error:

Warning: require(/vhosts/zijnboodschap.nl/subdomains/kopie/httpdocsDSlibrariesDStcpdfDStcpdf.php): failed to open stream: No such file or directory in /vhosts/zijnboodschap.nl/subdomains/kopie/httpdocs/libraries/joomla/document/pdf/pdf.php on line 139 Fatal error: require(): Failed opening required '/vhosts/zijnboodschap.nl/subdomains/kopie/httpdocsDSlibrariesDStcpdfDStcpdf.php' (include_path='.:/usr/share/php') in /vhosts/zijnboodschap.nl/subdomains/kopie/httpdocs/libraries/joomla/document/pdf/pdf.php on line 139

Btw: I just installed the latest version of TCPDF. Did not solve this problem.

Anybody familiar with these problems? Can anybody help out? Would be appreciated.

Many thanks in advance,

Regards..


Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: GJC Web Design on April 29, 2015, 13:33:00 PM
about the pdf  - r u sure you have the latest?

my file libraries\joomla\document\pdf\pdf.php  has the DS declare as the 1st line

defined('DS') or define('DS', DIRECTORY_SEPARATOR);

and the call to the tcpdf is on line 97

if(!class_exists('TCPDF')) require(JPATH_ROOT.DS.'libraries'.DS.'tcpdf'.DS.'tcpdf.php');
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: Milbo on April 29, 2015, 18:21:57 PM
Also the the new js handler should prevent that js is loaded in the pdf
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: Arjan7 on April 29, 2015, 18:25:45 PM
Quote from: GJC Web Design on April 29, 2015, 13:33:00 PM
about the pdf  - r u sure you have the latest?

my file libraries\joomla\document\pdf\pdf.php  has the DS declare as the 1st line

defined('DS') or define('DS', DIRECTORY_SEPARATOR);

and the call to the tcpdf is on line 97

if(!class_exists('TCPDF')) require(JPATH_ROOT.DS.'libraries'.DS.'tcpdf'.DS.'tcpdf.php');

Thanks so far:

I just installed (=unzipped) the latest 6.2.7. version of TCPDF in the libraries folder (http://sourceforge.net/projects/tcpdf/files/ (http://sourceforge.net/projects/tcpdf/files/))

I attached the php file. Could you check it out for me please. It seems not to correspond with yours.
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: GJC Web Design on April 29, 2015, 21:27:13 PM
your supposed to use the installer from here->  http://dev.virtuemart.net/attachments/download/905/com_tcpdf_1.0.0.zip
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: Arjan7 on April 29, 2015, 21:59:11 PM
Quote from: GJC Web Design on April 29, 2015, 21:27:13 PM
your supposed to use the installer from here->  http://dev.virtuemart.net/attachments/download/905/com_tcpdf_1.0.0.zip

Thanks.. that helps.
At least.. 50% of the problem is gone now. I have PDF invoices working now! Thanks  :D

I still have the pop-up with the Jquery script error.
When I click 'Continue' the left menu closes again, how it should ben. If I cancel the script pop-up, the menu stays open.

Any idea how to get rid of this Script error?

Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: Arjan7 on May 01, 2015, 11:07:10 AM
*kick*

Could someone help me out with the other 50% of my problem?

Its the 'Script doesn't respond' error in the backend of the section - Virtuemart --> Orders.
It results in a wide open left menu (all items are open), after clicking the Continue buttun the menu closes again.

It seems to be some thing with JQuery (see screenshot in earlier post). Anybody any idea?

Thanks
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: frisco75 on May 07, 2015, 12:11:09 PM
Hi,

I ve almost the same issue : when i go on the VM Order page, it's freezing and a pop-up displays with "A script on this page may be busy, or it may have stopped responding - Script : http://www.savon-noir-rhassoul...com/media/jui/js/jquery.min.js:3" (see attached pic)

And when i want to change the status of the order, it doesn't work because when, for exemple, I change the status from Confirmed to shipped and click on the "Order update status" button,  it does nothing except to come back to the Joomla Admin Panel !!

Does anyone knoxs how to fix this jquery bug ?

Thanks

François
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: frisco75 on May 09, 2015, 08:33:11 AM
Hey Arjan7 and others who had the same issue !

I found what was going bad for me in vm and was occuring this jQuery error. I give you the solution, hope it will works for you :

Go in the vm Configuration/Templates and look at the fields in yellow on the attached pics. If you set them to a high number, it generates too long lists in the admin order page. So it will freeze and make the jQuery error.
Try to put a low number, for example 20 in the fields.
It works for me, hope it will works for you !

François
Title: Re: Jquery error in backend at Order-page while loading invoices
Post by: jooomlaa on July 25, 2015, 20:07:28 PM
Thx François,
I had the same problem and could solve it so.