Security flaw

dryabov
12 years, 10 months ago
You should apply the patch to plugins/mobile/terawurfl/terawurfl.php
dryabov
12 years, 10 months ago
Anyway, reported bug means that TeraWurfl cannot connect to database using mysqli library, so the patch allows you to hide warnings in this case, and not to solve the reason of connection problem.

I'd recommend you to patch TeraWurflDatabase_MySQL5.php to log errors:
 
if(mysqli_connect_errno()){
$this->errors[]=mysqli_connect_error();
$this->connected = mysqli_connect_errno();
/* new */   error_log('TeraWurfl error #'.mysqli_connect_errno().': '.mysqli_connect_error());
return false;
}
 

And then watch for new messages in error_log.
psychmartianmuntopia
12 years, 10 months ago
sorry for my newbie ways in this : the terawurfl.php file i have on my server is nothing close to the one you have patched there, and when i do replace the code in terawurfl i get a totally different error the mobile site doesn't even load.... i also can't find the function

 
function onDeviceDetection(&$MobileJoomla_Settings, &$MobileJoomla_Device)
 
psychmartianmuntopia
12 years, 10 months ago
Thanks let me try this
2

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.