Bug #79644
closedExport to .t3d on Root page throws Exception while including TypoScript or TSConfig from local files.
100%
Description
Trying to export a page which includes local(from extension) TypoScript or TSConfig via include section throws this exception:
#1476107295: PHP Warning: A non-numeric value encountered in /var/www/html/vendor/typo3/cms/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 885
Steps to reproduce:
- Create a page in the pagetree
- Edit this page and go to resources tab
- Include Page TSConfig from extension
- Hit save
- Rightclick in the pagetree on this page
- Click on "Export to .t3d" in the "Branch Actions" section
- Excecption should be thrown
Encounter origin:
This exception is thrown in TYPO3\CMS\Impexp\ImportExport.php on line 326, because of a wrong argument gets passed: $r['size'] is an empty string.
The empty string is set in: TYPO3\CMS\Impexp\ImportExport.php on line 643.
Updated by Georg Ringer almost 8 years ago
- Status changed from New to Needs Feedback
- Sprint Focus set to Stabilization Sprint
can you test that by changing the line $pInfo['size'] = '';
to $pInfo['size'] = 0;
? I am pretty sure that this is caused by php7.1 being more strict (and correct)
Updated by Jan Stockfisch almost 8 years ago
Using $pInfo['size'] = 0
seems to work very well. No Exceptions while exporting a page with TS and PageTS.
Updated by Gerrit Code Review over 7 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51876
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51876
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51899
Updated by Georg Ringer over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset be487dd9af8c2990a0a5d1ba56bd5a77fee28298.