Kindle Fire HD 7" screen width

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
danjackson
Posts: 5
Joined: Tue Aug 13, 2013 6:19 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Kindle Fire HD 7" screen width

Postby danjackson » Wed Oct 02, 2013 8:56 am

Hi,

We're using wurfl at ucl.ac.uk; we have a 'breakpoint' at 767px, and serve a different navigation / banner element to devices with resolution_width <767. However, we're seeing a couple of false-positives, e.g. using Chrome on 2012 Nexus 7 (Android 4.3) the smallscreen code is requested, even though resolution_width is >800 according to the following UA:
Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JWR66N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.64 Safari/537.36

Could you suggest what might be going on here?

Thanks

sriram
Posts: 161
Joined: Wed Jan 04, 2012 10:01 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Kindle Fire HD 7" screen width

Postby sriram » Wed Oct 02, 2013 9:02 am

Hi Dan,

What date of the WURFL.xml are you on? It is quite possible that the one you are on doesn't have the capability to resolve a Nexus 7 User Agent on Android 4.3.

BTW, was the title (Kindle Fire HD7) a typo?

Cheers!
Sriram Sridharan

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Kindle Fire HD 7" screen width

Postby sm_support2 » Wed Oct 02, 2013 9:12 am

danjackson wrote: using Chrome on 2012 Nexus 7 (Android 4.3) the smallscreen code is requested, even though resolution_width is >800 according to the following UA:
Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JWR66N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.64 Safari/537.36
If the capability is 800 and you compare against 767, then 800>767. Maybe a runaway '!' or 'NOT' ? are you using ENV variables? script to share?

Thanks

danjackson
Posts: 5
Joined: Tue Aug 13, 2013 6:19 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Kindle Fire HD 7" screen width

Postby danjackson » Wed Oct 02, 2013 11:07 am

Hi,

@sriram,
Yes, the title was a mistake - I started off thinking about the KIndle Fire HD, which is also looking wrong.

This is the version info from the XML file (we have the licensed InFuze Apache module):
db.scientiamobile.com - 2013-09-22 00:50:25
It contains a device entry for Nexus 7 on Android 4.3 (line 435396)

@sm_support2,
we're using fairly straightforward Apache SSI's at the moment, eg

<!--#if expr="${UCL_CONTENT_SIZE} != 'l'"-->
<!--#include file="includes/header-smallscreen-home.html" -->
<!--#else -->
<!--#include file="includes/header-desktop-home.html" -->
<!--#endif -->

...where 'l' equates to screen_width > 767px

Thanks

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Kindle Fire HD 7" screen width

Postby sm_support2 » Wed Oct 02, 2013 11:24 am

danjackson wrote:
<!--#if expr="${UCL_CONTENT_SIZE} != 'l'"-->
<!--#include file="includes/header-smallscreen-home.html" -->
<!--#else -->
<!--#include file="includes/header-desktop-home.html" -->
<!--#endif -->

...where 'l' equates to screen_width > 767px

Thanks
Dan, I am a bit perplexed about this. I am not an expert in the Apache expression language, but there must be a way to express, greter, greater or equal and the like...

Anyway, can you point us to the URL for your service? We will take a look later today. Can you tell us more about how the UCL_CONTENT_SIZE variable gets its value?


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: 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 1275: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 2 guests