Page 1 of 1

After recent update, I get memory related error

PostPosted: Thu Jun 16, 2011 10:38 pm
by emaillenin
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?

Re: After recent update, I get memory related error

PostPosted: Thu Jun 16, 2011 10:57 pm
by kamermans
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.

Re: After recent update, I get memory related error

PostPosted: Fri Jun 17, 2011 2:12 am
by emaillenin
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

Re: After recent update, I get memory related error

PostPosted: Fri Jun 17, 2011 5:14 am
by emaillenin
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