Osclass forums

Support forums => General help => 3.7.x => Topic started by: ala on July 12, 2017, 09:10:27 am

Title: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 09:10:27 am
i have upgrade my osclass from 3.7.1 to 3.7.3  then my website not work js
before it work well
Title: Re: Js not work when upgrade to 3.7.3
Post by: _CONEJO on July 12, 2017, 09:41:19 am
Loos like jQuery is not being loaded, please check it and make sure it's available
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:06:10 am
@_CONEJO

Everything is work well but error after upgrade
Title: Re: Js not work when upgrade to 3.7.3
Post by: _CONEJO on July 12, 2017, 10:14:08 am
Please, share the URL of your website
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:15:00 am
also in admin panel plugin not work when hover on plugin menu
Title: Re: Js not work when upgrade to 3.7.3
Post by: _CONEJO on July 12, 2017, 10:16:38 am
again, please share your URL, if you are not comfortable making it public, send it to desteban@osclass.org
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:17:02 am
url has been send
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:19:37 am
hover in left menu admin panel not work   :'( :'( :'(
Title: Re: Js not work when upgrade to 3.7.3
Post by: _CONEJO on July 12, 2017, 10:26:22 am
You have a lot of <script> in the <head> move it somewhere else.

If you open the browser console you will see clearly the issues,

Code: [Select]
ReferenceError: jQuery is not defined[Learn More]  cammarkets.com:340:1
ReferenceError: jQuery is not defined[Learn More]  cammarkets.com:369:1
ReferenceError: transparent is not defined[Learn More]  vidbg.min.js:6:3184
Error: Missing required parameters: sitekey  recaptcha__en.js:394:182

In line 340 you are using jQuery, before it's loaded. Move the code to AFTER the libraries are loaded. From what I see, this has nothing to do with version 3.7.3, but with some ¿plugin? popup_facebook_box ?
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:33:27 am
@ _CONEJO why js in admin panel not work too
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:36:18 am
i have uninstall FB popup plugin but it still not work
Title: Re: Js not work when upgrade to 3.7.3
Post by: _CONEJO on July 12, 2017, 10:41:19 am
I don't have access to your admin, so can't see what is happening there, but

1.- Open your browser's console
2.- Go to your website (public or your admin, where you are having issues)
3.- See what's there


Right now, there's this:

Code: [Select]
ReferenceError: transparent is not defined[Learn More]  vidbg.min.js:6:3184
Error: Missing required parameters: sitekey  recaptcha__en.js:394:182


So, some script called "vidbg.min.js" (which resides at yourdomain.tld/js/vidbg.min.js , so it's not a plugin, not a theme, you put it there) have some issues, you need to fix it.
The next issue is that you didn't configure your recaptcha keys, this is in yoru html

Code: [Select]
<div class="g-recaptcha" data-sitekey="">
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:47:41 am
it video background banner below search bar, now it not work, i will disable it for testing
Title: Re: Js not work when upgrade to 3.7.3
Post by: ala on July 12, 2017, 10:54:33 am
<div class="g-recaptcha" data-sitekey="">
i can't add key in admin because i hover on menu in admin panel it not work
and i disable  video background banner now it still have problem