News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Jquery error in backend at Order-page while loading invoices

Started by Arjan7, April 29, 2015, 11:40:35 AM

Previous topic - Next topic

Arjan7

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

(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..



GJC Web Design

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');
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

Also the the new js handler should prevent that js is loaded in the pdf
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Arjan7

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/)

I attached the php file. Could you check it out for me please. It seems not to correspond with yours.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Arjan7

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?


Arjan7

*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

frisco75

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
VM 3.0.6.4 and Joomla 3.4.1

frisco75

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
VM 3.0.6.4 and Joomla 3.4.1

jooomlaa

Thx François,
I had the same problem and could solve it so.