×
Kunena 5.2 RC3 Released (29 Nov 2020)

The Kunena team is thrilled to announce the third public release candidate of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 RC3 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

Question [beendet] php error in persönliche Infos

More
11 years 8 months ago - 11 years 8 months ago #1 by mraab
Wenn ich mir das Profil von Kunena Nutzern ansehen möchte, dann bekomme ich die folgenden Fehler:



Kunena 1.0.8
Joomla 1.5.9

Ist der Fehler bekannt oder schon behoben?
Matthias

Deutsche in Melbourne | Deutsche in Perth |
Deutsche in Brisbane |
Attachments:
Last edit: 11 years 8 months ago by Lintzy.

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

More
11 years 8 months ago - 11 years 8 months ago #2 by Lintzy
Das steht in Zeile 1296 der class.kunena.php:

function mb_convert_encoding($text,$target_encoding,$source_encoding) {
    return $text;}

Es hat irgendetwas mit Umlauten zu tun. Und ser Funktion mb_convert_encoding

Lies mal hier: Multibyte muss in der php.ini enabled sein. Aber das sind jetzt von mir Mutmaßungen, bin kein PHP-Crack.

Sieh dir mal deine PHP.info an (im Joomla Backend unter Hilfe /Systeminfo) und frag deinen Hoster wegen mbstring.


Siehe auch hier:
www.kunena.com/forum?func=view&id=5506&catid=4#5506
Last edit: 11 years 8 months ago by Lintzy.

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

More
11 years 8 months ago #3 by Lintzy
Gibt es nun eine Lösung des Problems?

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

More
11 years 6 months ago #4 by mraab
Habe den Fehler mit Hilfe von Matias gefunden:
if (!function_exists('mb_detect_encoding')) {
  // We're on an aged PHP version
  function mb_detect_encoding($text) {
    return 'UTF-8';
  }
  function mb_convert_encoding($text,$target_encoding,$source_encoding) {
    return $text;
  }
}

muss ersetzt werden mit:
if (!function_exists('mb_detect_encoding')) {
 
  function mb_detect_encoding($text) {
$c=0; $b=0;
$bits=0;
$len=strlen($text);
for($i=0; $i<$len; $i++){
$c=ord($text[$i]);
if($c > 128){
if(($c >= 254)) return 'ISO-8859-1';
elseif($c >= 252) $bits=6;
elseif($c >= 248) $bits=5;
elseif($c >= 240) $bits=4;
elseif($c >= 224) $bits=3;
elseif($c >= 192) $bits=2;
else return 'ISO-8859-1';
if(($i+$bits) > $len) return 'ISO-8859-1';
while($bits > 1){
$i++;
$b=ord($text[$i]);
if($b < 128 || $b > 191) return 'ISO-8859-1';
$bits--;
}
}
}
return 'UTF-8';
 
  }
 
}
if (!function_exists('mb_convert_encoding')) {
 
  function mb_convert_encoding($text,$target_encoding,$source_encoding=NULL) {
 
return $text;
 
  }
}
if (!function_exists('mb_substr')) {
 
  function mb_substr($str, $start, $lenght=NULL, $encoding=NULL) {
if ($lenght===NULL) $lenght = strlen($str);
return substr($str, $start, $lenght);
  }
 
}

und alles läuft wieder wie geschmiert.

Vielen Dank für Eure unendliche Mühe und Unterstützung, die Ihr liefert.
Matthias

Deutsche in Melbourne | Deutsche in Perth |
Deutsche in Brisbane |

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.163 seconds