Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

To be is to program.


computers / Rocksolid Nodes Help / rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception" not found

SubjectAuthor
* rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception"SugarBug
`* rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception" not foundRetro Guy
 `* rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" notRetro Guy
  +* rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundSugarBug
  |`- rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundRetro Guy
  `* Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundSugarBug
   `* Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundRetro Guy
    `* Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundSugarBug
     `* Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundSugarBug
      `- Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not foundSugarBug

1
rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception" not found

<20231227165309.5cb044f7@dev>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=816&group=rocksolid.nodes.help#816

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception"
not found
Date: Wed, 27 Dec 2023 16:53:09 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231227165309.5cb044f7@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1369893"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Wed, 27 Dec 2023 22:53 UTC

PHP mailer is inoperable. Attempts fail to register via register.php.

# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

OS: Debian GNU/Linux 12 (bookworm) x86_64
Kernel: 6.1.0-15-amd64

Verified PHP mailer is installed. Then reinstalled:

# apt search phpmailer
libphp-phpmailer/stable,now 6.6.3-1 all [installed]

# apt-get install --reinstall libphp-phpmailer

Credentials are configured properly.

Testing with latest pull from gitlab on fresh install.

When trying to register an account I get blank page with just the php
header and no response text and this error in the logs:

[proxy_fcgi:error] [pid 862:tid 140619070342848] [client
174.247.236.58:0] AH01071: Got error 'PHP message: PHP Fatal error:
Uncaught Error: Class "PHPMailer\\PHPMailer\\Exception" not found in
/usr/share/php/libphp-phpmailer/src/PHPMailer.php:1997\nStack
trace:\n#0 /usr/share/php/libphp-phpmailer/src/PHPMailer.php(1662):
PHPMailer\\PHPMailer\\PHPMailer->smtpSend()\n#1
/usr/share/php/libphp-phpmailer/src/PHPMailer.php(1500):
PHPMailer\\PHPMailer\\PHPMailer->postSend()\n#2
..../common/register.php(383):
PHPMailer\\PHPMailer\\PHPMailer->send()\n#3 {main}\n thrown in
/usr/share/php/libphp-phpmailer/src/PHPMailer.php on line 1997',
referer: https://rslight.sybershock.com/common/register.php

Nothing shows up in spool/email_registry.dat.

Is there a fallback method for local mail?

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception" not found

<1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=821&group=rocksolid.nodes.help#821

  copy link   Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: rslight phpmailer error - Class "PHPMailer\\PHPMailer\\Exception" not found
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <20231227165309.5cb044f7@dev>
Date: Thu, 28 Dec 2023 03:41:10 -0700
Message-ID: <1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
 by: Retro Guy - Thu, 28 Dec 2023 10:41 UTC

On Wed, 27 Dec 2023 16:53:09 -0600, SugarBug wrote:

> PHP mailer is inoperable. Attempts fail to register via register.php.
>
> # apt-get update
> # apt-get upgrade
> # apt-get dist-upgrade
>
> OS: Debian GNU/Linux 12 (bookworm) x86_64
> Kernel: 6.1.0-15-amd64
>
> Verified PHP mailer is installed. Then reinstalled:
>
> # apt search phpmailer
> libphp-phpmailer/stable,now 6.6.3-1 all [installed]
>
> # apt-get install --reinstall libphp-phpmailer
>
> Credentials are configured properly.
>
> Testing with latest pull from gitlab on fresh install.
>
> When trying to register an account I get blank page with just the php
> header and no response text and this error in the logs:
>
> [proxy_fcgi:error] [pid 862:tid 140619070342848] [client
> 174.247.236.58:0] AH01071: Got error 'PHP message: PHP Fatal error:
> Uncaught Error: Class "PHPMailer\\PHPMailer\\Exception" not found in
> /usr/share/php/libphp-phpmailer/src/PHPMailer.php:1997\nStack
> trace:\n#0 /usr/share/php/libphp-phpmailer/src/PHPMailer.php(1662):
> PHPMailer\\PHPMailer\\PHPMailer->smtpSend()\n#1
> /usr/share/php/libphp-phpmailer/src/PHPMailer.php(1500):
> PHPMailer\\PHPMailer\\PHPMailer->postSend()\n#2
> .../common/register.php(383):
> PHPMailer\\PHPMailer\\PHPMailer->send()\n#3 {main}\n thrown in
> /usr/share/php/libphp-phpmailer/src/PHPMailer.php on line 1997',
> referer: https://rslight.sybershock.com/common/register.php
>
> Nothing shows up in spool/email_registry.dat.
>
> Is there a fallback method for local mail?

Can you post a cleaned up (remove private info) copy of your
$config_dir/phpmailer.inc.php?

Also, can you verify all the files exist that are referenced in that file?

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=822&group=rocksolid.nodes.help#822

  copy link   Newsgroups: rocksolid.nodes.help
Date: Thu, 28 Dec 2023 11:56:33 +0000
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not
found
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$lcQQPaONB3UvZe7x3n.LLuWuKARuYDiJVUwAyX7qkOlehJ8R9mNGS
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <20231227165309.5cb044f7@dev> <1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
Organization: Rocksolid Light
Message-ID: <36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Thu, 28 Dec 2023 11:56 UTC

Also, you might try to paste the lines below into your phpmailer.inc.php file:

if(is_file('/usr/share/php/libphp-phpmailer/src/PHPMailer.php')) {
$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
} elseif(is_file('/usr/share/php/libphp-phpmailer/class.phpmailer.php')) {
$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/class.phpmailer.php';
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/class.smtp.php';
} elseif(is_file('/usr/local/share/phpmailer/class.phpmailer.php')) {
$phpmailer['phpmailer'] = '/usr/local/share/phpmailer/class.phpmailer.php';
$phpmailer['smtp'] = '/usr/local/share/phpmailer/class.smtp.php';
}

REPLACING:

$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
$phpmailer['exception'] = '/usr/share/php/libphp-phpmailer/src/Exception.php';

The above is running on www.novabbs.com (Debian Bookworm). It's an older version of the file, when phpmailer was in transition (making it a pita to use).

--
Retro Guy

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<20231228115651.73d4983a@dev>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=823&group=rocksolid.nodes.help#823

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception"
not found
Date: Thu, 28 Dec 2023 11:56:51 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <20231228115651.73d4983a@dev>
References: <20231227165309.5cb044f7@dev>
<1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
<36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1458612"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 28 Dec 2023 17:56 UTC

On Thu, 28 Dec 2023 11:56:33 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Also, you might try to paste the lines below into your
> phpmailer.inc.php file:
>
> if(is_file('/usr/share/php/libphp-phpmailer/src/PHPMailer.php')) {
> $phpmailer['phpmailer'] =
> '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
> }
> elseif(is_file('/usr/share/php/libphp-phpmailer/class.phpmailer.php'))
> { $phpmailer['phpmailer'] =
> '/usr/share/php/libphp-phpmailer/class.phpmailer.php';
> $phpmailer['smtp'] =
> '/usr/share/php/libphp-phpmailer/class.smtp.php'; }
> elseif(is_file('/usr/local/share/phpmailer/class.phpmailer.php')) {
> $phpmailer['phpmailer'] =
> '/usr/local/share/phpmailer/class.phpmailer.php'; $phpmailer['smtp']
> = '/usr/local/share/phpmailer/class.smtp.php'; }
>
> REPLACING:
>
> $phpmailer['phpmailer'] =
> '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
> $phpmailer['exception'] =
> '/usr/share/php/libphp-phpmailer/src/Exception.php';
>
> The above is running on www.novabbs.com (Debian Bookworm). It's an
> older version of the file, when phpmailer was in transition (making
> it a pita to use).
>

Nix that. I used the latest commit from devel after a reboot and now the
registration seems to be working now.

--
CRYP7010G3R | Bitizen Koine | The sweet, sweet sugar bug of Khentii
Koine <08a70821a366411b75fb30deeae3d008$1@sybershock.com>
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<fc41ca48d133b00d4c87cc61c3088289$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=826&group=rocksolid.nodes.help#826

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <fc41ca48d133b00d4c87cc61c3088289$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <20231227165309.5cb044f7@dev> <1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net> <36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org> <20231228115651.73d4983a@dev>
Date: Thu, 28 Dec 2023 13:03:50 -0700
 by: Retro Guy - Thu, 28 Dec 2023 20:03 UTC

On Thu, 28 Dec 2023 11:56:51 -0600, SugarBug wrote:

> On Thu, 28 Dec 2023 11:56:33 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> Also, you might try to paste the lines below into your
>> phpmailer.inc.php file:
>>
>> if(is_file('/usr/share/php/libphp-phpmailer/src/PHPMailer.php')) {
>> $phpmailer['phpmailer'] =
>> '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
>> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
>> }
>> elseif(is_file('/usr/share/php/libphp-phpmailer/class.phpmailer.php'))
>> { $phpmailer['phpmailer'] =
>> '/usr/share/php/libphp-phpmailer/class.phpmailer.php';
>> $phpmailer['smtp'] =
>> '/usr/share/php/libphp-phpmailer/class.smtp.php'; }
>> elseif(is_file('/usr/local/share/phpmailer/class.phpmailer.php')) {
>> $phpmailer['phpmailer'] =
>> '/usr/local/share/phpmailer/class.phpmailer.php'; $phpmailer['smtp']
>> = '/usr/local/share/phpmailer/class.smtp.php'; }
>>
>> REPLACING:
>>
>> $phpmailer['phpmailer'] =
>> '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
>> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
>> $phpmailer['exception'] =
>> '/usr/share/php/libphp-phpmailer/src/Exception.php';
>>
>> The above is running on www.novabbs.com (Debian Bookworm). It's an
>> older version of the file, when phpmailer was in transition (making
>> it a pita to use).
>>
>
> Nix that. I used the latest commit from devel after a reboot and now the
> registration seems to be working now.

YAY!

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<uqinhb$3t0j8$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=967&group=rocksolid.nodes.help#967

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception"
not found
Date: Wed, 14 Feb 2024 15:51:08 -0000 (UTC)
Organization: Baggy Jeans Mafia (sybershock.com)
Message-ID: <uqinhb$3t0j8$1@novabbs.org>
References: <20231227165309.5cb044f7@dev>
<1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
<36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 14 Feb 2024 15:51:08 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="4096616"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Wed, 14 Feb 2024 15:51 UTC

On Thu, 28 Dec 2023 11:56:33 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Also, you might try to paste the lines below into your phpmailer.inc.php file:
>
> if(is_file('/usr/share/php/libphp-phpmailer/src/PHPMailer.php')) {
> $phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
> } elseif(is_file('/usr/share/php/libphp-phpmailer/class.phpmailer.php')) {
> $phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/class.phpmailer.php';
> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/class.smtp.php';
> } elseif(is_file('/usr/local/share/phpmailer/class.phpmailer.php')) {
> $phpmailer['phpmailer'] = '/usr/local/share/phpmailer/class.phpmailer.php';
> $phpmailer['smtp'] = '/usr/local/share/phpmailer/class.smtp.php';
> }
>
> REPLACING:
>
> $phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
> $phpmailer['exception'] = '/usr/share/php/libphp-phpmailer/src/Exception.php';
>
> The above is running on www.novabbs.com (Debian Bookworm). It's an older version of the file, when phpmailer was in transition (making it a pita to use).
>
> --
> Retro Guy

The same problem came back:

This error occurs in server log when registering via register.php:

PHPMailer\\PHPMailer\\PHPMailer->send()\n#4 {main}\n
thrown in /usr/share/php/libphp-phpmailer/src/PHPMailer.php on line 2186', referer: ../register.php

libphp-phpmailer is installed.

PHP 8.2 is version.

I reinstalled using upgrade-debian.sh and the problem persists.

I added the replacement lines that you suggested above. Same problem persists.

When I try to register I get a blank page after clicking submit, with just the PHP header and:

"Create account: sybershock"

with NOTHING below that.

It does not matter which smtp port I set in phpmailer.inc.php. The result is the same.

Here is the contents of phpmailer.inc.php with credentials snipped:

<?php
# Server info and credentials for sending email
# (sending mail requires PHPMailer package installed)

if(is_file('/usr/share/php/libphp-phpmailer/src/PHPMailer.php')) {
$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
} elseif(is_file('/usr/share/php/libphp-phpmailer/class.phpmailer.php')) {
$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/class.phpmailer.php';
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/class.smtp.php';
} elseif(is_file('/usr/local/share/phpmailer/class.phpmailer.php')) {
$phpmailer['phpmailer'] = '/usr/local/share/phpmailer/class.phpmailer.php';
$phpmailer['smtp'] = '/usr/local/share/phpmailer/class.smtp.php';
}

# Custom Headers (you can add multiple)
#$mail_custom_header['X-Custom-Header-Name'] = "header info";

# Display From info
$mail_user = "sybershock.com";
$mail_domain = "sybershock.com";
$mail_name = "sybershock.com";

# Log in info
$mailer = array();
$mailer['host'] = "mail.sybershock.com";
$mailer['port'] = "587";
$mailer['username'] = "<snip>";
$mailer['password'] = "<snip>";

require $phpmailer['phpmailer'];
require $phpmailer['smtp'];
?>

Check for files results:

file: /usr/share/php/libphp-phpmailer/src/PHPMailer.php exists.

file: /usr/share/php/libphp-phpmailer/src/SMTP.php exists.

file: /usr/share/php/libphp-phpmailer/class.phpmailer.php: No such file or directory

file: /usr/share/php/libphp-phpmailer/class.phpmailer.php: No such file or directory

file: /usr/share/php/libphp-phpmailer/class.smtp.php: No such file or directory

file: /usr/local/share/phpmailer/class.phpmailer.php: No such file or directory

file: /usr/local/share/phpmailer/class.phpmailer.php: No such file or directory

file: /usr/local/share/phpmailer/class.smtp.php: No such file or directory

There is almost nothing predictable or cohesive about PHP, Linux, or the server configs. One version bump can re-arrange everything. This Byzantine mess makes sending simple text messages more tedious than building a skyscraper.

--
SugarBug <3883@sugar.bug> | sybershock.com

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<2713597ac677ef11452cdcd4c711061b$1@www.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=968&group=rocksolid.nodes.help#968

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <2713597ac677ef11452cdcd4c711061b$1@www.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <20231227165309.5cb044f7@dev> <1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net> <36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org> <uqinhb$3t0j8$1@novabbs.org>
Date: Wed, 14 Feb 2024 09:21:18 -0700
 by: Retro Guy - Wed, 14 Feb 2024 16:21 UTC

On Wed, 14 Feb 2024 15:51:08 -0000 (UTC), SugarBug wrote:

> On Thu, 28 Dec 2023 11:56:33 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> Also, you might try to paste the lines below into your phpmailer.inc.php file:
>>
>> if(is_file('/usr/share/php/libphp-phpmailer/src/PHPMailer.php')) {
>> $phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
>> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
>> } elseif(is_file('/usr/share/php/libphp-phpmailer/class.phpmailer.php')) {
>> $phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/class.phpmailer.php';
>> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/class.smtp.php';
>> } elseif(is_file('/usr/local/share/phpmailer/class.phpmailer.php')) {
>> $phpmailer['phpmailer'] = '/usr/local/share/phpmailer/class.phpmailer.php';
>> $phpmailer['smtp'] = '/usr/local/share/phpmailer/class.smtp.php';
>> }
>>
>> REPLACING:
>>
>> $phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
>> $phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
>> $phpmailer['exception'] = '/usr/share/php/libphp-phpmailer/src/Exception.php';
>>
>> The above is running on www.novabbs.com (Debian Bookworm). It's an older version of the file, when phpmailer was in transition (making it a pita to use).
>>
>> --
>> Retro Guy
>
> The same problem came back:

I hate phpmailer!
>
> This error occurs in server log when registering via register.php:
>
> PHPMailer\\PHPMailer\\PHPMailer->send()\n#4 {main}\n
> thrown in /usr/share/php/libphp-phpmailer/src/PHPMailer.php on line 2186', referer: ../register.php

This is line 2186 on my copy:
throw new Exception($this->lang('authenticate'));

You might try adding:
require $phpmailer['exception'];

> libphp-phpmailer is installed.
>
> PHP 8.2 is version.

Did you change anything at all from when this worked to when it did not
work? Like update rslight, make changes to mail server, update php,
anything? Just grasping here.

Does your mail server require authentication and if so, is it set properly?

I have made zero changes to phpmailer since we last addressed this, but I
certainly could make a git error (which I don't see atm)

> I reinstalled using upgrade-debian.sh and the problem persists.
>
> I added the replacement lines that you suggested above. Same problem persists.
>
> When I try to register I get a blank page after clicking submit, with just the PHP header and:
>
> "Create account: sybershock"
>
> with NOTHING below that.

That sure sounds like a phpmailer error. I believe it's trying to throw and
excpetion but can not.

> There is almost nothing predictable or cohesive about PHP, Linux, or the server configs. One version bump can re-arrange everything. This Byzantine mess makes sending simple text messages more tedious than building a skyscraper.

phpmailer should be illegal.

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<uqiu7i$3toi8$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=969&group=rocksolid.nodes.help#969

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception"
not found
Date: Wed, 14 Feb 2024 17:45:22 -0000 (UTC)
Organization: Baggy Jeans Mafia (sybershock.com)
Message-ID: <uqiu7i$3toi8$1@novabbs.org>
References: <20231227165309.5cb044f7@dev>
<1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
<36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>
<uqinhb$3t0j8$1@novabbs.org>
<2713597ac677ef11452cdcd4c711061b$1@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 14 Feb 2024 17:45:22 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="4121160"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Wed, 14 Feb 2024 17:45 UTC

On Wed, 14 Feb 2024 09:21:18 -0700
Retro Guy <retroguy@novabbs.org> wrote:

<snip>

> Did you change anything at all from when this worked to when it did not
> work? Like update rslight, make changes to mail server, update php,
> anything? Just grasping here.

Your guess is as good as mine. This system auto-updates daily.

> Does your mail server require authentication and if so, is it set properly?

It sure does. Was not a problem before. {scratches head}
<snip>
> That sure sounds like a phpmailer error. I believe it's trying to throw and
> excpetion but can not.

The exception I get makes no sense and doesn't give me anything to go on. Thanks, PHP!
<snip>

I'm testing with fresh installs to try and suss it out.

--
SugarBug <3883@sugar.bug>

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<uqivlh$3toi8$4@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=972&group=rocksolid.nodes.help#972

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception"
not found
Date: Wed, 14 Feb 2024 18:09:53 -0000 (UTC)
Organization: Baggy Jeans Mafia (sybershock.com)
Message-ID: <uqivlh$3toi8$4@novabbs.org>
References: <20231227165309.5cb044f7@dev>
<1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
<36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>
<uqinhb$3t0j8$1@novabbs.org>
<2713597ac677ef11452cdcd4c711061b$1@www.novabbs.org>
<uqiu7i$3toi8$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 14 Feb 2024 18:09:53 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="4121160"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: SugarBug - Wed, 14 Feb 2024 18:09 UTC

And now the registration phpmailer works on another fresh install from fresh clone.

Wiped git repo and freshly cloned.

Installed.

Works.

Go figure.

--
SugarBug <3883@sugar.bug>

Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception" not found

<uqj0rn$3toi8$5@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=973&group=rocksolid.nodes.help#973

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: rslight phpmailer error - Class "PHPMailer\PHPMailer\Exception"
not found
Date: Wed, 14 Feb 2024 18:30:15 -0000 (UTC)
Organization: Baggy Jeans Mafia (sybershock.com)
Message-ID: <uqj0rn$3toi8$5@novabbs.org>
References: <20231227165309.5cb044f7@dev>
<1t5huqlx67sy.18n6vpclvb0ba.dlg@40tude.net>
<36fbd0e0fb6b2b8e9aa94ca49be680a3@news.novabbs.org>
<uqinhb$3t0j8$1@novabbs.org>
<2713597ac677ef11452cdcd4c711061b$1@www.novabbs.org>
<uqiu7i$3toi8$1@novabbs.org>
<uqivlh$3toi8$4@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 14 Feb 2024 18:30:15 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="4121160"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: SugarBug - Wed, 14 Feb 2024 18:30 UTC

On Wed, 14 Feb 2024 18:09:53 -0000 (UTC)
SugarBug <3883@sugar.bug> wrote:

> And now the registration phpmailer works on another fresh install from fresh clone.
>
> Wiped git repo and freshly cloned.
>
> Installed.
>
> Works.
>
> Go figure.
>
> --
> SugarBug <3883@sugar.bug>

This was my fault here for not checking exim config and log. I was expecting my loose exim config to keep working, but updates made it stricter.

I think that the mail server did not like having just the domain name for all three identifiers in the 'from info'. When I set it to match the same as in authentication credentials the registration messages started working. So it was not phpmailer so much as the mail server telling phpmailer something it didn't like.

From exim log:

rejectlog:2024-02-14 12:48:18 H=(rocksolid.sybershock.com) [127.0.0.1] sender verify fail for <sybershock.com@sybershock.com>: Unrouteable address

It had worked before the other way, without verifying sender from header to auth info. So I did not think to check until just now. The current exim config now rigidly enforces the from header to match auth identity.

--
SugarBug <3883@sugar.bug>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor