Map not showing on local development system
-
Map is not showing on the front end of my local development server, but is showing on the live (hosting) server. The map shows in the Gutenberg editor.
I have tracked the problem to curl_exec encountering an error on my development environment – “SSL certificate problem: unable to get local issuer certificate”.
This is due to my development system not having a valid cacert.pem file.
There are two solutions for me:
1. install a cacert.pem file and set its location in my php.ini file with the line
curl.cainfo = “PATH_TO/cacert.pem”2. modify the embed-gutenberg-block-google-maps.php file, adding
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
before the curl_exec($ch) call.Either solution worked for me, but I have chosen option 1.
- The topic ‘Map not showing on local development system’ is closed to new replies.