-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map not loading in dashboard of multisite #77
Comments
Also on the frontend are no maps visible. In both cases it looks like the corresponding script code is not even loaded (and therefor can not send an error message) |
Thanks for your bug report. I'll setup a multisite install with similar configuration to test. |
I investigated a bit more: in /include/wp-geo.php in line 750 there is a check with wpgeo_check_domain(). If I disable the check, everything is working fine. The function wpgeo_check_domain() itself is defined in /include/functions.php - maybe it is to restrictive? I also see a http hardcoded there. |
Thanks. I'll focus on that function. |
In the wpgeo_check_domain() function can you try replacing that hardcoded http reference as follows: $blog = preg_replace( "/(" . $http . "://[^\/])./", "$1", get_bloginfo( 'url' ) ); if that works, let me know and I'll release an update. |
Sorry, it did not work: My adress https://beta.dd4kids.de rendered to https://bta.dd4kids.de |
Hallo, I use wp-geo on an wordpress multisite with sites in subdirectories (no subdomains used):
www.dd4kids.de (site 1, german version)
www.dd4kids.de/en (site 2, english version)
Wordpress Version 4.5.1
WP-Geo Version 3.4
Browser: tested with Chrome and Firefox
After switching from http to https, I found the issue, that the map is not working in the dashboard of the article-editor on * site 2* only (site 1 is working!)
Reading all the postings regarding this issue, is looks like a problem with different urls in websites>settings siteurl and home, but I do not know how to debug this issue.
Here are my actual settings for site 2: (www.dd4kids.de/en):

If I use
siteurl: https://www.dd4kids.de/en
Home: https://www.dd4kids.de/en
then the dashboard map is not working (showing "Loading Google map, please wait..." only).
However it is working with the following setting:
Home: http://www.dd4kids.de/en (remove the 's') OR
Home: https://www.dd4kids.de (remove the subdirectory)
Any hint to solve this problem is appreciated!
The text was updated successfully, but these errors were encountered: