Site showing no content
-
Upgraded to version 4.1.7 recently.
Since then non-admin users can only see a bare site , no posts , just the menu is shown.For admin users I can see some posts , but the sidebar widgets have gone along with the WordPress Admin bar at the top.
When I disable the plugin everything returns to normal for all users.
Tried switching back to 4.1.6 but this is now showing the same effect.
-
Go back to 4.1.5. Also, can you check your error logs for any clues?
OK , back on 4.1.5 , still seeing the same issue.
Here is the error I see in the web server log file :-[Sun Jul 12 15:03:40.210640 2020] [proxy_fcgi:error] [pid 25336:tid 140370397357824] [client 90.78.18.134:35544] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function set() on null in /var/www/markwaters.eu/wp-content/plugins/simple-location/includes/class-loc-view.php:200\nStack trace:\n#0 /var/www/markwaters.eu/wp-content/plugins/simple-location/includes/class-loc-view.php(359): Loc_View::get_map()\n#1 /var/www/markwaters.eu/wp-includes/class-wp-hook.php(287): Loc_View::content_map('<p><img src="ht...')\n#2 /var/www/markwaters.eu/wp-includes/plugin.php(206): WP_Hook->apply_filters('<p><img src="ht...', Array)\n#3 /var/www/markwaters.eu/wp-includes/post-template.php(253): apply_filters('the_content', '<img src="https...')\n#4 /var/www/markwaters.eu/wp-content/themes/independent-publisher/content.php(54): the_content('Continue readin...')\n#5 /var/www/markwaters.eu/wp-includes/template.php(725): require('/var/www/markwa...')\n#6 /var/www/markwaters.eu/wp-includes/template.php(672): load_template('/var/www/markwa...', false)\n#7 /var/www/markwaters.eu/wp-includes/general-template.php(168): locate_te...'Were you using the Wikimedia Maps provider? I had to remove it in 4.1.5.as they stopped providing it. If that’s it, if you change providers, it should fix…
I thought I had fixed that problem in 4.1.6 for people who still had it set.
I had :-
Map Provider = Mapbox.
Geo Provider = OpenStreetMap Nominatim.Changed them both to Big maps , and now the site is working as expected again.
Also upgraded back up to 4.1.7 and still working.Thank you so much , sorry for wasting your time.
Mark.That shouldn’t happen…. but if you change it back now, it should work… somehow the setting got corrupted. I will put in extra safety checks for the provider being null.
Is there anything else about the plugin you would want? I’m always adding things.
I went through the entire list of Map Providers and my site shows no content when I also choose LocationIQ or Geoapify.
Yandex is the only provider which shows an actual map , the rest just show a link to an external site with the coordinates. Is this the expected behaviour ?
The only thing I was going to ask about is having a pointer on the displayed map , like when sharing a location on OpenStreetMap , but luckily Yandex is providing that as-is.
Thank you for the plugin and excellent support , again!
Mark.Everything but Yandex requires an API key. Did you add one for the other services?
I just redid all the markers
Just signed up at mapbox.com , created an access token , added the username and API Key to the settings but it still just shows a link with coordinates , not the inline map like Yandex.
Weird.I’m not sure…I checked all of them this weekend before release and everything was working.
I have a self hosted option if you are a bit technical.
Perhaps mapbox.com takes a while to kick in ?
I will check it again in a few days.Although I think I am a ‘bit technical’ it is likely nowhere near your ‘bit technical’ although it does sound tempting.
Do you have any details written up anywhere ?I mention it in my website, but intend to do a write-up. I modified an old php script to act as an API to generate OpenStreetMap tiles into a static map.
https://github.com/dshanske/Static-Maps-API-PHP
It can be used with the custom provider. You could in theory host the tiles yourself, but that’s 50+ GB. I set it to cache the generated map in Nginx for a few days.
Yep , our ‘technical’ levels are a good distance apart.
Thanks for the invitation though.That’s why I figured the third-party hosted providers were more reliable for most.
The topic ‘Site showing no content’ is closed to new replies.