Skip to Content Skip to Menu

Error uddeim.php on line 2826 help!

  • Vasilij30
  • Vasilij30
  • OFFLINE
  • Posts: 83
  • Thanks: 0
  • Karma: -4
9 years 7 months ago #262056 by Vasilij30
Error uddeim.php on line 2826 help! was created by Vasilij30
Installed uddeIM plugin 3,6 Community Builder: 2,0,7

log writes error Joomla

[Tue Apr 07 13:24:44.660340 2015] [:error] [pid 4905] [client 178.162.47.45:49889] PHP Strict Standards: Non-static method JFilterInput::clean() should not be called statically in /hosting/chat2400.ru/www/components/com_uddeim/uddeim.php on line 2826, referer: chat2400.ru/index.php/ru/
[Tue Apr 07 13:24:46.063348 2015] [:error] [pid 4873] [client 46.201.98.96:3242] PHP Strict Standards: Non-static method JFilterInput::clean() should not be called statically in /hosting/chat2400.ru/www/components/com_uddeim/uddeim.php on line 2826, referer: chat2400.ru/index.php/ru/


bold line in the script 2826


function uddeIMajaxGetNewMessages($myself, $config){
$db = uddeIMgetDatabase();

$input = trim( class_exists('JRequest') ? JRequest::getVar('value') : uddeIMmosGetParam($_REQUEST, 'value', '') );
if (function_exists('iconv'))
$input = iconv('UTF-8',$config->charset,$input);

if (class_exists('JFilterInput'))
$input = JFilterInput::clean($input, 'username');
else
$input = (string) preg_replace( '/[\x00-\x1F\x7F<>"\'%&]/', '', $input );

$sql="SELECT count(a.id) FROM #__uddeim AS a WHERE a.totrash=0 AND a.toread=0 AND a.toid=".(int)$myself;
$db->setQuery($sql);
$result=(int)$db->loadResult();
echo $result;
}

Please tell me what to do? The error log becomes large due to this error

Please Log in or Create an account to join the conversation.

  • Vasilij30
  • Vasilij30
  • OFFLINE
  • Posts: 83
  • Thanks: 0
  • Karma: -4
9 years 7 months ago #262057 by Vasilij30
Replied by Vasilij30 on topic Error uddeim.php on line 2826 help!
I tried to completely remove UddeIM and put on the new one, the error appears immediately!

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
9 years 7 months ago #262135 by slabbi
Replied by slabbi on topic Error uddeim.php on line 2826 help!
Please try following:

Change
function uddeIMajaxGetNewMessages($myself, $config){}
with following code
Code:
function uddeIMajaxGetNewMessages($myself, $config){ $db = uddeIMgetDatabase(); if (uddeIMcheckJversion()>=4) { $jinput = JFactory::getApplication()->input; $input = $jinput->get('value', '', 'USERNAME'); } else { $input = trim( class_exists('JRequest') ? JRequest::getVar('value') : uddeIMmosGetParam($_REQUEST, 'value', '') ); if (class_exists('JFilterInput')) $input = JFilterInput::clean($input, 'username'); else $input = (string) preg_replace( '/[\x00-\x1F\x7F<>"\'%&]/', '', $input ); } if (function_exists('iconv')) $input = iconv('UTF-8',$config->charset,$input); $sql="SELECT count(a.id) FROM #__uddeim AS a WHERE a.totrash=0 AND a.toread=0 AND a.toid=".(int)$myself; $db->setQuery($sql); $result=(int)$db->loadResult(); echo $result; }

Does this work for you?

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum