#wordpress 2021-01-02

2021-01-02 UTC
gRegorLove, [KevinMarks], [jeremycherfas], nickodd, [tw2113_Slack_] and [chrisaldrich] joined the channel
#
GWG
[chrisaldrich]: Going to try the Location update?
#
[chrisaldrich]
I've been waiting for the notification since 8:49...
#
[chrisaldrich]
Uh oh.. lots of php errors throwing from the Weather Near Me widget with the Update GWG
#
GWG
[chrisaldrich]: That's strange..I tested the new code. Can you paste what it shows into an issue and I'll go fix it?
#
GWG
It isn't throwing any errors on my sites, so I need to determine why
#
GWG
I'll try to fix it now. Unsure what is going on there, as I am running those same widgets.
#
GWG
Can't reproduce it, but I added some code to check for it and output the error.
#
GWG
[chrisaldrich]: Can you try the commit I just sent to Github and tell me what happens?
#
GWG
It should output the string that isn't an array, which should tell me why it is failing.
#
[chrisaldrich]
just a sec...
#
[chrisaldrich]
php errors have disappeared with that tweak, but the widget also isn't showing anything (though the last may be some errant settings on my part...)
#
GWG
It means that the weather returned is an empty string
#
GWG
Which weather provider is it?
#
GWG
I hate thinking I broke someone's widget
#
[chrisaldrich]
I've tried Open Weather with National Weather as a fall back and vice versa... nothing displays either way
#
GWG
Odd
#
GWG
Can you try the regular one that lets you fill in your location?
jeremy joined the channel
#
[chrisaldrich]
maybe the lack of display was in the settings? I just switched the widget to use my user profile and put in a location in the profile and I'm getting data now.
#
GWG
What w
#
GWG
What was it set for prior?
#
Loqi
It looks like we don't have a page for "it set for prior" yet. Would you like to create it? (Or just say "it set for prior is ____", a sentence describing the term)
#
[chrisaldrich]
before it was set in the widget for "none" and had the lat/lon were set there instead
#
GWG
I'll check that. Can you privately send me the coordinates?
#
[chrisaldrich]
GWG, it looks like the Last Reported Location in the User Profile settings isn't saving the Time Zone.
#
GWG
Yes, user profiles don't have timezones. See issue 160
#
GWG
But is that why your sunrise and sunset times are malfunctioning?
#
GWG
I just ran your coordinates into my test site.
#
GWG
On the debugger, no issue
#
[chrisaldrich]
I just checked and the sunrise/sunset seem to be back to normal
#
GWG
Interesting
#
GWG
Are you setting the cache time on the widget?
#
[chrisaldrich]
I temporarily set the cache to 0
#
[chrisaldrich]
usually I leave it at 300
#
GWG
Wonder if the cache isn't working as expected
#
GWG
300 is usually good enough.
#
GWG
By the way, the query string for turning everything celsius is ?sloc_units=si or pretty much anything but =imperial
#
[chrisaldrich]
I'm noticing the checkbox for astronomical data on the weather widget doesn't appear to work... checking it does nothing...
#
GWG
Odd. They all use the same code. Let me look at why
#
GWG
Nope, just checked/unchecked it
#
GWG
something odd is going on there
#
GWG
I need a third user to weigh in
[tantek] joined the channel; nickodd left the channel