Jump to content

How to install LanguageSupport via API?


bernhard
 Share

Recommended Posts

Hi everybody,

today I had a very hard time with the LanguageSupport module ? I tried a lot, but I can't get it to install via the API:

I've tried this:

$this->modules->install('LanguageSupport', ['force' => true]);

And this:

require_once($this->config->paths->modules . 'LanguageSupport/LanguageSupportInstall.php');
$ls = $this->wire(new LanguageSupportInstall());
$ls->install();

Both execute without an error, but when I visit the modules page, I get this:

62dDAxD.png

No matter what I try, it will not install ? The weird thing is: If I install it manually by clicking the button, it works as expected.

Am I missing anything? I'm actually not doing anything different from here: https://github.com/processwire/processwire/blob/master/wire/modules/Process/ProcessModule/ProcessModule.module#L261-L275 (at least I think so)

Help would be greatly appreciated! Thx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...