OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: DanMc85 on September 17, 2020, 09:39:40 pm

Title: PHP Error phpDynDNS.inc
Post by: DanMc85 on September 17, 2020, 09:39:40 pm
PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 838

I've been seeing this problem detected a lot lately.
Title: Re: PHP Error phpDynDNS.inc
Post by: EFaden on September 18, 2020, 02:31:42 pm
Getting the same error myself
Title: Re: PHP Error phpDynDNS.inc
Post by: Fright on September 18, 2020, 04:01:22 pm
realy use Cloudflare w/API token v6?
Title: Re: PHP Error phpDynDNS.inc
Post by: EFaden on September 18, 2020, 06:39:44 pm
From my reading of the php it's the same pathway for v6 and non v6.  It's a single case.  I'm using cloudflare non v6.
Title: Re: PHP Error phpDynDNS.inc
Post by: Fright on September 18, 2020, 09:38:18 pm
I'm sorry, I saw. John Dewar speaks for me. I'd better try to see it tomorrow. Maybe the claudfire changed the api again?
Title: Re: PHP Error phpDynDNS.inc
Post by: Fright on September 19, 2020, 07:45:24 am
I apologize again
Try to enable Verbose logging.
Then you can see "message" part of server json response (which triggers error in line 838) in general log. In my test case its:
" UNKNOWN ERROR - Actor 'com.cloudflare.api.token.2c2a39724611f1aafakeapikeyb160' requires permission 'com.cloudflare.api.account.zone.list' to list zones"
but i have no configured zones in cloudflare. so your error may differ