Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "Twig\Extra\Intl\IntlExtension" not found #8

Open
qroft opened this issue Mar 27, 2024 · 6 comments
Open

Class "Twig\Extra\Intl\IntlExtension" not found #8

qroft opened this issue Mar 27, 2024 · 6 comments

Comments

@qroft
Copy link

qroft commented Mar 27, 2024

I just installed the Extension but get this error as soon as i activate it:

Class "Twig\Extra\Intl\IntlExtension" not found

I do not know if i can manually move them or if i have to add it to some file so that it will be downloaded. I am a noob about this. Sorry.

@helmutkaufmann
Copy link
Owner

Please, use version 2.

@qroft
Copy link
Author

qroft commented Mar 28, 2024

I just downloaded the 2.0.0xx version, unzipped it and moved all files to the manually created "mercator/twigext" folder.
In the backend I can see that it is active.

But the error is still there :(

Error in (xxx is a hidden full path):
Class "Twig\Extra\Intl\IntlExtension" not found
/xxx/plugins/mercator/twigext/Plugin.php line 93

@qroft
Copy link
Author

qroft commented Apr 2, 2024

Through the Winter Discord channel I received this suggestion:

If that's a dependency in the plugin's composer.json file, use the wikimedia/composer-merge-plugin to install dependencies

Can you tell me if it is ilke that? Thanks in advance for your help.

@qroft
Copy link
Author

qroft commented Apr 2, 2024

Thanksnto BennoThommo via Discord he suggest this:

I think it might be because that extension is targeting Twig v2. Winter is on Twig v3 now. It does say on the readme for the plugin that it has only been tested up to Winter v1.1.7

@damsfx
Copy link

damsfx commented Apr 2, 2024

I just downloaded the 2.0.0xx version, unzipped it and moved all files to the manually created "mercator/twigext" folder. In the backend I can see that it is active.

The plugin requires the installation of additional Twig extensions:
https://github.com/helmutkaufmann/wn-twigext-plugin/blob/2.0/composer.json#L18-L23

You must install the plugin via composer.
composer require mercator/wn-twigext-plugin "^2.0"

@qroft
Copy link
Author

qroft commented Apr 2, 2024

The plugin requires the installation of additional Twig extensions: https://github.com/helmutkaufmann/wn-twigext-plugin/blob/2.0/composer.json#L18-L23

You must install the plugin via composer. composer require mercator/wn-twigext-plugin "^2.0"

Do you see any chance on doing it without composer?
I have a webhost that uses a php-cli that does not allow me to use certain things, so i am stuck here.
What i am thinking about now is to do a artisan refresh of the plugin, but i am a noob about all of this and do not know if this is a good way.

[UPDATE]
I tried a
php artisan plugin:refresh Mercator.twigExt
and the result is an error showing this

In QuestionHelper.php line 109:
Undefined constant "STDIN"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants