Error: Class 'Wamania\\Snowball\\English' not found in //modules/contrib/alinks/src/AlinkPostRenderer.php on line 52

i checked the wamania/php-stemmer

it says it's a Native PHP5 Stemmer. I guess it cannot work with php 7?

Would you please check this?

Comments

sealionking created an issue. See original summary.

lance lancelot’s picture

Hi,

I got the same issue.
If you have used composer to install the module, you need te remove it and install again.
Your keywords will be lost.

For me this worked:
1/ uninstall module in back-office Drupal
2/ remove it from modules/contrib/alinks
3/ remove it from vendor/wamania
4/ composer require drupal/alinks

Hope it works.

sealionking’s picture

Thanks

I'll try it

darkdim’s picture

Title: not work with php 7? » Requires install with composer!

changed title

effortdee’s picture

I don't use composer, is it possible to install without composer?

drupaldope’s picture

I have the same problem.
I can't work with composer, as I can't find simple instructions on how to use composer to manage Drupal.

Is there a workaround to get this working without composer?

effortdee’s picture

manarak I also can't use composer as I manage many sites that non-developers want to also work on and do updates etc.

Which is going amazingly well and has been for years until composer has started to become mandatory.

I haven't found a work around for this yet :(

greg boggs’s picture

Composer is a tool that runs on your computer.

Here's how you install it: https://getcomposer.org/doc/00-intro.md

To install this module, you go to your Drupal site on the command line and type:

composer require drupal/alinks

Once you do that, you can copy the resulting files in /modules/alinks to your web hosting.

drupaldope’s picture

Thanks Greg, but I never managed to get it to work on an existing site.

Are there instructions somewhere about how to get it to work on an existing site?

greg boggs’s picture

Composer support was added in Drupal 8.8 I believe.

drupaldope’s picture

what do you mean with "composer support" ?

never mind, I found this excellent site:
https://drupalize.me/series/introduction-composer-drupal-users

Taking an existing Drupal application that is NOT managed with Composer and beginning to manage it with Composer can be a little tricky.

ah...

sounds tricky... I will give it a try when I got some hours on my hands

greg boggs’s picture

Basically it means that your project has a composer.json file set up correctly for your website so when type composer require drupal/alinks everything works and the module downloads and goes into the modules folder.

drupaldope’s picture

Thank you Greg

I have done some more reading on the subject and it turned again into an endless scavenger hunt.

As many Drupal users, I use Windows together with either XAMPP or WAMP.

Problem with composer tutorials:
- they use linux console commands
- they suppose I have drush installed

So far, I couldn't find an A to Z guide on how to do it with Windows.

greg boggs’s picture

The steps in Windows are:

1. Open the command line.
2. Install Choco
3. Install php with Choco
4. Install Composer with PHP
5. Install the module with composer

Drush, Linux, and WAAMP/XAAMP are all unrelated to the task.

drupaldope’s picture

you knew I was going to ask this... what is Choco?
I couldnt find a definite answer on google.

greg boggs’s picture

Choco is how you install software on Windows.

greg boggs’s picture