After recent update, I get memory related error

Integrating Tera-WURFL in your applications.

After recent update, I get memory related error

Postby emaillenin » Thu Jun 16, 2011 10:38 pm

I tried to update Tera-Wurfl to 2.1.4 from 2.1.3 through online method. I dont know if the update was successful, but the connection got timed out.

Now, when I try to access my site from my mobile (Symbian, Nokia 5800 XpressMusic), I get the following error.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/..mypath..../Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MYSQL5.php on line 149


The site works fine from Opera Mobile from the same mobile and from my PC. I have tried clearing cache, cookies etc in the Symbian browser, still experiencing the same issue.

Any help?
emaillenin
 
Posts: 5
Joined: Thu Feb 03, 2011 7:50 am

Re: After recent update, I get memory related error

Postby kamermans » Thu Jun 16, 2011 10:57 pm

This is typically due to a memory leak in 2.1.4 with SimpleXML. I would highly recommend version 2.1.5 as it requires much less memory. Another option would be to use the WURFL Customizer to reduce the size of your wurfl.xml.

Either way, you will need to reload the WURFL data if this process failed the first time.
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: After recent update, I get memory related error

Postby emaillenin » Fri Jun 17, 2011 2:12 am

I did some debugging and found that, the following user agent alone is causing the problem.

Mozilla/5.0 (SymbianOS/9.4; U; Series60/5.0 Nokia5800d-1/21.0.025; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

I am using Firefox and User agent switcher and found that the site loads properly for all the other agents except for the above one.

Give me sometime. I will update it to 2.1.5 and check.

Thanks
emaillenin
 
Posts: 5
Joined: Thu Feb 03, 2011 7:50 am

Re: After recent update, I get memory related error

Postby emaillenin » Fri Jun 17, 2011 5:14 am

Updated my Tera-WURFL to 2.1.5 and wurfl.xml to (db.scientiamobile.com - 2011-06-16 12:51:18)

Now everything is working super smooth.

Thanks Steve :D
emaillenin
 
Posts: 5
Joined: Thu Feb 03, 2011 7:50 am


Return to Using Tera-WURFL

Who is online

Users browsing this forum: No registered users and 2 guests

cron