Zend Framework 3: HeadTitle() __toString() error

Posted on Tags ,

If you are new to Zend Framework you might land on this error after trying to use MvcTranslator module

Fatal error: Method Zend\View\Helper\HeadTitle::__toString() must not throw an exception

The solution to this error is very simple, HeadTitle is using the MvcTranslator and the translator needs the PHP extension intl, so just install and enable php-intl, no matter what PHP version you have.

More information here and here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.