Community Support

Win10 IIS errors, connections or ?? Need some help getting it all working!!  

  RSS
WC2L
 WC2L
(@wc2l)
Active Member

I'm new to WordPress (5.61), PHP (8.0.1), MySQL(8.0.23) and of course Weather Station (3.8.9).. 
Running this on a Windows 10 Pro PC with an IIS server.. 
Hopefully someone could help me figure out what I am doing wrong. I thought I had it all working, but it is biting me the butt.

When I got to add my weather station using realtime.txt, I get the following messgae:
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\DBStorage.php:1886
Stack trace:
#0 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\DBStorage.php(1886): implode()
#1 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\RealtimePluginStationClient.php(467): WeatherStation\SDK\Realtime\Plugin\StationInitiator->clean_realtime_from_table()
#2 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\RealtimePluginStationClient.php(477): WeatherStation\SDK\Realtime\Plugin\StationInitiator->synchronize_station()
#3 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\RealtimePluginStationClient.php(502): WeatherStation\SDK\Realtime\Plugin\StationInitiator->get_and_store_data()
#4 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\classes\WeatherCurrentRealtimeStationInitiator.php(38): WeatherStation\SDK\Realtime\Plugin\StationInitiator->__run()
#5 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\admin\SystemPluginAdmin.php(2942): WeatherStation\SDK\Realtime\Plugin\StationInitiator->run()
#6 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\admin\SystemPluginAdmin.php(4069): WeatherStation\System\Plugin\Admin->get_real()
#7 D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\admin\SystemPluginAdmin.php(1822): WeatherStation\System\Plugin\Admin->add_real()
#8 D:\inetpub\wwwroot\weather\wp-includes\class-wp-hook.php(287): WeatherStation\System\Plugin\Admin->lws_load_admin_page()
#9 D:\inetpub\wwwroot\weather\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters()
#10 D:\inetpub\wwwroot\weather\wp-includes\plugin.php(484): WP_Hook->do_action()
#11 D:\inetpub\wwwroot\weather\wp-admin\admin.php(259): do_action()
#12 {main}
thrown in D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\DBStorage.php on line 1886

When I look at stations, I see my station, but it tells : 
There is currently no data collected for this station and, for this reason, it is not possible to generate shortcodes. This is normally a temporary condition so, please, retry later or force a resynchronization.
If I look in the inetpub\wwwroot\weather\wp-content\plugins\live-weather-station dierctory, I have a realtime.txt file with the data in it. 

If I open the IIS Manager and go to the weather and browse http://localhost/weather/   I get this error:
PHP Warning: Undefined array key 1 in D:\inetpub\wwwroot\weather\wp-content\plugins\live-weather-station\includes\traits\DBQuery.php on line 708
(looks like it refers to inside data). 
protected function get_indoor_datas($_id, $obsolescence_filtering=false) {
     $a = explode ('-', $_id);
     $device_id = $a[0];
     $module_id = $a[1];
     return $this->get_module_datas($module_id, $obsolescence_filtering);

 

Appreciate any help and suggestions.. 
TNX Will WC2L 

Quote
Posted : 07/02/2021 3:31 am

To participate, please connect first!