Javascript doesnt appear to be working

5 posts / 0 new
Last post
#1 Thu, 05/18/2017 - 02:49
adamjedgar

Javascript doesnt appear to be working

Hi guys, I am unable to run google maps on my Wordpress website.

The website says there is a javascript error.

**Oops! Something went wrong.

This page didn't load Google Maps correctly. See the JavaScript console for technical details.**

I have checked that javascript is enabled in my web browser (google Chrome) and it is.

I also get the same error when running microsoft edge.

I am not sure what i should be doing to get google maps working, i havent encountered this issue before.

Thu, 05/18/2017 - 10:36
Diabolico
Diabolico's picture

This questions doesnt have anything to do with Virtualmin and you will get much better help if you post same questions in Wordpress forum.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Thu, 05/18/2017 - 12:37
unborn
unborn's picture

Hi, this question have nothing to do with virtualmin/webmin. please ask advice from wp website...

Configuring/troubleshooting Debian servers is always great fun

Thu, 05/18/2017 - 16:38
adamjedgar

I will do that, however, i have never in my entire wordpress career (about 5 years) ever had this problem with any Wordpress installation on any cpanel server. Is there any virtualmin configuration that can influence this error?

I will try stack exchange and see if i can find the source of the problem as the wordpress forum is completely useless.

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Thu, 05/18/2017 - 20:06
adamjedgar

Ok, so i have at least a significant part of the answer to my problem.

For the sake of others who may also encounter this issue the fix is as follows... The cause is actually quite simple

  1. First of all, it has nothing to do with Wordpress or Virtualmin directly.

    1. It is due to googles policy as of 2016 that all google maps embedded on a website must use an API key and the website must also be verified in google webmaster tools and also registered to use that key

    ("https://www.google.com/webmasters/tools/")

    ("https://console.developers.google.com/apis/credentials/domainverification")

    1. Once the above two are confirmed, then you can go into Wordpress and add the API Key to whatever theme or plugin is displaying your google map (in my case it is my website theme Dashboard>Avada>Theme Options>Contact Form>Google Map

Hope this is of help to others.

Also of great help in trying to correctly track this error down is the Google Chrome Menu>More Tools>Developer Tools ( a very simple method of problem solving browser issues, remember you need to have Developer Tools open with the actual web page you are browsing that has the problem!)

kind regards, Adam

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Topic locked