Project

General

Profile

Actions

Bug #79644

closed

Export to .t3d on Root page throws Exception while including TypoScript or TSConfig from local files.

Added by Jan Stockfisch almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2017-02-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

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:

  1. Create a page in the pagetree
  2. Edit this page and go to resources tab
  3. Include Page TSConfig from extension
  4. Hit save
  5. Rightclick in the pagetree on this page
  6. Click on "Export to .t3d" in the "Branch Actions" section
  7. 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.

Actions #1

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)

Actions #2

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.

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Georg Ringer over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF