VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: wayner on February 11, 2014, 12:16:13 PM

Title: "Ask a Question" link not opening a popup
Post by: wayner on February 11, 2014, 12:16:13 PM
Running Virtuemart 2.0.26d (catalogue mode) on Joomla 2.5.18.  After upgrading Virtuemart to latest version, the "Ask a question" link on the product page does not open in a popup window, rather opens in the same window.  Has anyone know how to fix this or maybe where I could start looking?

https://www.rpslighting.com.au/index.php/portable-lighting-kits/diva-lite-kits/kit-d4-230-detail (https://www.rpslighting.com.au/index.php/portable-lighting-kits/diva-lite-kits/kit-d4-230-detail) is an example.

Thanks in advance.
Title: Re: "Ask a Question" link not opening a popup
Post by: jenkinhill on February 11, 2014, 12:41:03 PM
You have a JavaScript issue and a problem with your use of https:


Blocked loading mixed active content "http://api.html5media.info/1.1.5/html5media.min.js"
"NetworkError: 404 Not Found - https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/themes/base/jquery-ui.css"
jquery-ui.css
"NetworkError: 404 Not Found - https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.js"
jquery-ui.js
"CSS Usage: initializing extensions"
"NetworkError: 404 Not Found - https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.js"
jquery-ui.js
Blocked loading mixed active content "http://api.html5media.info/1.1.5/html5media.min.js"

See also http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: "Ask a Question" link not opening a popup
Post by: wayner on February 12, 2014, 06:51:31 AM
Thanks jenkinhill,  I'm not sure where you're seeing the 404 errors - I'm using Firefox with Firebug and Chromium Developer Tools.  I have disabled some plugins including the videobox plugin that was causing one of the 404 errors.

The only error I can see is "$.facebox is not a function" in Firebug when I click on the ask a question button.  Can anyone help with this?
Title: Re: "Ask a Question" link not opening a popup
Post by: jenkinhill on February 12, 2014, 11:28:42 AM
Modern browsers won't load external non-https files into https pages, so that stops things working.

Now you can see the actual issue in that facebox/fancybox is not working. This is usually because you are loading a jQuery version with which facebox cannot function. You can go as recent as jQ1.7.1 but not jQ1.9.  That's why I gave you the link to the jQ FAQ
Title: Re: "Ask a Question" link not opening a popup
Post by: wayner on February 12, 2014, 12:54:35 PM
Thanks Kelvyn,  I now have jquery 1.7.1 loading but although the "$.facebox is not a function" error has disappeared, the original problem remains.  Thoughts???
Title: Re: "Ask a Question" link not opening a popup
Post by: jenkinhill on February 12, 2014, 13:25:09 PM
Now I would check that the template overrides you are using are correct for the current VM version. You could try using the Beez template for testing this, or rename the override template directory - [yourJoomlaTemplate]/html/com_virtuemart/