1. hansbijloo
  2. Commercial Templates
  3. Thursday, 18 January 2024
  4.  Subscribe via email
Hi Ciaran, hope all is well

We ran into a bit of a problem with a store locator component we are using.
The store locator gives us an error as if we're using a wrong Google Maps API key, but we're using the same key on another website where it is working fine.
The API key is set up properly, but it gives an error when using the Joomla 3 Cashmere template.

https://horsefoodthebest.nl/verkooppunten <- on this site it gives an error.
https://www.vangorphobbyvoeders.nl/dealers <- on this site it works perfectly.

We copied the first site to testing grounds and used a more recent Joomla 3 template, Alexis, to see if this resolved the issue.
https://horsefood.strongbrand.nl/verkooppunten <- staging site

And voila, the map suddenly works again, so we've come to the conclusion that the issue here is the Cashmere template.

However, the client really wants to maintain the current look.
Do you know why the Cashmere template doesn't work with the Store Locator component while Alexis does? And could you help resolve it?
Hopefully it can be solved by simply adjusting/adding/removing something small in the files.

We hope you can help us, and hope to hear back from you soon :)

With kind regards, Sterkmerk Team
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Just to ensure that the issue is a template related issue and not related to any of your installed extensions, could you try enabling the default Joomla template (protostar) and see if the issue persist?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

We have done so, and when Protostar is enabled, it works just fine.
When we turn on another J51 template, for instance, Alexis, it also works fine.

It only stops working when we use the Cashmere template. We have also started a fresh site, completely empty except for the storelocator module, and the same problem persists. But only with the Cashmere template.

Any help is much appreciated :)

Kind regards,

Daniel
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Daniel

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

I have made an account for you on the site. I have emailed you the info if the site hasn't automatically already sent you the info.

Kind regards,

Daniel
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Daniel

Can you confirm the email sent to is info@joomla51.com ?

Strangely we do not appear to have received an email directly or from your site.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

Yes, I can confirm. I've just resent the mail to the same address, info@joomla51.com.
Could it have landed in the spam box, maybe?

Daniel
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Daniel

Could I ask you to detail the error you are getting as your extension appears to be working without issue on our side?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

The error is only happening with the Cashmere template.
We have temporarily switched the live page to the Bianca template to make sure clients are still able to use the locator.

This is the actual live page: https://horsefoodthebest.nl/verkooppunten
This page is the one that we switched to Bianca to make sure the locator is still working.

This is the page shown as it was before, duplicated to replicate the issue: https://horsefoodthebest.nl/verkooppunten-test
(Notice the extra "-test" at the end of the URL)

This page is still running the Cashmere template, as is the rest of the site.
On this page you can see the Store Locator somehow stops working.

Daniel
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Daniel

Your console is giving a warning of NoApiKeys from your Google maps component.

The script element that loads the API has no API key. Please make sure you include a valid API key as a key parameter. You can generate a new API key in the Cloud Console. 


For details on this topic may I suggest the following URL.. https://developers.google.com/maps/documentation/javascript/error-messages

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

Yes, we know about the error. But the issue does not lie there, we've checked about four times over.
The Store locator is handled by a component and in the settings of said component you insert the API key. This key has been properly acquired via the Google Console, and all the settings are correct.
After that, via a menu item, you can load in an interactive map, displaying locations which will show via Google Maps.

The problem is not related to the API key.
I know the error says it is, but if you go to the URL Google provides, and scroll down to the correlating error message this is also shown:

"If you are loading Maps JavaScript API from the deprecated v2 path, you will get the NoApiKeys warning, even if you specified the key parameter. Please check the v2 to v3 upgrade guide and migrate your application to Maps JavaScript API v3."

The site uses only 1 API key, and this one is definitely working, because:
If you check the URL https://horsefoodthebest.nl/verkooppunten, you can see that the Store Locator is working.
If you check the URL https://horsefoodthebest.nl/verkooppunten-test, you can see that it's suddenly not.

These pages both use the same settings, the same component and the same API key.
The only thing that's different is the template that they use.

We believe the issue lies somewhere in the JavaScript of the template, or something similar to that.
We've tried everything, from making a new API key, to reinstalling the Store Locator and changing all the settings.
But the only thing so far that has fixed it, is switching the page to a new template.

I still hope you can help us with this.

With kind regards,

Daniel
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Daniel

Admittedly it is very difficult for us to troubleshoot this from a template perspective as we are both unfamiliar with the extension and its requirements and there is no errors in the console log. Have you been in touch with the extension developer on this issue?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

I see. I've tried contacting the extensions developer, but to no avail. It seems he may have stopped developing it (and his other extensions, too). It seems to still work on certain Joomla 3 templates, but not on Joomla 4 templates anymore.

We will think about this and the right course of action, perhaps it is time to modernize the site and switch to a newer template, or a new store locator. :) Thank you for your time and help so far.

With kind regards,

Daniel
  1. more than a month ago
  2. Commercial Templates
  3. # 12
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.