Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error of type E_ERROR was caused in line 714 of the file DataUnitConversion.php #37

Open
grego-b opened this issue Aug 26, 2023 · 0 comments
Assignees
Labels
first time contributor Issue or PR opened by a first-time contributor to the repository [Needs] Further research [Type] Bug Something isn't working
Milestone

Comments

@grego-b
Copy link

grego-b commented Aug 26, 2023

An error of type E_ERROR was caused in line 714 of the file /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php. Error message: Uncaught ArgumentCountError: is_numeric() expects exactly 1 argument, 0 given in /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php:714
Stack trace:
#0 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataUnitConversion.php(714): is_numeric()
#1 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataOutput.php(9321): WeatherStation\UI\Station\Handling->get_wind_angle()
#2 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/traits/DataOutput.php(13278): WeatherStation\UI\Station\Handling->output_value()
#3 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/classes/StationHelper.php(737): WeatherStation\UI\Station\Handling->get_all_formated_datas()
#4 /home/gregobru/public_html/wp-content/plugins/live-weather-station/includes/classes/StationHelper.php(553): WeatherStation\UI\Station\Handling->add_metaboxes()
#5 /home/gregobru/public_html/wp-includes/class-wp-hook.php(310): WeatherStation\UI\Station\Handling->station_add_options()
#6 /home/gregobru/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 /home/gregobru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /home/gregobru/public_html/wp-admin/admin.php(237): do_action()
#9 {main}
thrown

Using Wordpress 6.3 and local file realtime.txt created by weewx via weewx-crt
Suspect the issue is that weather station is expecting an int but receiving a string but I'm unable to determine where this data is originating

@jaz-on jaz-on added this to the 3.8.15 milestone Sep 6, 2023
@jaz-on jaz-on self-assigned this Sep 6, 2023
@jaz-on jaz-on added [Type] Bug Something isn't working first time contributor Issue or PR opened by a first-time contributor to the repository [Needs] Testing [Needs] Further research and removed [Needs] Testing labels Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first time contributor Issue or PR opened by a first-time contributor to the repository [Needs] Further research [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants