Active
Project:
Alinks
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Reporter:
Created:
13 Feb 2018 at 08:32 UTC
Updated:
29 Apr 2020 at 06:43 UTC
Jump to comment: Most recent
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
Comment #2
lance lancelot commentedHi,
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.
Comment #3
sealionking commentedThanks
I'll try it
Comment #4
darkdimchanged title
Comment #5
effortdee commentedI don't use composer, is it possible to install without composer?
Comment #6
drupaldope commentedI 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?
Comment #7
effortdee commentedmanarak 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 :(
Comment #8
greg boggsComposer 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.
Comment #9
drupaldope commentedThanks 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?
Comment #10
greg boggsComposer support was added in Drupal 8.8 I believe.
Comment #11
drupaldope commentedwhat do you mean with "composer support" ?never mind, I found this excellent site:
https://drupalize.me/series/introduction-composer-drupal-users
ah...
sounds tricky... I will give it a try when I got some hours on my hands
Comment #12
greg boggsBasically 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.
Comment #13
drupaldope commentedThank 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.
Comment #14
greg boggsThe 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.
Comment #15
drupaldope commentedyou knew I was going to ask this... what is Choco?
I couldnt find a definite answer on google.
Comment #16
greg boggsChoco is how you install software on Windows.
Comment #17
greg boggshttps://chocolatey.org/