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

3.x #71

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

3.x #71

wants to merge 10 commits into from

Conversation

gpsietzema
Copy link

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

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

@gpsietzema
Copy link
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

@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
Copy link

Hal100000 commented Aug 3, 2023

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

@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