contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

Contao 4.6.x-dev: Attempted to load class "Transliterator" from the global namespace. Did you forget a "use" statement? #1667

Closed gerritlo closed 6 years ago

gerritlo commented 6 years ago

Hey, I've created a blank installation via composer from 4.6.x-dev and get the error above.

The log says:

[2018-08-13 06:57:35] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"http://kl.dev/contao?act=edit&do=page&id=4&mode=2&pid=0&ref=khCDLz02&rt=eSCrtDpKP04q9L64YQAAwlFQR68_f-l2hrn2FDS1Gz4","method":"POST"} []
[2018-08-13 06:57:35] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "Transliterator" from the global namespace. Did you forget a "use" statement?" at /Users/gber/Development/kl_contao/vendor/ausi/slug-generator/src/SlugGenerator.php line 328 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"Transliterator\" from the global namespace.\nDid you forget a \"use\" statement? at /Users/gber/Development/kl_contao/vendor/ausi/slug-generator/src/SlugGenerator.php:328)"} []

I receive the error after saving a new site entry point in the blank site tree and using PHP 7.1.14

Thanks!

dmolineus commented 6 years ago

Contao required the php extension intl, which obviously is missing in your system:

http://php.net/manual/de/class.transliterator.php

aschempp commented 6 years ago

FYI, looks like intl was available on your CLI but not in the web server. Otherwise Composer would have told you it's missing.