Git Product home page Git Product logo

Comments (15)

pegasus1982 avatar pegasus1982 commented on July 22, 2024 2

I uninstalled php and installed all from scratch.
And it worked now.

from slug-generator.

ausi avatar ausi commented on July 22, 2024

The error message indicates that the PHP intl extension is not installed or not activated.

Please check the intl section in your phpinfo to see if the extension is active.

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

Of course I activated php intl extension.

from slug-generator.

ausi avatar ausi commented on July 22, 2024

But the Normalizer class is still not available?

Can you please check if the Locale class is present in your PHP setup?
var_dump(class_exists('Locale'));

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

Let me check

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

it returns bool(true).

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

image
image

from slug-generator.

ausi avatar ausi commented on July 22, 2024

And var_dump(class_exists('Normalizer')); is false ?

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

No it is bool(true).

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

The weird thing is that this package works on windows, but my server was installed on ubuntu.
And I want it would work definitely.
But it doesn't work.

from slug-generator.

ausi avatar ausi commented on July 22, 2024

In the initial comment you posted the error message of a ClassNotFoundException which cannot happen if class_exists('Normalizer') returns true.

Are you sure you executed the class_exists() code in the same environment where the slug library shows this error?

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

Let me check

from slug-generator.

pegasus1982 avatar pegasus1982 commented on July 22, 2024

Well, it always returns true

from slug-generator.

ausi avatar ausi commented on July 22, 2024

Even if you put the var_dump(class_exists('Normalizer')); in the file vendor/ausi/slug-generator/src/SlugGenerator.php on line 79:

$text = \Normalizer::normalize($text, \Normalizer::FORM_C);

you get true but a ClassNotFoundException gets thrown on the next line?

from slug-generator.

ausi avatar ausi commented on July 22, 2024

@pegasus1982 any updates on this?

from slug-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.