I have an error in admin/settings/wurfl/test page:
Fatal error: Call to a member function getDeviceForHttpRequest() on a non-object in C:\xampp\htdocs\test.ru\sites\all\modules\contrib\wurfl\wurfl.module on line 99
WURFL work well in sites/all/modules/contrib/wurfl/lib/examples/demo/ - i have seen parameters of my browser and web-worm bellow.
And i have patched this module with http://drupal.org/node/895434
Thanks!
Comments
Comment #1
neibo commented>>and web-worm bellow
"and web-Form bellow" i mean of course.
Comment #2
paera commentedI got the same error.
My workaround to this was to change the variable key name from 'wurfl_library' to 'wurfl_data_path' on line 80 in the wurfl.module file.
Comment #3
twom commentedThe 6.x-1.x-dev version just got upgraded. The wurfl library is better detected, and I added some extra checks to help you in debugging.
Let me know if you are having more problems,
twom
Comment #5
tfranz commentedI've the same error using 6.x-1.x-dev and Mobile Tools 6.x-1.12.
oh ... my fault ... :-(
RTFM
Forgot to install the WURFL-Api – sorry for my needless comment
Comment #6
tfranz commentedComment #7
bdornbush commentedI wanted to install WURFL as part of trying mobile_tools. When I downloaded and enabled these modules, and then selected admin/settings/mobile-tools/ext, and selected Device detection module: Wurfl, I got this white screen error message. I had not installed the Wurfl API, which was my fault, but working through the INSTALL.txt instructions didn't work for me. I had to work through how to successfully install the library. I did this by trying one thing, reading the error message, and trying the next. Since it was a bit tedious, I thought I would post the steps I took to perhaps save some others the same fate:
1. Download and install WURFL module, like any other Drupal module
2. Download the wurfl-php library from http://sourceforge.net/projects/wurfl/files/ Click WURFL PHP. Click the version number. Download the latest version files. Mine was wurfl-php-1.3.1.tar.gz.
3. Upload to sites/all/libraries and un-tar. You will now have a directory sites/all/libraries/wurfl-php-1.3.1/ Rename to sites/all/libraries/wurfl/
4. Add two subdirectories sites/all/libraries/wurfl/cache/ and sites/all/libraries/wurfl/resources/
5. Download from http://sourceforge.net/projects/wurfl/files/WURFL/ Select the latest version, mine was 2.2. Download wurfl-2.2.zip.
6. Upload the zip file to sites/all/libraries/wurfl/resources. The install.txt file says to upload the wurfl.xml file, but my installation wanted it inside the .zip file.
7. From this same files/WURFL/2.2 directory, download web_browsers_patch.xml and upload it to sites/all/libraries/wurfl/resources/
8. Copy sites/all/libraries/wurfl/examples/resources/wurfl-config.xml to sites/all/libraries/wurfl/resources/wurfl-config.xml
9. Add directory sites/all/libraries/wurfl/resources/storage/persistence/
I don't actually know if WURFL is working, but I know that the white screen error messages are gone now.
Comment #8
bdornbush commentedMy prior post didn't work on all devices. Specifically, it didn't work on a Nook rooted to run Android. Any suggestions on what needs fixed?
Update: I have both libraries/wurfl/resources/wurfl.xml and wurfl.zip in place, and now it seems to work for two different Android devices as well as my desktop, Windows Vista.