Joomla 6 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 14. Oktober 2025 alle unsere Joomla Erweiterungen mit Joomla 6 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt eigenständige Dokumentationen Visforms Joomla 4, Visforms Joomla 5 und Visforms Joomla 6.

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Wichtige Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

php v.5.3.x

  • pjbauer
  • Autor
14 Jahre 6 Monate her #25 von pjbauer
php v.5.3.x wurde erstellt von pjbauer
This plugin produces errors when used with PHP v5.3x.

The errors are due to the ereg() function being "depreciated" in PHP v.5.3+. The suggested alternative to use the preg_match() function.

I am no "regular expressions" expert and seem unable to fix this on my own.Could someone please post the corrected corresponding "preg_match()" expressions to use in order to fix the offending lines in SpambotCheckHelpers.php?

line 103: if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $sMailToCheck))
line 115: if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i]))
line 123: if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1]))
line 132: if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$",$domain_array[$i]))

Thank You.

Mehr
14 Jahre 6 Monate her #26 von Administrator AV
Administrator AV antwortete auf Aw: php v.5.3.x
Hi pjbauer,

thanks very much for that note. I worked the function over and issued a new release of the plugin. You could download it www.vi-solutions.de/de/downloads/doc_dow...check-fuer-joomla-15 , unzip it and just replace the SpambotCheckHelpers.php.

Or you can fix code your by replacing it with the following lines:

line 103: if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $sMailToCheck))
line 115: if (!preg_match("/^(([A-Za-z0-9!#$%&'*+\/=?^_`{|}~-][A-Za-z0-9!#$%&'*+\/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i]))
line 123: if (!preg_match("/^\[?[0-9\.]+\]?$/", $email_array[1]))
line 132: if (!preg_match("/^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$/",$domain_array[$i]))

I tested it thoroughly and in worked fine with either php 5.2.x and php 5.3.x

Regards, Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum