flux icon indicating copy to clipboard operation
flux copied to clipboard

Bug? Attempt to read property "workspace" on null

Open afle opened this issue 2 years ago • 1 comments

Hi,

PHP Warning: Attempt to read property "workspace" on null in <...>/typo3conf/ext/flux/Classes/ViewHelpers/Content/GetViewHelper.php line 132

Currently in use: Typo3 11.5.24 Flux 9.5.0

afle avatar Feb 17 '23 08:02 afle

Hi @afle,

Are you by any chance calling this ViewHelper in a backend context? If so, that is not supported and would explain the problem.

If you are using it in a frontend context and you see this error, I would advise you to first try a more recent version of Flux (9.5.0 is pretty outdated by now). And if that still fails, I would be grateful if you could try with dev-development which has been changed in this ViewHelper to use the Context class which definitely should not be causing any issue like this.

NamelessCoder avatar Feb 17 '23 13:02 NamelessCoder