Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Undefined global variable $TYPO3_REQUEST in vendor/typo3/cms-bac… #516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martin-git-kristensen
Copy link

resolve issue: #401

@martin-git-kristensen
Copy link
Author

The code is originally from @TimWilms :-)

@Patta
Copy link
Contributor

Patta commented Aug 26, 2024

can not confirm that this change works. now i get another warning "No site found in root line of page 1" and the mail from draft is not created.

Mon, 26 Aug 2024 16:35:01 +0200 [ERROR] request="b6046ffd3370c" component="TYPO3.CMS.Scheduler.Task.AbstractTask": Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\AbstractTask, UID: 104- SiteNotFoundException: No site found in root line of page 1, in file /var/www/html/vendor/typo3/cms-core/Classes/Site/SiteFinder.php:135 - {"class":"TYPO3\\CMS\\Scheduler\\Task\\AbstractTask","uid":104,"exception":"TYPO3\\CMS\\Core\\Exception\\SiteNotFoundException: No site found in root line of page 1 in /var/www/html/vendor/typo3/cms-core/Classes/Site/SiteFinder.php:135\nStack trace:\n#0 /var/www/html/vendor/directmailteam/direct-mail/Classes/Module/MainController.php(90): TYPO3\\CMS\\Core\\Site\\SiteFinder->getSiteByPageId(1)\n#1 /var/www/html/vendor/typo3/cms-core/Classes/Utility/GeneralUtility.php(3215): DirectMailTeam\\DirectMail\\Module\\MainController->__construct()\n#2 /var/www/html/vendor/directmailteam/direct-mail/Classes/Scheduler/MailFromDraft.php(68): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('DirectMailTeam\\\\...')\n#3 /var/www/html/vendor/typo3/cms-scheduler/Classes/Scheduler.php(192): DirectMailTeam\\DirectMail\\Scheduler\\MailFromDraft->execute()\n#4 /var/www/html/vendor/typo3/cms-scheduler/Classes/Command/SchedulerCommand.php(255): TYPO3\\CMS\\Scheduler\\Scheduler->executeTask(Object(DirectMailTeam\\DirectMail\\Scheduler\\MailFromDraft))\n#5 /var/www/html/vendor/typo3/cms-scheduler/Classes/Command/SchedulerCommand.php(194): TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand->executeOrStopTask(Object(DirectMailTeam\\DirectMail\\Scheduler\\MailFromDraft))\n#6 /var/www/html/vendor/typo3/cms-scheduler/Classes/Command/SchedulerCommand.php(120): TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand->loopTasks()\n#7 /var/www/html/vendor/symfony/console/Command/Command.php(298): TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#8 /var/www/html/vendor/symfony/console/Application.php(1058): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#9 /var/www/html/vendor/symfony/console/Application.php(301): Symfony\\Component\\Console\\Application->doRunCommand(Object(TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#10 /var/www/html/vendor/symfony/console/Application.php(171): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#11 /var/www/html/vendor/typo3/cms-core/Classes/Console/CommandApplication.php(114): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#12 /var/www/html/vendor/typo3/cms-cli/typo3(23): TYPO3\\CMS\\Core\\Console\\CommandApplication->run()\n#13 /var/www/html/vendor/typo3/cms-cli/typo3(24): {closure}()\n#14 /var/www/html/vendor/bin/typo3(119): include('/var/www/html/v...')\n#15 {main}"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants