You should apply the patch to plugins/mobile/terawurfl/terawurfl.php
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:
And then watch for new messages in error_log.
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.
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)
Thanks let me try this