VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: daicon on June 12, 2015, 14:32:52 PM

Title: State Field Empy - ERROR 500
Post by: daicon on June 12, 2015, 14:32:52 PM
Hello,

I do not get it to work in any way. I have watched several threads , but they have not helped me help.

I have found that jQuery does not charge more times by other plugins.
I installed plugins to control the loading of jQuery .

What's going on?

From the backend if it works well , but nothing frontend :-(

EDIT: I also Off: http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
but another error: "Uncaught TypeError: Cannot read property 'msie' of undefined" chosen.jquery.min.js?vmver=8643:1

Please help.

Imagen:
http://cl.ly/image/2a1C172g3B3Z
Title: Re: State Field Empy - ERROR 500
Post by: jenkinhill on June 12, 2015, 14:59:56 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: State Field Empy - ERROR 500
Post by: daicon on June 12, 2015, 15:27:44 PM
oki, Here the information:

PHP version: 5.3.3-40.el6_6
Joomla: 2.5.28
VirteMark: 3.0.3
Template: Chapelco - Framework Gantry

Please help me!

Thanks
Title: Re: State Field Empy - ERROR 500
Post by: Milbo on June 12, 2015, 15:40:14 PM
PHP version: 5.3.3-40.el6_6
=> use 5.3 latest or higher
Title: Re: State Field Empy - ERROR 500
Post by: jenkinhill on June 12, 2015, 15:54:25 PM
Thanks. For security reasons you should be using at least VirtueMart 3.0.8 now - the current version is 3.0.9.4   http://dev.virtuemart.net/projects/virtuemart/files
And update that PHP version!

An image is no good for working out js conflicts, however, VM3 is less affected by conflicts than VM2 was, but there can be a problem with chosen.jquery.min.js when using jQueryEasy.  See  http://forum.virtuemart.net/index.php?topic=124092.msg424026#msg424026 for a fix

If that does not fix it the apart from checking jQuery versions you should also exclude 3rd party plugins that may interfere.

http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: State Field Empy - ERROR 500
Post by: daicon on June 12, 2015, 15:58:31 PM
Yes, I try use Jquery Easy plugin, but not work.

Tomorrow I will update PHP and the latest version of VirtueMart .

I hope it is resolved ...

Thank you very much , if all goes well, I will communicate .
Title: Re: State Field Empy - ERROR 500
Post by: daicon on July 10, 2015, 11:59:42 AM
Quote from: daicon on June 12, 2015, 15:58:31 PM
Yes, I try use Jquery Easy plugin, but not work.

Tomorrow I will update PHP and the latest version of VirtueMart .

I hope it is resolved ...

Thank you very much , if all goes well, I will communicate .

Hello again,

Forgive the delay, I have been unable to work before.

Php I upgraded to version 5.4.41.
Virtuemart 3.0.8

The problem persists. :-( It does not work ....

The error I get is now as follows:

GET http://xxxxxxxx/index.php/geoplanes/user/index.php?option=com_virtuemart&view=state&format=json&virtuemart_country_id=195 500 (Internal Server Error)
n.ajaxTransport.send @ jquery.min.js:4
n.extend.ajax @ jquery.min.js:4
n.each.n.(anonymous function) @ jquery.min.js:4
n.extend.getJSON @ jquery.min.js:4
methods.update @ vmsite.js?vmver=8836:43
(anonymous function) @ vmsite.js?vmver=8836:23
n.event.dispatch @ jquery.min.js:3
n.event.add.r.handle @ jquery.min.js:3
n.event.trigger @ jquery.min.js:3
e.event.trigger @ jquery-migrate.min.js:2
(anonymous function) @ jquery.min.js:3
n.extend.each @ jquery.min.js:2
n.fn.n.each @ jquery.min.js:2
n.fn.extend.trigger @ jquery.min.js:3
h.result_select @ chosen.jquery.min.js?vmver=8836:1
h.search_results_mouseup @ chosen.jquery.min.js?vmver=8836:1(anonymous function) @ chosen.jquery.min.js?vmver=8836:1
n.event.dispatch @ jquery.min.js:
3n.event.add.r.handle @ jquery.min.js:3

Help me plez!





This error appears when I activated Jquery in VirtueMart option, if assets with JqueryEasy, you still see the same mistake mentioned first
Title: Re: State Field Empy - ERROR 500
Post by: daicon on July 13, 2015, 12:32:15 PM
Quote from: daicon on June 12, 2015, 15:58:31 PM
Yes, I try use Jquery Easy plugin, but not work.

Tomorrow I will update PHP and the latest version of VirtueMart .

I hope it is resolved ...

Thank you very much , if all goes well, I will communicate .

help me plez!
Title: Re: State Field Empy - ERROR 500
Post by: daicon on July 17, 2015, 17:04:11 PM
help me plez
Title: Re: State Field Empy - ERROR 500
Post by: zanardi on August 20, 2015, 13:03:57 PM
There's definitely something that smells wrong here. This is the line 43 of vmsite.js:

$.getJSON('index.php?option=com_virtuemart&view=state&format=json&virtuemart_country_id=' + byAjax,

That URL will never work if the current path is in a subfolder (e.g. http://www.example.com/shop/). If we put a "/" upfront, it will be ok:

$.getJSON('/index.php?option=com_virtuemart&view=state&format=json&virtuemart_country_id=' + byAjax,

but then it will not be compatible with the whole Joomla site is installed in a subfolder. So we'd probably need to setup a JS variable corresponding to JUri::root() and prepend it to the call.