You are allowed to make 2500 request to the Geocode API per day, so if he sees the ‘You have reached the daily allowed geocoding limit’ error, then this is what happened.
This limit is set by IP, so if he is on a shared host, and other users happen to use the Geocode API as well, then you will quickly reach the limit.
The limit is reset every 24hrs, so it should only be a matter of time before it works again.
But this doesn’t explain why you can’t replicate it, and he still has an issue. Can you share the address that he uses when it keeps failing. Maybe the Geocode API returns a weird response for that particular address, and that triggers the foreach error.
That error shouldn’t happen in the first place, I will fix that in the next update.
Thanks for your quick reply. I will get the IP from my client.
With ‘address’ I mean the street address he uses when he creates the location and is shown the geocode error, not the IP.
The error does not seem to relate to the physical address of the store. The client tried three different times and received the error three times.
As a test, I logged in with the client’s credentials and I received the geocoding limit error. However I was able to publish the test store even with the error.
Could there be a WordPress permission issue at work? I ask this as I got an error logged in as the client, but not with my own account, using the same computer both times. We are both Administrators.
How much time was there between you trying it with your own credentials, and the clients credentials?
I think it was a two or three days.
Sorry for the late response.
I ask this as I got an error logged in as the client, but not with my own account, using the same computer both times. We are both Administrators.
If you logged in with two different account, but waited two or three days, then the 2500 Geocode limit is reset again ( this happens every 24hrs ). So whether or not you get the “You have reached the daily allowed geocoding limit…” says nothing about the account itself. It’s just that the other sites hosted on the ( I assume ) shared IP haven’t made more then 2500 geocode request to Google that day.
This however doesn’t explain this error.
PHP Warning: Invalid argument supplied for foreach()
Can you check the error log, and see if there are more?
Thanks Tijmen for working on this with me.
I don’t see any more errors in the log. I logged in as the client again this morning and had no problems adding a new store. So things seem to have fixed themselves for now 😉
I will let you know if the issue comes back.
Many thanks for your great support!