Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

PHP Fatal error: Uncaught exception 'Zend\\Stdlib\\Exception\\RuntimeException' with message 'No wrapper found supporting "UTF-8"' #4928

Closed
twenta opened this issue Aug 5, 2013 · 9 comments

Comments

@twenta
Copy link

twenta commented Aug 5, 2013

Following the guide http://framework.zend.com/manual/2.2/en/user-guide/skeleton-application.html to set up the skeleton app, I get this apache2.2 php error
PHP Fatal error: Uncaught exception 'Zend\Stdlib\Exception\RuntimeException' with message 'No wrapper found supporting "UTF-8"'
Here the full output:
_PHP Fatal error: Uncaught exception 'Zend\Stdlib\Exception\RuntimeException' with message 'No wrapper found supporting "UTF-8"' in /www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Stdlib/StringUtils.php:137\nStack trace:\n#0 /www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Validator/Hostname.php(487): Zend\Stdlib\StringUtils::getWrapper('UTF-8')\n#1 /www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Http/PhpEnvironment/Request.php(279): Zend\Validator\Hostname->isValid('zf.site')\n#2 /www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Http/PhpEnvironment/Request.php(82): Zend\Http\PhpEnvironment\Request->setServer(Object(Zend\Stdlib\Parameters))\n#3 /www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Mvc/Service/RequestFactory.php(32): Zend\Http\PhpEnvironment\Request->_construct()\n#4 [internal function]: Zend\Mvc\Service\RequestFactory->createService(Object(Ze in /www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 860

@Bittarman
Copy link
Member

ZF2 requires either mb_string or iconv for this functionality at least one of which is usually present and enabled in the vast majority of PHP installations.
Without one of these extensions it is not possible to reliably work with multi-byte encoded strings in php.

@twenta
Copy link
Author

twenta commented Aug 5, 2013

Ok, that was easy. Thx

@nidelson
Copy link
Contributor

nidelson commented Nov 1, 2013

Obrigado

@coderpr
Copy link

coderpr commented Jul 26, 2016

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (DoctrineModule) could not be initialized.' in C:\xampp\htdocs\Hotties\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php:189 Stack trace: #0 C:\xampp\htdocs\Hotties\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(163): Zend\ModuleManager\ModuleManager->loadModuleByName(Object(Zend\ModuleManager\ModuleEvent)) #1 C:\xampp\htdocs\Hotties\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(90): Zend\ModuleManager\ModuleManager->loadModule('DoctrineModule') #2 [internal function]: Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent)) #3 C:\xampp\htdocs\Hotties\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent)) #4 C:\xampp\htdocs\Hotties\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php in C:\xampp\htdocs\Hotties\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php on line 189

@coderpr
Copy link

coderpr commented Jul 26, 2016

please solve this error

@GeeH
Copy link

GeeH commented Jul 26, 2016

@coderpr what is Hotties please?

@coderpr
Copy link

coderpr commented Jul 26, 2016

the name of the project...GeeH

@coderpr
Copy link

coderpr commented Jul 26, 2016

i need help Geeh

@GeeH
Copy link

GeeH commented Jul 26, 2016

@coderpr this is not a bug in the framework, it's a userland bug please seek help in appropriate channels (#zftalk IRC channel on Freenode).

@zendframework zendframework locked and limited conversation to collaborators Jul 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants