derhansen / femanager_dmail_subscribe

Enables direct mail subscription fields in femanager
0 stars 6 forks source link

Problems after installation #2

Open Piperback opened 7 years ago

Piperback commented 7 years ago

Hi, I installed "femanager_dmail_subscribe" (V2.0.0) extension on a typo3 7.6.14 with Direct Mail 5.1.0 and femanager 2.6.0.

Directly afterwards (without any configuration, but with an active "femanager_dmail_subscribe" extension) I receive the following exception whenever I open a page containing femanager:

--> START OF DUMP Uncaught TYPO3 Exception

1289386765: Could not analyse class: "Derhansen\FemanagerDmailSubscribe\Controller\EditController" maybe not loaded or no autoloader? PHP Warning: Declaration of Derhansen\FemanagerDmailSubscribe\Controller\EditController::updateAction(Derhansen\FemanagerDmailSubscribe\Domain\Model\User $user) should be compatible with In2code\Femanager\Controller\EditController::updateAction(In2code\Femanager\Domain\Model\User $user) in /www/htdocs/w010c129/SED2017/typo3conf/ext/femanager_dmail_subscribe/Classes/Controller/EditController.php line 55 (More information)

TYPO3\CMS\Extbase\Object\Container\Exception\UnknownObjectException thrown in file /www/htdocs/w010c129/SED2017/typo3/sysext/extbase/Classes/Object/Container/ClassInfoFactory.php in line 37.

22 TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::buildClassInfoFromClassName("Derhansen\FemanagerDmailSubscribe\Controller\EditController")

/www/htdocs/w010c129/SED2017/typo3/sysext/extbase/Classes/Object/Container/Container.php: 00347: $classInfo = $this->getClassInfoCache()->get($classNameHash); 00348: if (!$classInfo instanceof \TYPO3\CMS\Extbase\Object\Container\ClassInfo) { 00349: $classInfo = $this->getClassInfoFactory()->buildClassInfoFromClassName($className); 00350: $this->getClassInfoCache()->set($classNameHash, $classInfo); 00351: } --> END OF DUMP

The only way currently to bring it back to life is to deactivate the "femanager_dmail_subscribe" extension. Does anyone have any experience on that or any idea how to get the extension working? Help is very welcome ...

I already tried to add the content of "ext_typoscript_setup.txt" to TSconfig of a Page containing femanger plug in, but it still crashes.

Thanks in advance & best regards, Ralf

derhansen commented 7 years ago

The problem is related to femanager and PHP7. See https://forge.typo3.org/issues/76290

I'm afraid we have to wait for an update of femanager

Piperback commented 7 years ago

Thanks for that fast answer. I will take a look whether we can go back to PHP5.6 or not.

Piperback commented 7 years ago

With PHP5.6 the crash does not occur, but I have a new and maybe more confusing problem:

After activating the extension "femanager_dmail_subscribe" the "FE Manager" in the backend has only two entries. After deactivating this extension all FE users are back in the list.

I found out that these users have '0' in the column "tx_extbase_type". All others have 'Mittwald\Typo3Forum\Domain\Model\User\FrontendUser'.

After changing the field "tx_extbase_type" for a user from 'Mittwald\Typo3Forum\Domain\Model\User\FrontendUser' to '0' in the database, the user apears in the "FE Manager" list (BE). Thus the idea was to change all fields of this column to '0' and set the default value of that field like described in Torben's blog also to '0' (TSConf of root page): https://www.derhansen.de/2012/06/zugriff-auf-frontend-user-tabelle-aus.html

But after that the user loses all rights to "typo3forum". "typo3forum" needs to have "tx_extbase_type"='Mittwald\Typo3Forum\Domain\Model\User\FrontendUser' in order to work properly.

Does anybody have any idea to get both extensions back to work? Sorry, I'm no extbase expert at all ...

Piperback commented 7 years ago

Did anyone find a solution to let the extension "femanager_dmail_subscribe" work with the extension "typo3forum" from Mittwald?