[solved] Incorrect device information

Can you add this device?
Streamlike
Posts: 4
Joined: Wed Jun 27, 2012 5:59 am
Location: Paris, fr

[solved] Incorrect device information

Postby Streamlike » Wed Jun 27, 2012 6:01 am

Hi,

Mac OSX 10.8, Firefox 3.6.28 user agent is
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28

In wurfl database it appears as a Nokia N810 one.

Please can you correct ?

Regards,
AS
Last edited by Streamlike on Thu Jun 28, 2012 8:45 am, edited 1 time in total.

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: Incorrect device information

Postby sm_support2 » Wed Jun 27, 2012 6:32 am

we are not observing the behavior you describe:

http://tools.scientiamobile.com/?user-a ... x%2F3.6.28

Can you please provide exact spec of the WURFL API (version and platform) and WURFL repository (wurfl.xml) that you are using?

Thanks

Streamlike
Posts: 4
Joined: Wed Jun 27, 2012 5:59 am
Location: Paris, fr

Re: Incorrect device information

Postby Streamlike » Wed Jun 27, 2012 7:00 am

wurfl repo:
<ver>db.scientiamobile.com - 2012-06-17 00:00:01</ver>
<last_updated>Sun Jun 17 00:02:06 -0400 2012</last_updated>

API : PHP on debian Squeeze.
How to obtain version please ?

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: Incorrect device information

Postby kamermans » Wed Jun 27, 2012 9:43 am

The WURFL version is up-to-date, but I suspect your PHP WURFL API version is not. Can you find out what version you are using and/or download the latest version of the API from wurfl.sourceforge.net please?
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

Streamlike
Posts: 4
Joined: Wed Jun 27, 2012 5:59 am
Location: Paris, fr

Re: Incorrect device information

Postby Streamlike » Wed Jun 27, 2012 10:07 am

Sorry, my question was : how to get version of my actual php api please ?
I find nothing in code/readme.
I just know it dates from Thu Aug 25 12:51:21 2011 in our git repository (issued from a sourceforge public download)

Downloading the latest one may fix the problem, but needs some days of integration/QA to test our entire process.
By the way, I cannot upgrade until the next release of our product ...

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: Incorrect device information

Postby kamermans » Wed Jun 27, 2012 10:18 am

The API version is in the file WURFL/Constants.php - you should see a line like this:

Code: Select all

const API_VERSION = "1.4.0";
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

Streamlike
Posts: 4
Joined: Wed Jun 27, 2012 5:59 am
Location: Paris, fr

Re: Incorrect device information

Postby Streamlike » Thu Jun 28, 2012 2:08 am

>>>>The API version is in the file WURFL/Constants.php - you should see a line like this:
I hoped so but this is not the case (see below)

>>>> ... but I suspect your PHP WURFL API version is not ...
I tried to upgrade my 10 month old api version, some of the functions I use were no more available, i dismissed.
Like this not pretty one:
Fatal error: Call to undefined method WURFL_CustomDevice::getIsMobile() in ...

-> could you point me to a changelog including release dates, new functionnalities & regressions please ?



class WURFL_Constants {

private function __construct(){}

/**
* @var string WURFL 'generic' device id
*/
const GENERIC = "generic";
/**
* @var string WURFL 'generic_xhtml' device id
*/
const GENERIC_XHTML = "generic_xhtml";

const ACCEPT_HEADER_VND_WAP_XHTML_XML = "application/vnd.wap.xhtml+xml";
const ACCEPT_HEADER_XHTML_XML = "application/xhtml+xml";
const ACCEPT_HEADER_TEXT_HTML = "application/text+html";

const UA = "UA";

const MEMCACHE = "memcache";
const APC = "apc";
const FILE = "file";
const NULL_CACHE = "null";
const EACCELERATOR = "eaccelerator";
const SQLITE = "sqlite";
const MYSQL = "mysql";
}

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: Incorrect device information

Postby sm_support2 » Thu Jun 28, 2012 7:29 am

You must be on a very old version of the API. We strongly suggest that you upgrade to the latest one (1.4). Support is one side of it, but the other is that you are missing on over one year updates in enhanced matching heuristics (covering iOS, Android and Windows Phone, among others)

We will assist you with any issues you encounter, of course.

Thanks

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: [solved] Incorrect device information

Postby kamermans » Thu Jun 28, 2012 10:08 am

Indeed, this must be version 1.3.x of the API or older. The changelog is included with the distribution as CHANGELOG.txt, but I'll paste it here for easy access:

Code: Select all

WURFL PHP API change log:

[2012.04.07] 1.4.1
- Bugfix: invalid definition of WURFL_Storage::save()
- Bugfix: Chrome Beta on Android is not detected properly
- Bugfix: Invalid system temp dir returned from sys_get_temp_dir()

[2012.03.30] 1.4.0
- Complete overhaul of all User Agent Handlers
- Improved normalizers
- Added High-Performance vs. High-Accuracy mode
- Added Introspector utility for diagnostics
- Massive code and documentation cleanup
- Added "Secondary Caching" to persistence providers, so memcache and APC can be used
    to improve performance of lookups to the persistence provider
- Refactored examples for simplicity
- Changed recommended configuration from XML Config to InMemory config
- Removed the web patch, as it is now integrated with the main WURFL file

[2011.07.19] 1.3.1
- Enabled displaying errors in example script
- Updated default wurfl.xml
- Added manual lookup script
- Fixed bug with auto-loading WURFL failure on Solaris (EX flock on RO file failed)
- Improved detection of Tablet PC devices
- Improved detection of Android 2.3 - 3.0 devices

[2011.05.14] 1.3.0
- Documented all classes
- Improved Exceptions
- Bugfix: ArrayConfig can now use relative config file pathnames
- Updated unit tests and phing build file

[2010.10.05]
- Added Storage to replace (Persistence & Cache)
- Added NameSpace support for Memcache and Apc
- Added Normalizers for
    - Locale
    - SerialNumbers
    - Maemo
- Added Handler
    - MaemoHandler
- Added Support For Multiple Memcache backend


[2010.05.06]
- Replaced WURFLManagerProvider with WURFLManagerFactory
- Autoreloading Added


[2009.06.01]
- Configuration:
	- Changed the "persistance" to "persistence" (N.B a to e) in wurfl-config.xml
	- Added Possibilty to specify configuration from an array.(array-wurfl-config.php)
- Normalizers
	- Added
		- Android
		- Chrome
		- Opera
		- Safari
		- MSIE	
- Handlers
	- Added 
		- AndroidHandler
		- ChromeHandler
		- BotCrawlerTranscoderHandler		
- Logger
	- Removed dependency from the PEAR Log
	- Added Custom Logger
- WURFLLoader
	- Added A WURFLReloader 
- Created a new web_browsers_patch			

[2010-06-16]
Added Caching expiration capability
Fatal error: Call to undefined method WURFL_CustomDevice::getIsMobile() in ...
I don't see any record of WURFL_CustomDevice having a public static method "getIsMobile()", so perhaps this class was edited on your side. The correct way to check if the device is mobile is like this:

Code: Select all

$requestingDevice = $wurflManager->getDeviceForHttpRequest($_SERVER);
$is_mobile = $requestingDevice->getCapability('is_wireless_device');
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 8 guests