Minor compilation warning work-around

Wink setup, hardware, basic programming. User to user support.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
wclift
Posts: 32
Joined: Sun Feb 07, 2016 6:10 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Minor compilation warning work-around

Postby wclift » Sat Feb 27, 2016 11:18 pm


User avatar
sil
Posts: 40
Joined: Thu Oct 01, 2015 1:04 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Minor compilation warning work-around

Postby sil » Tue Mar 01, 2016 12:14 am

I can't confirm for the Wink

I have installed:
Wink_PreLoadedDemo_Rev01 Version 1.0 12/2015
Wink_BaseSketch_Rev01_02 Version 1.2 12/2015

and can't find irData in any files in those sketchbooks.



However what you describe IS in the Ringo default behaviours rev 06 01 in the ringohrdware.h nclude:

Ringo Robot: RingoHardware Rev01.02 12/2015


And yes your replacement does remove that warning, but there are other warnings already there too so I wont keep the change in place. Are you sure you haven't included the ringohardware.h include in your Wink sketchbook? it shouldn't be there, though there is a download package common to both robots that Wink only owners need to download so maybe a little confusion there? Anyway, as you say, its just a warning, not a worry.

wclift
Posts: 32
Joined: Sun Feb 07, 2016 6:10 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Minor compilation warning work-around

Postby wclift » Fri Mar 04, 2016 2:19 am


User avatar
sil
Posts: 40
Joined: Thu Oct 01, 2015 1:04 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Minor compilation warning work-around

Postby sil » Fri Mar 04, 2016 5:23 am

If nothing else its a learning point you can explain to the kids your process of troubleshooting and maybe have a printout close at hand for future warnings or errors that might come up related to your fix, if any. Its all part of learning experience :)

wclift
Posts: 32
Joined: Sun Feb 07, 2016 6:10 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Minor compilation warning work-around

Postby wclift » Tue Mar 22, 2016 5:52 am


alb4h
Posts: 2
Joined: Mon Mar 21, 2016 11:34 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Minor compilation warning work-around

Postby alb4h » Thu Mar 24, 2016 11:00 am



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 27 guests