Google autocomplete google.maps.__gjsload__ is not a function - javascript

i'm using google's autocomplete to fill address information on vtiger crm contacts module, using almost he exact same code (changing the ids of html elements) works fine in accounts but in contacts (were it worked for few days), without any changes it doesn't wroks... I have some js error in console
Uncaught TypeError: google.maps.\__gjsload__ is not a function(anonymous function) ... places_impl.js
Uncaught TypeError: google.maps.\__gjsload__ is not a function(anonymous function) ... controls.js
Uncaught TypeError: google.maps.\__gjsload__ is not a function(anonymous function) ... utils.js
Uncaught TypeError: google.maps.\__gjsload__ is not a function(anonymous function) ... commons.js
Has someone faced this problem?

It was my mistake, I was including google's api in other html to use a map... sry

Related

Cannot read property of 'fn' of undefined?

Getting these error codes on my github pages. I have these as my order of loading scripts:
<script src="../../node_modules/jquery/dist/jquery.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/index.js"></script>
Here are the error messages:
GET https://tmolano.github.io/CareerMod4/node_modules/jquery/dist/jquery.js 404 ()
index.html:115 GET https://tmolano.github.io/CareerMod4/node_modules/popper.js/dist/popper.min.js 404 ()
util.js:56 Uncaught TypeError: Cannot read property 'fn' of undefined
at util.js:56
at util.js:10
at bootstrap.min.js:6
at bootstrap.min.js:6
(anonymous) # util.js:56
(anonymous) # util.js:10
(anonymous) # bootstrap.min.js:6
(anonymous) # bootstrap.min.js:6
Heres my page: https://tmolano.github.io/CareerMod4/
Other than the order of loading, what else could be causing this?
Possible reasons for this error:
Uncaught TypeError: Cannot read property 'fn' of undefined
invalid reference to the file addresses or missing files (Your case).
Duplicate reference to the Jquery.
Overriding $ sign of Jquery in 3rd party libraries.
Using Jquery functions before inserting Jquery (Not your case).
Using deprecated syntax for load,error,unload on WINDOW element in jquery without on

" 'app' is undefined " when developing an Office add-in

So I am learning how to develop an MS Project add-in.
I was successful in deploying the tutorial (yayy!): https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/project-quickstart
Then I replaced the html and the js code with the example code from here: https://dev.office.com/reference/add-ins/shared/projectdocument.gettaskbyindexasync
And it stopped working!
I started a new project from scratch. Again, as in the tutorial, "Office Add-in project using Jquery framework", "Javascript" as selected options.
And it still didn't work.
Error message from F12 dev tools:
jQuery.Deferred exception: 'app' is undefined ReferenceError: 'app' is undefined
at Anonymous function (eval code:14:13)
at mightThrow (https://localhost:3000/node_modules/jquery/dist/jquery.js:3534:10)
at Anonymous function (https://localhost:3000/node_modules/jquery/dist/jquery.js:3602:12) undefined
SCRIPT5009: 'app' is undefined
jquery.js (3827,3)
The error is spawned from the following row from the JS code:
app.initialize();
There is no "app.initialize();" in the tutorial. If I decide to delete this row, the error goes away (naturally), but then interacting with the functionality spawns another error message:
Unable to get property 'push' of undefined or null reference
Then I tried to define some 'app' Object.
I initialized it with
var app = Object.context;
The error then is:
Unable to get property 'initialize' of undefined or null reference
I am still trying to figure out, where this 'app' Object comes from. Or at least, how can I define it properly. Any ideas?

Reaction Commerce: TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined

Upgrading Reaction Commerce from 1.4.x to 1.5.x with rc run I'm getting this error in Firefox:
TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined
and these errors in Chrome:
Uncaught TypeError: Cannot read property 'EventPluginHub' of undefined
Uncaught TypeError: Cannot read property 'marketplaceEnabled' of undefined
I found imports/plugins/core/ui/client/helpers/react-template-helper.js where React is mainly being loaded I think. Any ideas what could be missing here?
Issue Source Code:
https://github.com/MassDistributionMedia/rc-ca-blinds/tree/custom-cart_rc1.5.6
Please remove react-tap-event-plugin from client/modules/core/main.js. It's no longer necessary.

JQuery errors with Wordpress site after deleting and setting up directories

I wanted to change the location of my Wordpress website from a subdirectory to the root. I made a back-up of my files and my database. But I made a mistake by moving my site to the root. First, I moved the site in Filezilla and after that I changed the URL in wordpress. I was dealing with a 500 error, so my hosting company advised me to restore everything to what is was before.
Now my site gives 22 Jquery errors and I can't adjust anything in wp-admin anymore.
These are my errors I'm dealing with:
Uncaught SyntaxError: Invalid or unexpected token
jquery-migrate.min.js:2 Uncaught ReferenceError: jQuery is not defined at query-migrate.min.js:2
jquery.flexslider-min.js:5 Uncaught SyntaxError: Invalid or unexpected token
jquery.mCustomScrollbar.js:43 Uncaught ReferenceError: jQuery is not defined at jquery.mCustomScrollbar.js:43 at jquery.mCustomScrollbar.js:45
jquery.fancybox.js:2020 Uncaught ReferenceError: jQuery is not defined at jquery.fancybox.js:2020
enter code here jquery.elevatezoom.js:1790 Uncaught ReferenceError: jQuery is not defined
at jquery.elevatezoom.js:1790
jquery.dotdotdot.min.js:13 Uncaught ReferenceError: jQuery is not defined
at jquery.dotdotdot.min.js:13
jquery.gridrotator.js:756 Uncaught ReferenceError: jQuery is not defined
at jquery.gridrotator.js:756
bootstrap.min.js:6 Uncaught SyntaxError: Invalid or unexpected token
jquery.colorbox.js:4 Uncaught SyntaxError: Invalid or unexpected token
shortcodes.js:31 Uncaught ReferenceError: jQuery is not defined
at shortcodes.js:31
parallax.js:154 Uncaught ReferenceError: jQuery is not defined
at parallax.js:154
uikit.min.js:3 Uncaught Error: UIkit requires jQuery
at uikit.min.js:3
at uikit.min.js:3
main.js:782 Uncaught ReferenceError: jQuery is not defined
at main.js:782
(index):184 Uncaught ReferenceError: jQuery is not defined
at (index):184
scripts.js:481 Uncaught ReferenceError: jQuery is not defined
at scripts.js:481
jquery.sliderPro.js:1450 Uncaught ReferenceError: jQuery is not defined
at jquery.sliderPro.js:1450
post-favorite.js:29 Uncaught ReferenceError: jQuery is not defined
at post-favorite.js:29
datepicker.min.js:5 Uncaught SyntaxError: Invalid or unexpected token
js_composer_front.min.js?ver=5.1.1:1 Uncaught ReferenceError: jQuery is not defined
at getSizeName (js_composer_front.min.js?ver=5.1.1:1)
at js_composer_front.min.js?ver=5.1.1:1
owl.carousel.min.js:47 Uncaught ReferenceError: jQuery is not defined
at owl.carousel.min.js:47
tb.carousel.js:209 Uncaught ReferenceError: jQuery is not defined
at tb.carousel.js:209
Thanks a lot for your help!
Ok, I think I found the issue. the jquery seems to be corrupted when you move folders around. On the left below image is original jquery.1.12.4 and the one on the right is what you have.

Discover Meteor, Chapter 3-5: plain grey screen and no data

This is a follow-up question on Meteor: "=> Exited with code: 8" error.
Since Chapter 3 of Discover Meteor, whenever I run the server and visit the http://localhost:3000/ URL (or any other page of the app), I only get a plain, grey screen, with nothing on it:
I decided to go on with the tutorial, hoping that the next chapters would result in fixing what was wrong by updating some files, but it did not.
There is no error in the server log, so I cannot reproduce them here.
However, you can find all the files of the project on GitHub: https://github.com/thibaudclement/microscope
UPDATE: here are the client-side console logs:
Uncaught TypeError: Template.__create__ is not a function
meteor.js:225 Uncaught TypeError: Cannot read property 'prototype' of undefined
iron-router.js:1475 Uncaught TypeError: undefined is not a function
global-imports.js:3 Uncaught TypeError: Cannot read property 'RouteController' of undefined
template.layout.js:2 Uncaught ReferenceError: Template is not defined
template.loading.js:2 Uncaught ReferenceError: Template is not defined
template.post_item.js:2 Uncaught ReferenceError: Template is not defined
template.post_page.js:2 Uncaught ReferenceError: Template is not defined
template.posts_list.js:2 Uncaught ReferenceError: Template is not defined
template.main.js:2 Uncaught ReferenceError: Template is not defined
router.js:1 Uncaught ReferenceError: Router is not defined
post_item.js:1 Uncaught ReferenceError: Template is not defined
posts_list.js:1 Uncaught ReferenceError: Template is not defined
posts.js:1 Uncaught ReferenceError: Meteor is not defined
meteor.js:888 Exception in defer callback: TypeError: Cannot read property 'insert' of undefined
at Utils.extend.autoRender (http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1636:17)
at http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1465:16
at _.extend.withValue (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:955:17)
at http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:435:45
at Object.<anonymous> (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:983:22)
at onGlobalMessage (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:372:23)
Any idea of what I am doing wrong?
Or at least, where I should start looking to find what is going wrong?
Problem may be you're following old version of the book or with microscope(not sure)
I cloned your app and tried to run
in your .meteor/packages file
change
iron-router
spin
to
iron:router
sacha:spin
it is working fine for me afer these changes

Categories