1

I have migrated a TYPO3 6.2.31 page to TYPO3 7.6.23

Most stuff works fine.

At the moment I have the Problem with a view helper.

I got this error:

Could not analyse class: "FluidTYPO3\Vhs\ViewHelpers\SwitchViewHelper" maybe not loaded or no autoloader? Class FluidTYPO3\Vhs\ViewHelpers\SwitchViewHelper does not exist

How can I fix this error?

Thanks!

Daniel
  • 6,916
  • 2
  • 36
  • 47
Felix
  • 5,452
  • 12
  • 68
  • 163

1 Answers1

2

The PHP class SwitchViewHelper has been removed between VHS version 2.4.0 & 3.0.0. Cause 3.0.0 was TYPO3 7 compatible, which includes its own SwitchViewHelper.

Depend, how you call such SwitchViewHelper in your FLUID templates - I guess something like

vhs:switch

You should change it to

f:switch

and also adapt to f:case, f:defaultCase ..

See https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Switch.html

jokumer
  • 2,249
  • 11
  • 22