Project

General

Profile

Actions

Bug #80388

closed

ERROR while creating a Reference of a PDF

Added by Michael Gruber about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2017-03-22
Due date:
% Done:

0%

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

Description

While creating a Reference of a PDF i get following ERROR and the Info appears ERROR 500:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Catchable Fatal Error: Method TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::__toString() must return a string value in /html/typo3/typo3_src-8.6.1/typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php line 289 | TYPO3\CMS\Core\Error\Exception thrown in file /html/typo3/typo3_src-8.6.1/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 113. Requested URL: http://www.myprivatedomain.com/typo3/index.php?ajaxID=%2Fajax%2Frecord%2Finline%2Fcreate&ajaxToken=16e4515f596df5de16be5b1cf2e68627da325634

Also in install-Tool, there is following Error at Image Testing ( Read PDF / Read AI ):
Image generation failed
ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['processor_path'] and ['GFX']['processor_path_lzw'] and ensure Ghostscript is installed on your server.

the path-variables are correct and ghostsctipt is installed

TYPO3 Version: 8.6.1


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #80071: json_encode NAN and INF error in CropVariantCollection.phpClosed2017-03-01

Actions
Actions #1

Updated by Michael Gruber about 7 years ago

  • Priority changed from Should have to Must have
Actions #2

Updated by Michael Gruber about 7 years ago

  • Subject changed from ERROR while creating an Reference of a PDF to ERROR while creating a Reference of a PDF
Actions #3

Updated by Michael Gruber about 7 years ago

a dirty fix is the following:

in File
/typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php
change Line 289
from: $elementValue = (string)$cropVariantCollection;
to $elementValue = (string)$config['cropVariants'];

Actions #4

Updated by Helmut Hummel about 7 years ago

  • Status changed from New to Closed

I close this as duplicate of #80071

Please add some more hints how to reproduce it there.

I'm especially interested in knowing the exact PHP version used, an example file which is used and the field where the refrence is created. Is it pages:media, tt_content:media, …?

Actions

Also available in: Atom PDF