Project

General

Profile

Actions

Bug #91404

closed

After update from 9.5.16 to 9.5.17 I get an error 'Cannot serialize'

Added by Vasyl Mosiychuk almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Reports
Target version:
Start date:
2020-05-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I just updated core from 9.5.16 to 9.5.17 after that I get an error

(1/1) #1588784141 BadMethodCallException
Cannot serialize TYPO3\CMS\Extbase\Reflection\ReflectionService

In my log, I seeing it

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1588784141: Cannot serialize TYPO3\CMS\Extbase\Reflection\ReflectionService | BadMethodCallException thrown in file /usr/share/typo3/typo3_src-9.5.17/typo3/sysext/core/Classes/Security/BlockSerializationTrait.php in line 30. Requested URL: https://dev9.typo3.org.ua/forum/typo3-cms/install-typo3

Files

stack trace.html (310 KB) stack trace.html Markus Hofmann, 2020-05-14 17:14
stack trace.html (806 KB) stack trace.html Vasyl Mosiychuk, 2020-05-14 17:49

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #91387: Relax constraints on serializing objectsClosedOliver Hader2020-05-13

Actions
Has duplicate TYPO3 Core - Bug #91393: Cachingproblems after recent TYPO3 9.5.17 Closed2020-05-14

Actions
Actions #1

Updated by Oliver Hader almost 4 years ago

  • Target version set to 9.5.18 & 10.4.3
Actions #2

Updated by Oliver Hader almost 4 years ago

Can you please provide a stack trace and describe what actually happens on your system, or where/when this message occurs. How can it be reproduced? Thx

Actions #3

Updated by Oliver Hader almost 4 years ago

  • Related to Bug #91387: Relax constraints on serializing objects added
Actions #4

Updated by Vasyl Mosiychuk almost 4 years ago

Oliver Hader wrote:

Can you please provide a stack trace and describe what actually happens on your system, or where/when this message occurs. How can it be reproduced? Thx

Yes, I will do it later...

Now I am researching it and search for the reason

Here place for test because it only happens here https://dev10.typo3.org.ua/forum/

Actions #5

Updated by Markus Hofmann almost 4 years ago

According to our system the problem occurs when logging in with a frontend user. (9.5.17)

You will find the complete error output from my local system in stack trace.html

Actions #6

Updated by Vasyl Mosiychuk almost 4 years ago

Markus Hofmann wrote:

According to our system the problem occurs when logging in with a frontend user. (9.5.17)

You will find the complete error output from my local system in stack trace.html

It is my stack trace.html...

I already know what is the issue... in my case and yours too ... it is UncacheViewHelper

https://fluidtypo3.org/viewhelpers/vhs/master/Render/UncacheViewHelper.html

In my template I use... I need this element not cached

<v:render.uncache partial="ItemLayout/Forums/Button/AddNew" arguments="{uid:'{pageData.uid}',navtitle:'{pageData.nav_title}'}"/>

In my and in your stack trace I found him... when I comment him an error not appeared...

Now is stay question, how is it resolve?

I use VHS: Fluid ViewHelpers version 6.0.0

Actions #7

Updated by Oliver Hader almost 4 years ago

Vasyl Mosiychuk wrote:

Markus Hofmann wrote:
I use VHS: Fluid ViewHelpers version 6.0.0

Thanks, that helps... https://github.com/FluidTYPO3/vhs/blob/development/Classes/View/UncacheTemplateView.php#L48
ext:vhs is putting the whole rendering stack into cache - which is "suboptimal" in general, but with recent changes denied.

Actions #8

Updated by Vasyl Mosiychuk almost 4 years ago

Oliver Hader wrote:

Thanks, that helps... https://github.com/FluidTYPO3/vhs/blob/development/Classes/View/UncacheTemplateView.php#L48
ext:vhs is putting the whole rendering stack into cache - which is "suboptimal" in general, but with recent changes denied.

Thanks!

...is there a way to solve this problem?

Actions #9

Updated by Gerrit Code Review almost 4 years 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/c/Packages/TYPO3.CMS/+/64494

Actions #10

Updated by Gerrit Code Review almost 4 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/c/Packages/TYPO3.CMS/+/64494

Actions #11

Updated by Oliver Hader almost 4 years ago

  • Has duplicate Bug #91393: Cachingproblems after recent TYPO3 9.5.17 added
Actions #12

Updated by Vasyl Mosiychuk almost 4 years ago

Thank everyone! Sorry! Who can say more about it because I can not understand whether the issue comes from TYPO3 or VHS ViewHelper?

I am just in case create a new issue here https://github.com/FluidTYPO3/vhs/issues/1647

Actions #13

Updated by Gerrit Code Review almost 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64494

Actions #14

Updated by Gerrit Code Review almost 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64494

Actions #15

Updated by Gerrit Code Review almost 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64494

Actions #16

Updated by Gerrit Code Review almost 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64494

Actions #17

Updated by Gerrit Code Review almost 4 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64494

Actions #18

Updated by Gerrit Code Review almost 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64532

Actions #19

Updated by Anonymous almost 4 years ago

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

Updated by Gerrit Code Review almost 4 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64532

Actions #21

Updated by Gerrit Code Review almost 4 years ago

Patch set 3 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64532

Actions #22

Updated by Philip Heidenreich almost 4 years ago

Same error with FileLockStrategy. TYPO3 v9.5.17, vhs v6.0.0 (as well as 5.2.0) and changes from patch applied.

(1/1) #1588784141 BadMethodCallException
Cannot serialize TYPO3\CMS\Core\Locking\FileLockStrategy

Actions #23

Updated by Anonymous almost 4 years ago

  • Status changed from Under Review to Resolved
Actions #24

Updated by Jacco van der Post almost 4 years ago

Philip Heidenreich wrote:

Same error with FileLockStrategy. TYPO3 v9.5.17, vhs v6.0.0 (as well as 5.2.0) and changes from patch applied.

(1/1) #1588784141 BadMethodCallException
Cannot serialize TYPO3\CMS\Core\Locking\FileLockStrategy

I got the same

Actions #25

Updated by Philip Heidenreich almost 4 years ago

Solution in https://forge.typo3.org/issues/91387#note-9 seems to work to write into the cache. But a page reload and reading from cache returns following error:

(1/1) #1588784142 BadMethodCallException
Cannot unserialize TYPO3\CMS\Core\Locking\FileLockStrategy

Removing __wakeup method works. Can anyone name side-effects or is this fine from a security point of view as well?

Actions #26

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions #27

Updated by Jacco van der Post almost 4 years ago

Philip Heidenreich wrote:

Same error with FileLockStrategy. TYPO3 v9.5.17, vhs v6.0.0 (as well as 5.2.0) and changes from patch applied.

(1/1) #1588784141 BadMethodCallException
Cannot serialize TYPO3\CMS\Core\Locking\FileLockStrategy

It seems to be solved now with 9.5.18.

Thanks guys!

Actions #28

Updated by Vasyl Mosiychuk almost 4 years ago

Jacco van der Post wrote:

(1/1) #1588784141 BadMethodCallException
Cannot serialize TYPO3\CMS\Core\Locking\FileLockStrategy

It seems to be solved now with 9.5.18.

Thanks guys!

System:
- PHP 7.2
- TYPO3 9.5.18
- VHS 6.0.0

No, it is not resolved! I had updated to 9.5.18 but I still see this error...

but not immediately ... something changed

The previous time I saw an error immediately as I go to the page where I have this element with VHS...

This time all not so... I get an error when you view the same page again

I get an error when I visit one more time the page (revisit a page) where I have this element with VHS (<v:render.uncache/>)...

Step 1:

I go to the page where I have this element with VHS (<v:render.uncache/>). - No error

Step 2:

I go to another any page where I do not have this element with VHS (<v:render.uncache/>). - No error

Step 3:

I return to the page where I have this element with VHS (<v:render.uncache/>).... which I have already visited - I get this error

Conclusion:

I get an error when I view the same page (a content element with VHS - (<v:render.uncache/>).) again...

After Clear cache, the error disappears...

But when I repeat steps 1 - 2 - 3 ... I get an error again

Actions #29

Updated by Oliver Hader almost 4 years ago

  • Status changed from Closed to Needs Feedback
Actions #30

Updated by Oliver Hader almost 4 years ago

Philip Heidenreich wrote:

Solution in https://forge.typo3.org/issues/91387#note-9 seems to work to write into the cache. But a page reload and reading from cache returns following error:

(1/1) #1588784142 BadMethodCallException
Cannot unserialize TYPO3\CMS\Core\Locking\FileLockStrategy

Removing __wakeup method works. Can anyone name side-effects or is this fine from a security point of view as well?

Not suggested from a security point of view

Actions #31

Updated by Oliver Hader almost 4 years ago

Vasyl Mosiychuk wrote:

Jacco van der Post wrote:

(1/1) #1588784141 BadMethodCallException
Cannot serialize TYPO3\CMS\Core\Locking\FileLockStrategy

It seems to be solved now with 9.5.18.

Thanks guys!

System:
- PHP 7.2
- TYPO3 9.5.18
- VHS 6.0.0

No, it is not resolved! I had updated to 9.5.18 but I still see this error...

but not immediately ... something changed

The previous time I saw an error immediately as I go to the page where I have this element with VHS...

The initial report was on ReflectionCache and serialize. Is this still the same?
In case it's different, could you please create a new issue and attach the error stack trace? Thanks in advance!

Actions #32

Updated by Oliver Hader almost 4 years ago

  • Status changed from Needs Feedback to Closed
Actions #33

Updated by Vasyl Mosiychuk over 3 years ago

No, it is not resolved! I still see this error...

Actions #34

Updated by Markus Klein over 3 years ago

Please note https://forge.typo3.org/issues/91404#note-31

In case it's different, could you please create a new issue and attach the error stack trace? Thanks in advance!

Actions

Also available in: Atom PDF