in2code-de / luxletter

Newsletter system for TYPO3

Home Page:https://www.in2code.de/agentur/typo3-extensions/luxletter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{"exception":"Could not build a valid URL to unsubscribe page to pid10 in site \"mysitename\""}

EnzephaloN opened this issue · comments

Using luxletter 24.0.2 in TYPO3 12.4.11
(Updated to 25.0.2 - same problem)

Added a newsletter, send to queue. Running send.

Found in log-table:

{"exception":"Could not build a valid URL to unsubscribe page to pid10 in site "mysitename""}

TestEmail was send successfully. But none of the queued mails can be send.

Page10 has the unsubscribe2 Plugin

Hi, can you please test with version 25.0.3 and give me feedback - maybe this will help.

Hello

Sorry, but 25.0.3 does not fix this problem. Newsletter stuck, cause of "Could not build a valid URL to unsubscribe page to pid10 in site "mysitename"" error in log...

I did the following
in UnsubscribeService I added those lines:

[...]
} catch (Throwable $exception) {
error_log("U: ".debug($this->user->getUid()));
error_log("N: ".debug($this->newsletter->getUid()));
error_log("H: ".debug($this->user->getUnsubscribeHash()));
            throw new MisconfigurationException(
[...]

The output on console was:

73
8

This means, $this->user-getUid() returns correct 73 and $this->newsletter->getUid() returns correct 8. But $thi-s>user->getUnsubscribeHash() is empty!

Thx, that helps a bit. Pls check if fe_users.crdate is set for the user that wants to unsubscribe.

Hello

Thank you for your great work and this great extension.
It's clear now, that I have to update my users. Because I've imported them into DB, there is no crdate set.

Maybe you can add this to a "troubleshoot"-documentation...

I will spend some time to make the errormessage better - thx for your feedback