• Resolved gospat83

    (@gospat83)


    Hi, I try to integrate the plugin into my local website (using XAMPP). If I embed the shortcode on one site, I get the following error message:

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wordpress\wp-content\plugins\sis-handball\public\class-sis-handball-public.php on line 352
    
    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wordpress\wp-content\plugins\sis-handball\public\class-sis-handball-public.php on line 353

    I embedded the shortcode as followed: [sishandball type=”standings” league=”001519000000000000000000000000000001000″]

    Can you tell me where is the problem? Is anything wrong with the shortcode?

    Best regards
    gospat83

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    the shortcode in this format is correct:
    [sishandball type="standings" league="001519000000000000000000000000000001000"]

    Probably the service was not available while you tried to get the data. Is the error still present?

    Greetings Felix

    Thread Starter gospat83

    (@gospat83)

    Hallo Felix,

    da ich mittlerweile festgestellt habe, dass du Deutscher bist, schreibe ich mal auf deutsch weiter.

    Ich habe gerade noch einen Versuch gestartet, aber die Fehlermeldung besteht immer noch. Hast du irgendeine Idee woran es noch liegen könnte? Habe ich eventuell etwas vergessen?

    Hier mein gerade verwendeter Shortcode: [sishandball type=”standings” league=”001519502505000000000000000000000002000″]

    Wollte mir die Tabelle dazu anzeigen lassen. “Mannschaften holen” im Backend funktioniert ebenfalls nicht, da passiert anscheinend gar nichts.

    VG gospat83

    • This reply was modified 7 years ago by gospat83.
    Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    alles klar 😀

    Sagt denn der PHP error_log irgendwas? Vielleicht kommen auch keine Daten bei dir an, hast du Curl aktiviert?

    Grüße vom Felix

    Thread Starter gospat83

    (@gospat83)

    Muss ich mir später mal anschauen, bin momentan noch auf Arbeit. Muss Curl denn aktiviert sein oder deaktiviert?

    Gruß
    gospat83

    Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    Curl muss aktiviert sein.

    Grüße vom Felix

    Thread Starter gospat83

    (@gospat83)

    Also in der php.in (C:\xampp\php\php.ini) ist Curl aktiviert.

    Hier mal ein Auszug aus dem ErrorLog von heute:

    [Tue May 07 15:33:35.465443 2019] [ssl:warn] [pid 2156:tid 656] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Tue May 07 15:33:35.532758 2019] [core:warn] [pid 2156:tid 656] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Tue May 07 15:33:35.539762 2019] [ssl:warn] [pid 2156:tid 656] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Tue May 07 15:33:35.871849 2019] [mpm_winnt:notice] [pid 2156:tid 656] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.1.1b PHP/7.3.4 configured -- resuming normal operations
    [Tue May 07 15:33:35.872847 2019] [mpm_winnt:notice] [pid 2156:tid 656] AH00456: Apache Lounge VC15 Server built: Mar 28 2019 11:59:33
    [Tue May 07 15:33:35.872847 2019] [core:notice] [pid 2156:tid 656] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
    [Tue May 07 15:33:35.883851 2019] [mpm_winnt:notice] [pid 2156:tid 656] AH00418: Parent: Created child process 5188
    [Tue May 07 15:33:36.558020 2019] [ssl:warn] [pid 5188:tid 548] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Tue May 07 15:33:36.631037 2019] [ssl:warn] [pid 5188:tid 548] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Tue May 07 15:33:36.681051 2019] [mpm_winnt:notice] [pid 5188:tid 548] AH00354: Child: Starting 150 worker threads.
    [Tue May 07 15:34:00.415681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 352, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.415681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.416680 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.416680 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 352, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.417682 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.418681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.419682 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.420683 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.420683 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.421679 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.422685 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.422685 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.423681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.423681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.424682 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.425681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.425681 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.426682 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.426682 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:00.427684 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 352, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.444545 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 352, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.445405 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.446404 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.446404 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 352, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.446404 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.446404 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.447401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.447401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.447401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.447401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.448401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.448401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.448401 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.449403 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.449403 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.449403 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.449403 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.450405 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.450405 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 353, referer: http://localhost/wordpress/
    [Tue May 07 15:34:04.450405 2019] [php7:warn] [pid 5188:tid 1880] [client ::1:50499] PHP Warning:  Invalid argument supplied for foreach() in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\sis-handball\\public\\class-sis-handball-public.php on line 352, referer: http://localhost/wordpress/

    Kannst du da irgendeinen Fehler erkennen?

    Gruß
    gospat83

    Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    leider sagt das über den direkten Fehler nicht mehr aus als du schon genannt hast. Ich habe das Gefühl deine Testumgebung kann nicht nach draußen kommunizieren, auch da du die Funnktion “Teams holen” nicht nutzen kannst.

    So komme ich aber leider nicht weiter.

    Grüße vom Felix

    Thread Starter gospat83

    (@gospat83)

    Wahrscheinlich hast du recht. Ich werde heute Abend mal den Test auf dem “richtigen” Webspace machen, da funktioniert es dann wahrscheinlich.

    Trotzdem danke für deine Mühen!

    Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    wenn es dann immer noch nicht klappt melde dich gerne wieder. Am besten mit der kompletten phpinfo Ausgabe, dann setze ich das bei mir mal exakt so auf die du es nutzen möchtest.

    Sollte es klappen, schreib doch auch bitte kurz, dann schließe ich das Thema.

    Grüße vom Felix

    Thread Starter gospat83

    (@gospat83)

    Hi Felix,

    ich habe das Plugin jetzt nochmal auf einem richtigen Webspace getestet und siehe da – es wird wie gewünscht eine Tabelle angezeigt. Mannschaften holen klappt allerdings trotzdem nicht, da passiert gar nichts, wenn ich den Button drücke.

    An cURL dürfte es auch nicht liegen, das ist lt. phpinfo enabled.

    Viele Grüße
    gospat83

    Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    hast du zuvor eine Liga Id angegeben, dann müsste es klappen?

    Grüße vom Felix

    Thread Starter gospat83

    (@gospat83)

    Hi Felix,

    ja, hatte ich mehrmals versucht. Hat aber nichts angezeigt.

    Grüße
    gospat83

    Plugin Author Felix W.

    (@welly2103)

    Hi @gospat83

    kannst du das Backend mal im Chrome öffnen und im Entwicklertool (F12) im Tab “Network” (Bzw. Netzwerk) schauen ob irgendein Request fehlschlägt. Mit dem geöffneten Entwicklertool bitte mal “Teams holen” anklicken.

    Springt das Programm automatisch auf die manuelle Eingabe?

    Grüße vom Felix

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Warning: Invalid argument…’ is closed to new replies.