Bug #54425

TYPO3\CMS\Frontend\ContentObject\ContentObject not found

Added by Marcin Sągol over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2013-12-15
Priority:Must have Due date:
Assigned To:- % Done:

100%

Category:Frontend Spent time: -
Target version:next-patchlevel
TYPO3 Version:6.2 Is Regression:No
PHP Version:5.4 Sprint Focus:
Complexity:

Description

After latest commit: https://github.com/TYPO3/TYPO3.CMS/commit/6eb7a548125a945316f8ad32eb3e5481a28ae2d6 fontend is broken. I have the following error message:

PHP Fatal error: Class 'TYPO3\\CMS\\Frontend\\ContentObject\\ContentObject' not found in /web/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4171, referer: http://domain.com/


Related issues

related to Core - Bug #53682: Exception '$toolbarItem "shortcuts" must implement interf... Resolved 2013-11-15

Associated revisions

Revision 942366bc
Added by Helmut Hummel over 1 year ago

[BUGFIX] Fix side effect for new class instantiation

With commit 6eb7a54 performance optimized class
instantiation code has been committed. This code
removed the side effect of a reflection exception
being thrown when a not existing class is instantiated.

Code in ContentObjectRenderer relied on this side
effect, so we have to fix that and properly test
if the class exists instead.

Additionally this change adds some more comments
to the new instantiation code that has been forgotten
in the last commit.

Resolves: #54425
Releases: 6.2
Change-Id: I8962434d60f80daf77ccdce7a8148e26f8fee267
Reviewed-on: https://review.typo3.org/26440
Reviewed-by: Marcin S?gol
Tested-by: Marcin S?gol
Reviewed-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Anja Leichsenring
Reviewed-by: Anja Leichsenring
Tested-by: Tobias Liegl
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer

History

#1 Updated by Markus Klein over 1 year ago

That class does not exist. Did you copy the complete error message? What is the complete stack trace?

#2 Updated by Marcin Sągol over 1 year ago

Hi Markus,
i just cut off some long paths from this message, they are not important here:

[Sun Dec 15 12:57:00 2013] [warn] [client 127.0.0.1] mod_fcgid: stderr: PHP Fatal error: Class 'TYPO3\\CMS\\Frontend\\ContentObject\\ContentObject' not found in /var/www/clients/client1/web8/web/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4171, referer: http://domain.com

The sam error message shows up if i open frontpage or any other.

If i apply this commit i have only blank white page on frontend, and this one entry in server error.log

If if remove this last commit (git reset --hard HEAD^1) T3 works just fine.

#3 Updated by Tobias Liegl over 1 year ago

I get the same error message with latest master - but only on pages with an image element. And only if the image orientation is not the standard centered one.

#4 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New 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/26440

#5 Updated by Gerrit Code Review over 1 year 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/26440

#6 Updated by Helmut Hummel over 1 year ago

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

Also available in: Atom PDF