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

State Field Empy - ERROR 500

Started by daicon, June 12, 2015, 14:32:52 PM

Previous topic - Next topic

daicon

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

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

daicon

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

Milbo

PHP version: 5.3.3-40.el6_6
=> use 5.3 latest or higher
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

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

daicon

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 .

daicon

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

daicon

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!

daicon


zanardi

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.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter