BUG report: TeraWurfl.php, line 160

Installing and configuring Tera-WURFL on your server.

BUG report: TeraWurfl.php, line 160

Postby leecher » Thu Jul 22, 2010 8:38 am

I've changed the access property of the method getDeviceIDFromUALoose from protected to public, to get easily the wurfl_id. Unfortinetly, now everything dies on

$this->db->tablename = $this->fullTableName() with
Fatal error: Call to a member function tableSuffix() on a non-object in /home/admin/sites/mg.dev.com/htdocs/embed/tera_wurfl/TeraWurfl.php on line 434
leecher
 
Posts: 9
Joined: Wed Jul 14, 2010 6:10 am

Re: BUG report: TeraWurfl.php, line 160

Postby kamermans » Thu Jul 22, 2010 1:23 pm

I guess that's why it's a protected method :) There are some other function calls that need to be made before you can call that function directly. You may want to take a look at the getDeviceCapabilitiesFromAgent() method to see what gets called before getDeviceIDFromUALoose(). There is some setup that occurs prior to that call.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: BUG report: TeraWurfl.php, line 160

Postby leecher » Fri Jul 23, 2010 5:37 am

You are right :)
I changed the get for cycle in the getDeviceCapability to get it like a normal capability :)
leecher
 
Posts: 9
Joined: Wed Jul 14, 2010 6:10 am


Return to Installation / Configuration

Who is online

Users browsing this forum: No registered users and 2 guests

cron