October 15, 2018 at 8:06 pm #43774
after updating to version 7.10.36 (WP google maps pro) we get the following error (developer console):
Uncaught TypeError: Cannot read property ‘__’ of undefined
wp-google-maps-pro.min.js?ver=7.10.38+pro-7.10.36:1 Uncaught TypeError: WPGMZA.Map.getConstructor(…) is not a constructor
at Function.WPGMZA.Map.createInstance (wp-google-maps-pro.min.js?ver=7.10.38+pro-7.10.36:1)
at Object.MYMAP.(/wo-finde-ich-was/anonymous function).init (https://….de/wp-content/plugins/wp-google-maps-pro//js/core.js?ver=7.10.36p:1462:25)
at InitMap (core.js?ver=7.10.36p:197)
at HTMLDocument.<anonymous> (core.js?ver=7.10.36p:1270)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
Hans-GerdOctober 15, 2018 at 8:22 pm #43778October 15, 2018 at 9:01 pm #43789
The new plugin integrates with the (soon to be built in) Gutenberg editor.
Can you please confirm which version of WordPress you are running, as the required packages have been bundled since April, if you are up to date you shouldn’t be seeing this error.
– PerryOctober 15, 2018 at 9:40 pm #43799
thanks for quick answer.
WordPress 4.9.8 is running on the website in question.
Hans-GerdOctober 15, 2018 at 9:50 pm #43804
Please update the plugin and Pro add-on, we’ve literally just now released patches for this issue.
My sincere apologies for any inconvenience caused.
You can use Dashboard -> Updates -> Check again to force an update check.
Please let us know if that solves the issue?
– PerryOctober 16, 2018 at 5:37 am #43834
thanks a lot – it works.
I just saw that the problem could be connected to this:
Fixed JS error when Gutenberg framework not loaded
Do you have any idea how to make sure that the Gutenberg framework is loaded? – I think that could be problematic in the future, isn’t it ?
In addition, the following warning appears in the developer tools:
wp-google-maps-pro.combined.js:408 Minified script is out of date, using combined script instead.
This message does not appear in our development environment
Hans-GerdOctober 16, 2018 at 4:18 pm #43884
We’ve added code to not load our Gutenberg integration modules when the Gutenberg editor is not present, which solves this issue.
Gutenberg will not be present if you haven’t installed the Gutenberg plugin.
Gutenberg will be built into WordPress as of WordPress version 5.0.
You can disregard the warning about the combined file for the time being, that has very superficial bandwidth implications but nothing you need to worry about. This will be resolved in the next version.
I hope that helps!
– PerryOctober 16, 2018 at 8:45 pm #43916
thanks a lot for quick solving this issue.
I know that Gutenberg will be standard in November with version 5.0 and we are also preparing for it. At the moment, however, we have activated the Gutenberg plugin only on a development environment.
We have already checked it out, Gutenberg is not uninteresting, apart from the fact that you won’t get on without Gutenberg in the long run.
Perfect that the warning will be solved in next version.
Hans-GerdNovember 9, 2018 at 8:53 am #44648November 9, 2018 at 3:02 pm #44664
You definitely shouldn’t be running a site with developer mode switched on, staging or otherwise, that setting is intended for staff only use.
Can you please disable that setting and then get back to me so I can see why the map isn’t appearing,
Can I please also ask that you apply the latest updates as we’ve patched issues relating to this over the last week.
– PerryNovember 13, 2018 at 5:56 am #44775
sorry for the delay, I didn’t receive your answer as mail and only saw it now.
Of course only our development environment runs in debugging mode. I just tested it and the notice doesn’t appear anymore.
Hans-GerdNovember 13, 2018 at 6:46 pm #44797
Sounds like the issue is resolved!
If I’ve misunderstood and that isn’t the case, please let me know and we’ll investigate further.
– PerryNovember 16, 2018 at 3:34 pm #44871
is there a recommendation which JS files should not be minified (i.e. excluded) by WP Rocket ?
Hans-GerdNovember 16, 2018 at 8:45 pm #44873November 19, 2018 at 10:19 am #44925
Thank you for letting us know on this,
This issue has been widely reported and we are actively looking into patching this, we should have a fix going out this morning.
Please bear with us on that and thank you again for reporting, we appreciate it!
- You must be logged in to reply to this topic.