I upgraded my server to PHP 8.1 and got a warning regarding smtp after editing and saving a page. I have the version of the SMTP plugin dated 2022-09-11. Dokuwiki version: Release 2022-07-31a "Igor". I am using IIS version 10 as the webserver. This is the warning message:
Warning: Undefined array key "SERVER_ADDR" in C:\inetpub\wwwroot\dokuwiki4\lib\plugins\smtp\helper.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\dokuwiki4\lib\plugins\smtp\helper.php:22) in C:\inetpub\wwwroot\dokuwiki4\inc\common.php on line 1817
The wiki continues to work and the email notification is sent, but the warnings persist
UPDATE:
I had previously left the FQDN field empty in the SMTP configuration section. I added the FQDN to that field and the warning messages no longer pop up.
The FQDN field claims that it can find the FQDN on its own if that field is left blank.
I upgraded my server to PHP 8.1 and got a warning regarding smtp after editing and saving a page. I have the version of the SMTP plugin dated 2022-09-11. Dokuwiki version: Release 2022-07-31a "Igor". I am using IIS version 10 as the webserver. This is the warning message:
Warning: Undefined array key "SERVER_ADDR" in C:\inetpub\wwwroot\dokuwiki4\lib\plugins\smtp\helper.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\dokuwiki4\lib\plugins\smtp\helper.php:22) in C:\inetpub\wwwroot\dokuwiki4\inc\common.php on line 1817
The wiki continues to work and the email notification is sent, but the warnings persist
UPDATE:
I had previously left the FQDN field empty in the SMTP configuration section. I added the FQDN to that field and the warning messages no longer pop up.
The FQDN field claims that it can find the FQDN on its own if that field is left blank.