我将扩展名sf_event_mgt分叉并创建了一些schedulertasks . 如果我在前端使用userFunc调用execute()或手动启动任务,则一切正常 . 但是如果我用cronjob调用schedulertask和 /var/www/[...]/cli_dispatcher.phpsh scheduler
我总是得到
在/var/www/[...]/vendor/typo3/cms/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php:447中调用null上的成员函数getParentKeyFieldName()
错误似乎在实例化这些对象后直接发生:
$this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$this->eventRepository = $this->objectManager->get(EventRepository::class);
$this->notificationService = $this->objectManager->get(NotificationService::class);
在注释掉存储库行之后,不会显示任何异常 .
我已经清除了所有缓存并检查了php注释 .
使用的PHP版本:7.1.17和TYPO3版本:7.6.30
1 回答
找到解决方案:
如果安装了php7.0-igbinary,则Extbase Reflection Cache无法正常工作
https://forge.typo3.org/issues/56603#note-8