[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/seourls/event/listener.php on line 213: Undefined array key "FORUM_NAME"
REDAXO Forum • [SOLVED]Textile 2.4 interner Link REX4.4/ Compilation failed
Seite 1 von 1

[SOLVED]Textile 2.4 interner Link REX4.4/ Compilation failed

Verfasst: 25. Jul 2012, 12:23
von rkemmere
Hallo zusammen,

ich bekomme unter PHP 5.2 mit REDAXO 4.4 folgenden Fehler bei der Erstellung eines internen Links mit Textile.

Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in C:\Program Files\xampp\htdocs\bio-unterkuenfte\redaxo\include\addons\textile\classes\class.textile.inc.php on line 1510

Woran mag das liegen?

Re: Textile 2.4 interner Link / Compilation failed

Verfasst: 25. Jul 2012, 12:44
von Hirbod
Hi,

wenn ich mich richtig erinnere, sollte das mit einem PHP-Update getan sein. Ich glaube die PHP-Version die du einsetzt ist schuld. Ich hoffe es ist kein 5.3 Update notwendig.

Korrigiert mich, wenn ich falsch liege.

LG
Hirbod

Edit:
http://stackoverflow.com/questions/1017 ... tion-error
Ähnliches Problem.

Re: Textile 2.4 interner Link / Compilation failed

Verfasst: 25. Jul 2012, 12:48
von rkemmere
Ich teste gerade mal mit PHP 5.3 ...

Re: Textile 2.4 interner Link / Compilation failed

Verfasst: 25. Jul 2012, 12:58
von rkemmere
Also mit PHP 5.3.1 kommt die Fehlermeldung nicht mehr. Dennoch wird der Link nicht richtig gesetzt:
Es wird im Text nur “Duis feugiat augu”:index.php?article_id=5 angezeigt.

Bei der Demo ist es ebenfalls so bei mir.
Kann das jemand bestätigen?

Re: Textile 2.4 interner Link REX4.4 / Compilation failed

Verfasst: 25. Jul 2012, 14:42
von Thomas.Blum
Hej,

REX 4.4.0 + Textile 2.4.0 unter PHP 5.3.8 keine Probleme

vielleicht kannst ja mal dein Textile Markup schreiben.

vg Thomas

Re: Textile 2.4 interner Link REX4.4 / Compilation failed

Verfasst: 25. Jul 2012, 15:01
von rkemmere
Hallo Thomas,

danke für den Tipp mit dem markup.
Ich hatte kein passendes markup für textile 2.4 verwendet sondern noch das von 2.0.

Sobald man dieses hier benutzt klappt es auch!

Code: Alles auswählen

if(OOAddon::isAvailable('textile')) {

  // Fliesstext 
  $textile = '';
  if(REX_IS_VALUE[1])
  {
    $textile = htmlspecialchars_decode("REX_VALUE[1]");
    $textile = str_replace("<br />","",$textile);
    $textile = rex_a79_textile($textile);
    $textile = str_replace("###","&#x20;",$textile);
    print '<div class="txt-img">'. $textile . '</div>';
  } 
} else {
  echo rex_warning('Dieses Modul benötigt das "textile" Addon!');
}

Also nochmal Danke. Thema damit gelöst!