Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15781
  • *Total Topics: 2384
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 1
  • *Guests: 2
  • *Total: 3

Author Topic: ein anderes SEF-Problem  (Read 1902 times)

0 Members and 0 Guests are viewing this topic.

Offline Frankie

  • Newbie
  • *
  • Posts: 5
ein anderes SEF-Problem
« on: 31.03.12, 00:46:36 »
Ich wollte mal die SEF-Funktionalität ausprobieren, da ich mit pretty-URLs öfter ein paar Problemchen habe.

Ich bekomme bei jedem umgeschriebenen Link, den ich anklicke folgende Fehlermeldung mit ausgeliefert:

Code: [Select]
Notice: iconv() [function.iconv]: Detected an illegal character in input string in PFAD/VOM/FORUM/Sources/PortaMx/PortaMxSEF.php on line 1069
Hat jemand eine Idee, woran es liegen könnte?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: ein anderes SEF-Problem
« Reply #1 on: 31.03.12, 00:50:16 »
Welche PHP version verwendest du?
Ist die libiconv-Bibliothek  installiert ? Wenn ja welche version?
Welchen Zeichensatzt verwendest Du? ISO oder UTF-8 ?
Many are stubborn in relation to the path, a few in relation to the target.

Offline Frankie

  • Newbie
  • *
  • Posts: 5
Re: ein anderes SEF-Problem
« Reply #2 on: 31.03.12, 01:29:44 »
Welche PHP version verwendest du?
PHP Version 5.3.10
Quote
Ist die libiconv-Bibliothek  installiert ? Wenn ja welche version?
iconv
iconv support    enabled
iconv implementation    glibc
iconv library version    2.7

Directive   Local Value   Master Value
iconv.input_encoding   ISO-8859-1   ISO-8859-1
iconv.internal_encoding   ISO-8859-1   ISO-8859-1
iconv.output_encoding   ISO-8859-1   ISO-8859-1

Quote
Welchen Zeichensatzt verwendest Du? ISO oder UTF-8 ?
Wo kann ich da nachsehen? Bin der Meinung UTF-8.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: ein anderes SEF-Problem
« Reply #3 on: 31.03.12, 18:32:59 »
Normalerweise wird iconv nur verwendet wenn du einen anderen Zeichensatz als ISO-8859-1 oder UTF-8 verwendest.
Da scheint deine Server Einstellung nicht zu stimmen ...
Es handelt sich hier um diesen Code teil;
Code: [Select]
// make all strings to ISO-8859-1 or UTF-8 and if not, convert to UTF-8
$char_set = empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set'];
if($char_set != 'ISO-8859-1' || $char_set != 'UTF-8')
{
if(function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif(function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
elseif(function_exists('unicode_decode'))
$string = unicode_decode($string, $char_set);
}
Many are stubborn in relation to the path, a few in relation to the target.

Offline Frankie

  • Newbie
  • *
  • Posts: 5
Re: ein anderes SEF-Problem
« Reply #4 on: 31.03.12, 22:51:13 »
Normalerweise wird iconv nur verwendet wenn du einen anderen Zeichensatz als ISO-8859-1 oder UTF-8 verwendest.
Da scheint deine Server Einstellung nicht zu stimmen ...
Es handelt sich hier um diesen Code teil;


Und wie kann ich den Fehler beheben?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: ein anderes SEF-Problem
« Reply #5 on: 01.04.12, 02:11:39 »
Ändere mal in der Datei PortaMxSEF.php diesen Teil:

Finde:
Code: [Select]
if($char_set != 'ISO-8859-1' || $char_set != 'UTF-8')
{
if(function_exists('iconv'))
$string = iconv($char_set, 'UTF-8//IGNORE', $string);
elseif(function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
elseif(function_exists('unicode_decode'))
$string = unicode_decode($string, $char_set);
}

Ändern in:
Code: [Select]
if($char_set != 'ISO-8859-1' || $char_set != 'UTF-8')
{
if(function_exists('mb_convert_encoding'))
$string = mb_convert_encoding($string, 'UTF8', $char_set);
elseif(function_exists('unicode_decode'))
$string = unicode_decode($string, $char_set);
}
Many are stubborn in relation to the path, a few in relation to the target.

Offline Frankie

  • Newbie
  • *
  • Posts: 5
Re: ein anderes SEF-Problem
« Reply #6 on: 01.04.12, 08:10:03 »
Das verschlimmert die Sache. Nun erhalte ich folgende Fehlermeldung ausgeliefert.

Code: [Select]
Warning: mb_convert_encoding() [function.mb-convert-encoding]: Illegal character encoding specified in /*.*/*/*/*/Sources/PortaMx/PortaMxSEF.php on line 1069

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: ein anderes SEF-Problem
« Reply #7 on: 01.04.12, 17:46:11 »
Überprüf doch bitte erst mal welchen Zeichensatz du verwendest ...
Many are stubborn in relation to the path, a few in relation to the target.

Offline Frankie

  • Newbie
  • *
  • Posts: 5
Re: ein anderes SEF-Problem
« Reply #8 on: 01.04.12, 18:10:11 »
Problem gelöst. Die ganze Datenbank war total inkonsistent.
Jetzt funktioniert wieder alles zu meiner vollsten Zufriedenheit.  O0


Danke dir für deine Bemühungen.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: ein anderes SEF-Problem
« Reply #9 on: 03.04.12, 07:11:49 »
Gut zu lesen ... Danke für's feedback  ;)
Many are stubborn in relation to the path, a few in relation to the target.