migration from TYPO3 6 to 7 view helper error - typo3

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!

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

Related

Typo3 problem: internal links not rendered correctly after upgrade to 9.5.11

I have just updated my typo3 site from 8.7.29 to 9.5.11 following the official documentation. From technical point of view everything went fine: the upgrade wizard ran successfully in all the required steps and there are no complains from all the available checking tools (database, extensions,...).
The additional problem was that I had to migrate from css_styled_content to fluid_styled_content (because scc_styled_content is not supported anymore by typo3 9). So I modified my old template to work with fluid. After that everything is fine except the fact that all the internal links are not rendered correctly. In particular in the FE all the internal links are reported as:
<a class="internal-link" href="t3://page?uid=246" title="Opens internal link in current window">My link</a>
So obviously typolinks are not parsed correctly.
Some other users reported a similar problem when the extension frontend editing is used. In my case the problem is still there even if this extension is disabled...
Do you have any idea on what is going on?
Thanks a lot for your help!

How to use mount and QueryStringUrlCodingStrategy in wicket 6.x or 7.x

I have code as shown below,
mount(new QueryStringUrlCodingStrategy(pwdRstHomeURl.substring(pwdRstHomeURl.lastIndexOf('/')), UserHome.class));
How can I modify this code into 6.x or 7.x?
You can simply use mountPage wicket 1.5 onwards.
mountPage(pwdRstHomeURl.substring(pwdRstHomeURl.lastIndexOf('/'), UserHome.class);
For more information take a look at this page

Zend/Controller/Action.php file missing

I'm new to Zend framework, and was trying out the Guestbook tutorial that Zend has on it's web site. I have the latest framework downloaded and setup properly; php.ini include_files has the library location set correctly. In the Guestbook tutorial, the GuestbookController extends Zend_Controller_Action and that's what I typed, but I keep getting error stating that Zend_Controller_Action is not found. Turns out, the folder Controller is missing from /library/Zend. I tried re-downloading Zend Framework thinking I might have accidentally deleted it, but it's not in the newly downloaded framework directory either. So, where can I get the Controller folder that contains all the required class files? Or how can I fix the issue? Any help is much appreciated.
Thanks
Kuni
It sounds like the tutorial you are following is for ZF1. ZF2 was released last year and works quite differently. You might want to try the quickstart from the current manual instead:
http://framework.zend.com/manual/2.0/en/user-guide/overview.html
Alternatively you can still download version 1.12 from the Zend site.

zendform not loading

i am using zend framework, i use auto loader to load the class, i create a Zend_Form in this page http://tedxnanjing.com/displayevent/TEDxNanjing%2Bcoming%2Bsoon%2B11%252F27
but the form is not loading, this page works fine in my own local environment , except i am using php 5.3 , but i check that it should work with php 5.2.4 and later.
why this happening?
this is a test page with more detail http://zend.anpingsiwang.info/events/TEDxNanjing%2Bcoming%2Bsoon%2B11%252F27
found the bug. it is the addFilter('HTMLEntities') that keeps the form not being rendered.
haven't found why this happening , may something with my environment or a zend bug, just point it out first.

Call to undefined method TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA()

Trying to install RAW HTML extension (now I know it was stupid), got Uncaught TYPO3 Exception
Call to undefined method TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA()
Error thrown in file
/mnt/web116/e0/97/5985097/htdocs/CMS/typo3conf/ext/ttnews_html/ext_tables.php in line 14.
typo3 8.7.27
What should I do now? Have I broken everithing? Please help!
Normally you would deactivate the extension from the extension manager.
If you cannot access the extension manager any more, you can remove offending extensions by adjusting the PackageStates.php.
If it is something that has been cached, you can delete ./typo3temp and let the install tool recreate it.
loadTCA() has been removed in TYPO3 v7:
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/7.0/Breaking-61785-LoadTcaFunctionRemoved.html
EXT:ttnews_html is outdated (over 10 years old!).
Please use maintained extensions and those that fit your TYPO3 version.