direct_mail
direct_mail copied to clipboard
Create by draft triggered through scheduler stops caused by malformed URI
Hello,
the scheduler task "Create by draft" is triggered by the scheduler it ends up with the warning the URI is malformed.
title="Ausführung fehlgeschlagen: 1436717322, The parsedUri "http:///home/www/xcy/html/typo3/typo3/sysext/core/bin/typo3" appears to be malformed"
Triggering the task manually works as aspected.
As far as I could debug within DirectMailUtility.php in line 1455 this call leads to this issue.
$result = [
'baseUrl' => $cObj->typolink_URL([
'parameter' => 't3://page?uid=' . (int)$row['page'],
'forceAbsoluteUrl' => true,
'linkAccessRestrictedPages' => true
]),
'htmlUrl' => '',
'plainTextUrl' => ''
];
I'm on a TYPO3 10.4.20 Current version of Direct Mail. Configured like the manual it describes. Sending newsletter and fetching content works. One site in TYPO3.
Hello, I have the same problem in YPO3 10.4 at the moment with direct_mail 7.0.0. Will there be a fix or troubleshooting for this soon?
@senorcastor @hannasophieungar I've created a patch to fix this problem. Maybe you want to test it.
If you need to test this patch on a development machine with a different base URL from your site configuration, make sure to run the scheduler with the proper context, e.g. like this:
TYPO3_CONTEXT=Development/PK ./typo3cms scheduler:run
@peterkraume thanks for your patch. it works for me. my workaround before was to add the HTTP_HOST env variable to the cronjob (https://stackoverflow.com/a/69466631).