Skip to content

3.x#71

Open
gpsietzema wants to merge 10 commits into
goldsky:masterfrom
Sterc:3.x
Open

3.x#71
gpsietzema wants to merge 10 commits into
goldsky:masterfrom
Sterc:3.x

Conversation

@gpsietzema

Copy link
Copy Markdown

Hey @goldsky

We updated lingua to work with MODX3.0.1. This is the PR. We PR'd it to master, which will mean new updates won't work for 2.*

@Hal100000

Copy link
Copy Markdown

@gpsietzema
How can I install your Modx 3 upgraded Lingua Version?

@gpsietzema

Copy link
Copy Markdown
Author

@Hal100000 download 3.0.3 from here https://github.com/Sterc/Lingua/tree/3.x/_packages

manually upload it in modx and install that one.

@Hal100000

Copy link
Copy Markdown

@gpsietzema Thank you

I have now Lingua 3.03 installed (with Modx 3.0.3) but once I add the modRequest.class LinguaRequest to a context that context is showing me an Error 500 page.

This is what the log is showing:
[2023-08-03 12:09:07] (ERROR @ /www/xxx/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 666) Could not load class: Lingua from lingua [2023-08-03 12:09:07] (ERROR @ /www/xxx/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1272) Problem getting service lingua, instance of class Lingua, from path [2023-08-03 12:09:07] (ERROR @ /www/xxx/core/cache/includes/elements/modx/revolution/modsnippet/76.include.cache.php : 42) [lingua.getValue]: !($lingua instanceof Lingua)

@Hal100000

Hal100000 commented Aug 3, 2023

Copy link
Copy Markdown

OK - one thing fixed - the value for the modRequest.class needs to be Lingua\Model\LinguaRequest and not LinguaRequest

But two new issues:

  • ModX does not show me a selector for selecting which language to choose
  • The Lingua Selector snippet goes to return on line 42

if (!($lingua instanceof \Lingua)) { return; }

Log is still showing:

[2023-08-03 16:00:06] (ERROR @ /www/xxxx/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 666) Could not load class: Lingua from lingua [2023-08-03 16:00:06] (ERROR @ /www/xxxx/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1272) Problem getting service lingua, instance of class Lingua, from path [2023-08-03 16:00:06] (ERROR @ /www/xxxx/core/cache/includes/elements/modx/revolution/modsnippet/86.include.cache.php : 42) [lingua.getValue]: !($lingua instanceof Lingua)

@Hal100000

Copy link
Copy Markdown

@gpsietzema - there is now some discussion on the Modx Community:
https://community.modx.com/t/install-lingua-on-modx-3-or-are-there-any-alternative/5217/11

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

Successfully merging this pull request may close these issues.

4 participants