Arnoud
Forum Replies Created
-
The login can be found in your mailbox. 🙂
Thanks again for the assist.
PHP version is 8.4.8 for both the test-site and the actual website.How would this look like on a vanilla website?
I’ve done some testing, on the hosting server (not locally, yet):
– Created a new subdomain + empty wordpress.
– Installed NextGen Gallery, NextGen Gallery Pro, Geo2Maps & Code Profiler.
– No proxy via Cloudflare.
Uploaded the content: 28 GPX files (40MB) & 590 images (~1GB)
Created the 26 galleries in which these images are displayed.
Copy/pasted the code from the same blogpost I have been testing with.
Updated the shortocde for all galleries in the code to reflect the correct/new gallery ID.
Example:[geo2 id=1 xmlurl="/wp-content/uploads/2022/05/sGPX_2022050608435231.gpx"]
Updated the first 2 pages of the blog (24 pages in total) to show the correct images in the blog.
Example:[thumb id="30,31"]
Added the API key for Azure Maps to the plugin & added the test URL to the CORS page in Azure.
Viewing the page results in a gray box where the map is supposed to be.
Ran another test, and unfortunately the same results in the admin edit mode./wp-admin/post.php?post=351&action=edit
If you want, I can share a login for this test site? Just let me know how to provide the login details.
In code profiler I do notice the following remark:
Code Profiler has detected that the following components, sorted by execution order, are using Composer dependency manager:
1: NextGEN Gallery, 2: NextGEN Pro.
Why does Code Profiler warn me that I have multiple plugins using Composer?
Composer, a tool for dependency management in PHP, is included in many popular plugins and themes. It is used to autoload PHP classes.
Code Profiler will inform you if two or more activated plugins use it because you will need to take it into consideration when reading and interpreting the results. Let’s take an example:
Assuming you have four plugins, #1, #2, #3 and #4. Both plugins #1 and #4 include and require Composer. WordPress will start and load plugin #1, which will run an instance of Composer to load its classes. Immediately after, WordPress will load plugins #2 and #3. Then, it will load plugin #4, which too will need to load its classes. However, plugin #4 will not start a new instance of Composer but, instead, will rely on the one from plugin #1 to load its own classes.
As a result, the execution time of plugin #1 will increase (its instance of Composer is used to load classes for plugin #4 too), while the execution time of plugin #4 will decrease (it doesn’t need to start a new instance of Composer). Therefore, if you have a dozen or more plugins using Composer, it is important to take into consideration that the execution time of plugin #1 may be much higher than other plugins.
Also, assuming you are a developer and just want to profile a plugin that you wrote and that includes Composer, you will need to disable any other plugin using Composer in order to get the most accurate results for your plugin only.Without the Geo2maps on the test-site, the results are:

- This reply was modified 9 months, 2 weeks ago by Arnoud.
Hi Pablo,
The hosting provider also tested this from their end, and they see the same behavior as when I test it.
Therefore, it’s not an end-user device / browser / infrastructure related issue.
Also everything is up-to-date, WordPress, all plugins & the database.
PHP version is 8.4.8.
As a test, I’ve also downloaded my website, content & database, to a local system (docker).
Also here I see a delay in loading the page, less significant than on the hosted environment, still almost 4,5 seconds.
A 2nd test, with all other plugins disabled, also shows that this plugin needs the most time to load on the edit page.

Questions that I now have are:
– Is this normal behavior for the plugin? That it loads slower than all other plugins.
– How does the graph look like on your end?
– Anything I should look for in logs? As I also run it locally now, I have full access.
– How would this look like on a vanilla website? (I can set this up, will take some time though).- This reply was modified 9 months, 2 weeks ago by Arnoud.
Hi Pablo,
NextGen & NextGen Pro are two separate plugins.
The Pro version is a paid add-on for some additional features I use on my website.
For the test, I’ve deactivated.
As per request, I deactivated all other plugins and ran the code profiler again for the edit version of the page, unfortunately still the same result:
What else can I test/troubleshoot to mitigate the issue?
Arnoud.Hi Pablo,
When loading a post without the shortcode, I don’t see the plugin being loaded, for example:

I’ve changed the theme to Twenty Twelve, no change.
For reference, my theme is “Photocrati”.The console in the browser shows this (also when editing other posts)
To me, this seems unrelated to the plugin?
- This reply was modified 9 months, 3 weeks ago by Arnoud.
Hi Pablo,
I’ve followed up already on removing the API key for Azure Maps.
It makes no change.
Do note, that the issue is NOT on the public viewable post, but on the admin part, when editing the message: https://example.com/wp-admin/post.php?post=22196&action=edit
When I browse to the public page: https://example.com/?p=22196 it loads as expected and within a normal timeframe.
Note: I also tried the “loadmap on demand” option, that also makes no difference, it’s always loaded it seems. In editing mode, I do not see a map at all, only the shortcode.
For Geocoding, if you’re asking if my images are provided with GPS coordinates, to show them on the map: Then yes, I use geocoding.
When loading, eventually Cloudflare shows “host error”, due to >100 seconds loading time, which is their limit.
In order to determine if Cloudflare is the issue, I turned off the proxy option there.
Also a locally modified hosts file with a direct entry to the hosting IP.
Both show the same result, after waiting for about 2 minutes, the edit page shows. No browser errors what so ever. Where can I find the notifications / query monitor you are referring to? (I use Edge).
Arnoud.Hi Pablo,
There are no outstanding invoices. Since I’ve used Azure Maps, no excess usage at all.
Hosting provider asks what API’s the plugin is using. I already mentioned atlas.microsoft.com.
Perhaps there are more the plugin uses, even when I am not using other map providers? That might clarify the slowness. They suspect an IP-ban or IP-based usage limit.
Do you have an overview?Hi Pablo,
Fair question on Azure Maps. My website has less than 100 visitors a month.
I also did not receive any message from Azure about overspent (I assume they do that when approaching/exceeding the limit). I can’t imagine that this amount of visitors will cause an overpend of Azure Maps.What I noticed while editing the site earlier this month, it was sluggish when going to edit a post, and eventually timing out.
I’m not sure what was changed (if anything at all), I was just copying some text from the site to a local photo album I am making for print. I did not keep track of any updates to WordPress, etc.
Also, may be important, when I run the exact same website/database/files locally, there is still some delay (4 seconds) on the plugin, no where near the 90 seconds of the hosting.
Hosting provider suggests to resolve it with the plugin developer (you), as they state the 4 seconds locally is also too much. To some degree, yes, but I feel it’s more a case now of bouncing their customer around and not willing to look into an issue on their end, which from my point ( and you response) might be a certainty.
If you feel otherwise, let me know, I’m willing to help debug.
Arnoud.Thank you @pablo2 ! Well ahead of the deadline from Microsoft. Well done! 🙂
Just managed to get the Azure Maps key.
All works as expected on my end. Getting the key & account was quite easy.
Hope my usage stays within the free tier. 😉
You can mark this one as resolved. 😀Take your time! There is still 6 months of time before Bing Maps is phased out.
Thanks, feel free to ping me if a test is needed. Happy 2 help.
Forum: Plugins
In reply to: [Geo2 Maps Add-on for NextGEN Gallery] Route/Track not shownYou’re a bit behind on your WordPress and PHP version.
Any reason why you’re not yet on PHP8 and WP 5.8.1?
What version of the plugin are you using? Updating to 2.0.4 fixed it for me.Forum: Plugins
In reply to: [Geo2 Maps Add-on for NextGEN Gallery] Route/Track not shownI’m suggesting to include the SQL query (I still need to write) into the plugin.
So others might easily migrate from WP GPX Maps to Geo2Maps.
The query would replace the SGPX tag with the geo2 tag syntax. As both are quite similar it’s an easy “find and replace’ SQL query.The relative path works just fine. I always use relative paths, so I can run 2 copies of my website. 1 for test/dev and one for production. 🙂
Saves me the hassle of updating paths within posts, when testing.Forum: Plugins
In reply to: [Geo2 Maps Add-on for NextGEN Gallery] Route/Track not shownThanks id=1 and lowercase xmlurl fixed my issue. 🙂
Now for me to write a SQL script to replace the
[sgpx nggalleries=324 gpx="/wp-content/uploads/2021/08/GPXFILE.gpx"]
with
[geo2 id=1 xmlurl=/wp-content/uploads/2021/08/GPXFILE.gpx]
(the actual URL doesn’t need to be included in the statement).But that’s relatively simple (backup first ofcourse).
Might be interesting to include in the plugin (or documentation) for others that would like to migrate from WP GPX Maps (https://nl.wordpress.org/plugins/wp-gpx-maps/)?
That plugin is no longer maintained it seems (and only 1.7.0.2 works as it should. Not PHP8 compatible either).Forum: Plugins
In reply to: [Geo2 Maps Add-on for NextGEN Gallery] Route/Track not shownThanks, it seems to work when I use a Nextgen gallery into a post.
But not when I combine the “PID” tag for example with the “xmlUrl”How I build up my posts is:
<text> <selected images from a gallery> <text> <selected image from the same gallery> <map with route + gallery thumbnails>With GPX Maps that would be a code like:
sgpx nggalleries=324 gpx="/wp-content/uploads/2021/08/GPXFILE.gpx"]As there is no such option in Geo2Maps, I tried the following:
[geo2 pid=10374,10372,10375,10373,10376,10375,10377,10379,10378,10380,10382,10384,10381,10383,10350,10352,10347,10346,10348,10349,10361,10363,10385,10354,10351,10355,10357,10353,10356,10358,10360,10359,10362,10364,10365,10369,10370 xmlUrl=/wp-content/uploads/2021/08/GPXFILE.gpx]This results in the thumbnails being displayed, but not the route.
The route is only displayed when I build up the post like:
<text> <text> <text> <text> [ngg src="galleries" ids="1" display="basic_thumbnail"] [geo2 xmlUrl=/wp-content/uploads/2021/08/GPXFILE.gpx]Is there a way to make it work like my current setup? Specify the gallery to display in the tag like WP GPX Maps, or make both the xmlURL & PID tag work together?