OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Wol widget error after Update to 19.1.5
« previous next »
  • Print
Pages: [1]

Author Topic: Wol widget error after Update to 19.1.5  (Read 5761 times)

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 25
    • View Profile
Wol widget error after Update to 19.1.5
« on: April 05, 2019, 05:27:50 pm »
05-Apr-2019 17:05:18 Europe/Vienna] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/www/widgets/widgets/wake_on_lan.widget.php on line 64

Reinstallation chnged nothing
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #1 on: April 05, 2019, 06:15:37 pm »
PHP 7.2 runtime error I guess. Hard to catch.

https://github.com/opnsense/plugins/commit/588ceb595

# opnsense-patch -c plugins 588ceb595


Thanks,
Franco
« Last Edit: April 05, 2019, 08:00:43 pm by franco »
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 25
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #2 on: April 05, 2019, 07:31:28 pm »
this works for me:
Code: [Select]
opnsense-patch -c plugins 588ceb595
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #3 on: April 05, 2019, 08:00:57 pm »
Yes, nice catch. Fixed the original post.
Logged

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #4 on: April 06, 2019, 01:13:36 am »
Quote from: franco on April 05, 2019, 08:00:57 pm
Yes, nice catch. Fixed the original post.

Seeing the same with DynDNS:
[05-Apr-2019 19:05:22 America/New_York] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 754
Logged

AhnHEL

  • Newbie
  • *
  • Posts: 31
  • Karma: 3
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #5 on: April 07, 2019, 06:26:34 am »
I use Namecheap for my DynDNS and I'm not seeing a widget error like yours @DanMc85
Logged
AhnHEL (Angel)
NYC

4 sites: OPNsense 23.1_6-amd64
Dell R220, Xeon E3-1240v3, 16GB RAM, 940/880 Mbps, Intel I350-T4
Dell R210II, Xeon E3-1240v2, 8GB RAM, 940/880 Mbps, I350-T2
Dell R210II, Xeon E3-1220, 8GB RAM, 200/35 Mbps, I350-T2
Dell 7010SFF, i5-3570, 16GB RAM, 200/35 Mbps, I350-T2

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #6 on: April 07, 2019, 10:24:08 am »
@DanMc85

https://github.com/opnsense/plugins/commit/993562ab19

# opnsense-patch -c plugins 993562ab19

Looks like this is only for Cloudflare.


Cheers,
Franco
Logged

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #7 on: April 10, 2019, 08:15:24 pm »
Hi there, thanks @opnsenseuser for submitting this & @franco for patching WOL.
However there are more problems as I discovered, Have submitted my crash report.
Goodluck @franco fixing them, I owe you one  8)
Thanks mark
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #8 on: April 11, 2019, 04:06:54 pm »
Hi mark,

19.1.6 is out addressing most and disabling warnings for now. Kinda unfortunate, but it is what it is.


Thanks,
Franco
Logged

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #9 on: April 13, 2019, 04:28:27 pm »
Quote from: franco on April 11, 2019, 04:06:54 pm
Hi mark,

19.1.6 is out addressing most and disabling warnings for now. Kinda unfortunate, but it is what it is.


Thanks,
Franco

Hey Franco, is this related to this?

Error at /usr/local/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php:137 - count(): Parameter must be an array or an object that implements Countable (errno=2)

Error shows up in 19.1.6 when going to Services - > Intrusion Detection -> Administration -> Rules Tab.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #10 on: April 14, 2019, 10:10:02 am »
It is. There was supposed to be a fix in there, but it doesn't seem complete. The whole handling of count() and its new warning seems a little out of touch since we've had warnings for years (PHP 5.6 to 7.0 to 7.1). I'll take a look.


Cheers,
Franco
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #11 on: April 14, 2019, 10:32:20 am »
No, I can't reproduce this on 19.1.6 -- not with empty rules, not with one, not with many. What am I missing?


Cheers,
Franco
Logged

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #12 on: April 14, 2019, 07:54:42 pm »
Quote from: franco on April 14, 2019, 10:32:20 am
No, I can't reproduce this on 19.1.6 -- not with empty rules, not with one, not with many. What am I missing?


Cheers,
Franco

I am not sure... I also have the A Problem Has Been Detected pop-up on the dashboard with this:

[13-Apr-2019 10:26:32 America/New_York] Exception: Error at /usr/local/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php:137 - count(): Parameter must be an array or an object that implements Countable (errno=2) in /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiControllerBase.php:85
Stack trace:
#0 [internal function]: OPNsense\Base\ApiControllerBase->APIErrorHandler(2, 'count(): Parame...', '/usr/local/opns...', 137, Array)
#1 /usr/local/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php(137): count(Array)
#2 [internal function]: OPNsense\IDS\Api\SettingsController->searchInstalledRulesAction()
#3 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(OPNsense\IDS\Api\SettingsController), 'searchinstalled...', Array)
#4 [internal function]: Phalcon\Dispatcher->dispatch()
#5 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle()
#6 {main}


Also, I am using these if it makes a difference:

os-etpro-telemetry (installed)   1.3_1   42.5KiB   ET Pro Telemetry Edition

et_telemetry.token:  *******
snort_vrt.oinkcode: *******
snort_vrt.rulesfile: snortrules-snapshot-2990.tar.gz
« Last Edit: April 14, 2019, 08:01:05 pm by DanMc85 »
Logged

fjtrooper

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
    • View Profile
Re: Wol widget error after Update to 19.1.5
« Reply #13 on: May 04, 2019, 10:57:30 am »
Hello, I've the same problem.
I have two Opnsense servers, and one of them has the error but the other not.
The only difference is that the one doesn't have the error message was upgraded from 19.1.4 to 19.1.5, and later to 19.1.6.
The server with the error message was upgraded directly from 19.1.4 to 19.1.6.
After upgrading to 19.1.7, the error message continues.

Thanks!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Wol widget error after Update to 19.1.5
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2