• Resolved michaelzoephel

    (@michaelzoephel)


    Bis im Frühjahr lief das Plugin sauber, seitdem erhalte ich folgende Fehlermeldung beim Versuch das Plugin zu installieren:
    Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 38

    Fatal error: Uncaught TypeError: idn_to_ascii() expects parameter 3 to be integer, string given in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php:38 Stack trace: #0 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php(38): idn_to_ascii(‘www.sc27.de’, 0, ‘INTL_IDNA_VARIA…’) #1 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Settings.php(92): ITSB\IFDW\Utils\Host::cleanHost(‘www.sc27.de’) #2 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(59): ITSB\IFDW\Utils\Settings::setHost() #3 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(43): ITSB\IFDW\Plugin->configureSettings() #4 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/PluginFactory.php(38): ITSB\IFDW\Plugin->__construct() #5 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/index.php(40): ITSB\IFDW\PluginFactory::create() #6 /html/wordpress/wp-admin/includes/plugin.php(2297): include(‘/html/wordpress…’) #7 /html/ in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 38

    WordPress 5.5.1 verwendet das Theme Divi Version 4.6.4.
    Die PHP Version wurde auf 7.3.2 aktualisiert aber Problem bleibt.

    Was muss geändert werden damit das Plugin wieder sauber arbeitet?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Alex

    (@mheob)

    Hi @michaelzoephel

    Dein Server liefert – warum auch immer – die Standard-Konstante INTL_IDNA_VARIANT_UTS46 nicht aus, obwohl das nötige PHP-Modul geladen ist. Das ist merkwürdig und kommt mir hier auch zum ersten Mal unter die Augen.

    Ich habe aber mal einen Workaround erstellt, um dieses Problem zu umgehen. Bitte lade dir das ZIP-File runter und installiere es manuell: include-fussball-de-widgets.zip

    Bitte gib mir im Anschluss ein kurzes Feedback, ob dieser kleine Fix funktioniert, damit ich es veröffentlichen kann.

    Grüße
    Alex

    • This reply was modified 3 years, 6 months ago by Alex. Reason: fix typo
    Thread Starter michaelzoephel

    (@michaelzoephel)

    Hallo Alex,

    leider bleibt die Fehlermeldung.

    Das Plugin kann nicht aktiviert werden, da es einen fatalen Fehler erzeugt.

    Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 38

    Fatal error: Uncaught TypeError: idn_to_ascii() expects parameter 3 to be int, string given in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php:38 Stack trace: #0 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php(38): idn_to_ascii(‘www.sc27.de’, 0, ‘INTL_IDNA_VARIA…’) #1 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Settings.php(92): ITSB\IFDW\Utils\Host::cleanHost(‘www.sc27.de’) #2 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(59): ITSB\IFDW\Utils\Settings::setHost() #3 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(43): ITSB\IFDW\Plugin->configureSettings() #4 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/PluginFactory.php(38): ITSB\IFDW\Plugin->__construct() #5 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/index.php(40): ITSB\IFDW\PluginFactory::create() #6 /html/wordpress/wp-admin/includes/plugin.php(2297): include(‘/html/wordpress…’) #7 /html/word in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 38

    Grüße
    Michael

    Das war die Rückmeldung von Mittwald Support:
    die Meldung deutet auf einen Fehler des Plugin “include-fussball-de-widgets” hin.
    Scheinbar verwendet dieses Plugin Funktionen, die nicht mit aktuellen Versionen von PHP kompatibel sind.
    Wenden Sie sich dazu bitte an den Hersteller des Plugin.

    Plugin Author Alex

    (@mheob)

    Moin Michael

    Die Meldung von Mittwald finde ich lustig. Ich kenne zwei Seiten die bei Mittwald gehostet sind und wo mein Plug-in läuft. Zudem funktioniert das Plug-in nur noch in aktuellen PHP-Versionen ab Version 7.2. Aber na ja lassen wir das.

    Laut deiner Fehlermeldung kommt von deinem Server für die Konstante INTL_IDNA_VARIANT_UTS46 nicht der Wert 1, sondern der Wert 'INTL_IDNA_VARIANT_UTS46' zurück. Könntest du das bitte mal testen?

    Dafür am einfachsten bitte eine PHP-Datei erstellen, die folgenden Inhalt hat:

    <?php
    var_dump( INTL_IDNA_VARIANT_UTS46 );
    

    Benenne die Datei nach deinen Wünschen (z.B. test.php) und lege sie ins Root-Verzeichnis deines Servers (da, wo auch die Ordner wp-admin, wp-content oder auch die Datei wp-config.php liegen) und rufe sie im Browser auf.

    Die Ausgabe sollte int(1) sein, so wie hier ersichtlich:
    https://gyazo.com/d6deb939beec84a027d027f676f85a9a

    Nach dem kurzen Ausgabetest kannst du die Datei sofort wieder entfernen.

    Meine Vermutung ist, dass du als Ausgabe in etwa so etwas erhältst: string(23) "INTL_IDNA_VARIANT_UTS46".

    Wenn ich die Rückmeldung von dir habe und meine Vermutung eintrifft, werde ich einen Workaround dafür machen. Aber dennoch liegt das eigentliche Problem bei deiner Konfiguration (entweder Server direkt oder ein Konflikt mit dem Theme oder einem anderen Plug-in).

    Grüße
    Alex

    • This reply was modified 3 years, 6 months ago by Alex. Reason: Fix code styling
    • This reply was modified 3 years, 6 months ago by Alex. Reason: Open Link in new window
    Thread Starter michaelzoephel

    (@michaelzoephel)

    Hallo Alex,

    wie Du richtig vermutet hast gibt es die Ausgabe:

    string(23) “INTL_IDNA_VARIANT_UTS46”

    Was nun?

    Besten Dank für Deinen schnellen Support.

    Michael

    Plugin Author Alex

    (@mheob)

    Ich habe das Zip, auf Github aktualisiert. Bitte probiere dieses, wie in meiner ersten Antwort erklaert, noch mal aus:

    https://wordpress.org/support/topic/warning-use-of-undefined-constant-intl_idna_variant_uts46/#post-13453426

    Thread Starter michaelzoephel

    (@michaelzoephel)

    Hallo Alex,

    hier die Fehlermeldung von beta 2

    Fatal error: Uncaught TypeError: defined() expects parameter 1 to be string, int given in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php:38 Stack trace: #0 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php(38): defined(0) #1 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Settings.php(92): ITSB\IFDW\Utils\Host::cleanHost(‘www.sc27.de’) #2 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(59): ITSB\IFDW\Utils\Settings::setHost() #3 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(43): ITSB\IFDW\Plugin->configureSettings() #4 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/PluginFactory.php(38): ITSB\IFDW\Plugin->__construct() #5 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/index.php(40): ITSB\IFDW\PluginFactory::create() #6 /html/wordpress/wp-admin/includes/plugin.php(2297): include(‘/html/wordpress…’) #7 /html/wordpress/wp-admin/plugins.php(191): plugin_sandbox in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 38

    Plugin Author Alex

    (@mheob)

    Sorry, dass du aktuell für mich testen musst. Aber ich kann die Fehler leider nicht reproduzieren.

    Ich habe unter https://github.com/mheob/include-fussball-de-widgets/releases/tag/v3.3.4-beta.2 einen neuen Versuch abgelegt.

    Solltest du nicht “drüber installieren” können, entferne erst mein Plug-in. Die angelegten Daten bleiben dabei bestehen. Mein System hatte heute Morgen leider einen Fehler in der Versionierung drin. Daher ist das nun erst die Beta 2.

    Thread Starter michaelzoephel

    (@michaelzoephel)

    Hallo Alex,

    alles Gut, ich bin froh das Du Dir die Zeit nimmst das problem zu lösen, was heute leider nicht immer selbstverständlich ist. Und wenn ich Dir dabei helfen kann eine Lösung zu finden, frut mich das Dir behilflich zu sein.

    Leider spuckt deine Beta 2 auch wieder eine Fehlermeldung aus:

    Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 39

    Fatal error: Uncaught TypeError: Return value of ITSB\IFDW\Utils\Host::cleanHost() must be of the type string, bool returned in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php:45 Stack trace: #0 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Settings.php(92): ITSB\IFDW\Utils\Host::cleanHost(false) #1 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(59): ITSB\IFDW\Utils\Settings::setHost() #2 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(43): ITSB\IFDW\Plugin->configureSettings() #3 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/PluginFactory.php(38): ITSB\IFDW\Plugin->__construct() #4 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/index.php(40): ITSB\IFDW\PluginFactory::create() #5 /html/wordpress/wp-admin/includes/plugin.php(2297): include(‘/html/wordpress…’) #6 /html/wordpress/wp-admin/plugins.php(191): plugin_sandbox_scrape(‘include-fussbal…’) #7 {main} thrown in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 45

    Thread Starter michaelzoephel

    (@michaelzoephel)

    Hier mal die Plugins die installiert sind, vielleicht ist eins darunter wo Dir bekannt ist das es Probleme bereitet:

    AdRotate
    Version 5.8.9 | Von Arnan de Gans

    Cookie Notice
    Version 1.3.2 | Von dFactory

    Duplicate Page
    Version 4.3 | Von mndpsingh287

    Enhanced Media Library
    Version 2.7.2 | Von wpUXsolutions
    Version 3.3.4-beta.2

    Jetpack von WordPress.com
    Version 8.9.1 | Von Automattic

    Loco Translate
    Version 2.4.3 | Von Tim Whitlock

    PDF Embedder Premium Secure
    Version 4.4.1 | Von Lever Technology LLC

    Smash Balloon Custom Facebook Feed
    Version 2.16.1 | Von Smash Balloon

    Yoast SEO
    Version 14.9 | Von Team Yoast

    Plugin Author Alex

    (@mheob)

    Das ist schwer zu erahnen. So aus der Entfernung. Eigentlich kann ich mir nicht vorstellen, dass es ein WP-Problem ist, da deine Test-Datei auch einen falschen Wert zurückgegeben hat. Und diese war ja unabhängig von WordPress.

    Hatte mein neuer Versuch von 11:45 Uhr nicht funktioniert?
    Falls nein, welche Fehlermeldung hast du erhalten?

    Thread Starter michaelzoephel

    (@michaelzoephel)

    Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 39

    Fatal error: Uncaught TypeError: Return value of ITSB\IFDW\Utils\Host::cleanHost() must be of the type string, bool returned in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php:45 Stack trace: #0 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Settings.php(92): ITSB\IFDW\Utils\Host::cleanHost(false) #1 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(59): ITSB\IFDW\Utils\Settings::setHost() #2 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Plugin.php(43): ITSB\IFDW\Plugin->configureSettings() #3 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/PluginFactory.php(38): ITSB\IFDW\Plugin->__construct() #4 /html/wordpress/wp-content/plugins/include-fussball-de-widgets/index.php(40): ITSB\IFDW\PluginFactory::create() #5 /html/wordpress/wp-admin/includes/plugin.php(2297): include(‘/html/wordpress…’) #6 /html/wordpress/wp-admin/plugins.php(191): plugin_sandbox_scrape(‘include-fussbal…’) #7 {main} thrown in /html/wordpress/wp-content/plugins/include-fussball-de-widgets/Utils/Host.php on line 45

    Plugin Author Alex

    (@mheob)

    Frag mal bitte beim Mittwald-Support nach, warum bei dir die PHP-Konstante INTL_IDNA_VARIANT_UTS46 nicht vernünftig gesetzt wird.

    Gemäß PHP (https://www.php.net/manual/en/intl.constants.php) sollte dort ein Integer gesetzt werden. Um genauer zu sein der Wert 1. Das sagt z.B. meine Entwicklungsumgebung dazu: https://gyazo.com/f15311c5608ef98365778227dad2850e
    Bei dir kam aber dort der Wert INTL_IDNA_VARIANT_UTS46 als string zurück, wie wir ja getestet haben.

    Ich suche derweil weiter nach einer Möglichkeit den Server- bzw. PHP-Fehler zu umgehen.

    Edit:
    Hier mal ein Beispiel aus einem TYPO3 Forum, wo das gleiche Problem auf einem Mittwald Systemen gemeldet wurde: https://forge.typo3.org/issues/87953

    • This reply was modified 3 years, 6 months ago by Alex. Reason: Fix link
    • This reply was modified 3 years, 6 months ago by Alex. Reason: Add TYPO3 Link
    Thread Starter michaelzoephel

    (@michaelzoephel)

    Habe ein Ticket gestartet und den Hinweis von Dir und aus dem Forum mitgeschickt. Wenn es Rückmeldung gibt melde ich mich nochmal.

    Danke.

    Plugin Author Alex

    (@mheob)

    Hier noch mal ein Versuch nach der Recherche im TYPO3 Forum: https://github.com/mheob/include-fussball-de-widgets/releases/tag/v3.3.4-beta.4

    Thread Starter michaelzoephel

    (@michaelzoephel)

    Hallo Alex,

    es fluppt. Super. Ich bin hell auf begeistert.

    Besten Dank und schönes Wochenende

    Michael

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46’ is closed to new replies.