direct_mail icon indicating copy to clipboard operation
direct_mail copied to clipboard

Create by draft triggered through scheduler stops caused by malformed URI

Open senorcastor opened this issue 4 years ago • 3 comments

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.

senorcastor avatar Aug 20 '21 15:08 senorcastor

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?

hannasophieungar avatar Oct 20 '21 07:10 hannasophieungar

@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 avatar Jul 29 '22 11:07 peterkraume

@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).

Patta avatar Jul 29 '22 11:07 Patta