You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any ideas? Might be connected to the v12 compatibility.
a var_dump($newApplication) does yield a result: object(Dan\Jobfair\Domain\Model\Application)#59575 (13) { ["uid":protected]=> int(238) ["_localizedUid":protected]=> NULL ["_languageUid":protected]=> int(0) ["_versionedUid":protected]=> NULL ["pid":protected]=> int(99) ["_isClone":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":private]=> bool(false) ["_cleanProperties":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":private]=> array(8) { ["uid"]=> int(238) ["pid"]=> int(99) ["title"]=> string(22) "AG25SprN - Willenbrock" ["name"]=> string(11) "Willenbrock" ["email"]=> string(23) "[email protected]" ["message"]=> string(14) "no attachments" ["attachment"]=> NULL ["jobs"]=> object(TYPO3\CMS\Extbase\Persistence\ObjectStorage)#58517 (6) { ["warning":"TYPO3\CMS\Extbase\Persistence\ObjectStorage":private]=> string(228) "You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\CMS\Extbase\Persistence\ObjectStorage. To retrieve the first result, you can use the rewind() and current() methods." ["storage":protected]=> array(0) { } ["isModified":protected]=> bool(false) ["addedObjectsPositions":protected]=> array(0) { } ["removedObjectsPositions":protected]=> array(0) { } ["positionCounter":protected]=> int(0) } } ["title":protected]=> string(22) "AG25SprN - Willenbrock" ["name":protected]=> string(11) "Willenbrock" ["email":protected]=> string(23) "[email protected]" ["message":protected]=> string(14) "no attachments" ["attachment":protected]=> NULL ["jobs":protected]=> object(TYPO3\CMS\Extbase\Persistence\ObjectStorage)#59573 (6) { ["warning":"TYPO3\CMS\Extbase\Persistence\ObjectStorage":private]=> string(228) "You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\CMS\Extbase\Persistence\ObjectStorage. To retrieve the first result, you can use the rewind() and current() methods." ["storage":protected]=> array(0) { } ["isModified":protected]=> bool(false) ["addedObjectsPositions":protected]=> array(0) { } ["removedObjectsPositions":protected]=> array(0) { } ["positionCounter":protected]=> int(0) } }
The text was updated successfully, but these errors were encountered:
TYPO3 v12 composer based
jobfair v5.0.2
PHP 8.1 as well as 8.3
If I use the default application template to apply for a job, I get this error regardless if I add an attachment:
Call to a member function getOriginalResource() on null
in /var/www/html/vendor/hov/jobfair/Classes/Controller/JobController.php line 648
Seems like $newApplication->getAttachment does nothing
jobfair/Classes/Controller/JobController.php
Line 648 in 9f3e992
If I add a var_dump($newApplication-getAttachment()); I get this:
`Call to undefined function Dan\Jobfair\Controller\getAttachment()
in /var/www/html/vendor/hov/jobfair/Classes/Controller/JobController.php line 641
Any ideas? Might be connected to the v12 compatibility.
a var_dump($newApplication) does yield a result:
object(Dan\Jobfair\Domain\Model\Application)#59575 (13) { ["uid":protected]=> int(238) ["_localizedUid":protected]=> NULL ["_languageUid":protected]=> int(0) ["_versionedUid":protected]=> NULL ["pid":protected]=> int(99) ["_isClone":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":private]=> bool(false) ["_cleanProperties":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":private]=> array(8) { ["uid"]=> int(238) ["pid"]=> int(99) ["title"]=> string(22) "AG25SprN - Willenbrock" ["name"]=> string(11) "Willenbrock" ["email"]=> string(23) "[email protected]" ["message"]=> string(14) "no attachments" ["attachment"]=> NULL ["jobs"]=> object(TYPO3\CMS\Extbase\Persistence\ObjectStorage)#58517 (6) { ["warning":"TYPO3\CMS\Extbase\Persistence\ObjectStorage":private]=> string(228) "You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\CMS\Extbase\Persistence\ObjectStorage. To retrieve the first result, you can use the rewind() and current() methods." ["storage":protected]=> array(0) { } ["isModified":protected]=> bool(false) ["addedObjectsPositions":protected]=> array(0) { } ["removedObjectsPositions":protected]=> array(0) { } ["positionCounter":protected]=> int(0) } } ["title":protected]=> string(22) "AG25SprN - Willenbrock" ["name":protected]=> string(11) "Willenbrock" ["email":protected]=> string(23) "[email protected]" ["message":protected]=> string(14) "no attachments" ["attachment":protected]=> NULL ["jobs":protected]=> object(TYPO3\CMS\Extbase\Persistence\ObjectStorage)#59573 (6) { ["warning":"TYPO3\CMS\Extbase\Persistence\ObjectStorage":private]=> string(228) "You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\CMS\Extbase\Persistence\ObjectStorage. To retrieve the first result, you can use the rewind() and current() methods." ["storage":protected]=> array(0) { } ["isModified":protected]=> bool(false) ["addedObjectsPositions":protected]=> array(0) { } ["removedObjectsPositions":protected]=> array(0) { } ["positionCounter":protected]=> int(0) } }
The text was updated successfully, but these errors were encountered: