HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
168 stars 19 forks source link

Installation on Public Web Server #105

Closed OverClockd closed 1 year ago

OverClockd commented 1 year ago

I installed this on a public web server (LAMP) with Debian base. I tried a couple of times but as soon as I perform a fresh install (clean database, clean file structure, and NOT using the install.sh (I just rename the connection.inc.php and edit the info)), import a long text of Spanish, when I go to read it, I am not showing any translations. The words are highlighted but clicking them does not produce anything in the side panels, they remain blank.

L1 Language = English L2 Language = Spanish

I am running on Lubuntu w/ Firefox

I'd imagine it is something I am messing up and this probably isn't the place to post this so my apologies in advance! I wasn't sure where else to seek help.

PM me if you would like a direct link to the installation to which you can visit it and try for yourself.

Thank you!

jzohrab commented 1 year ago

Hi @OverClockd, I don't have an answer for LWT, but you could also try my project "Lute", which was based on the ideas in LWT. The repo is https://github.com/jzohrab/lute. I use Lute for studying Spanish as well, I run it on my Mac. It will at least get you started with the idea of LWT, so you can see if you like this method of studying. When @HugoFara sorts out the issue with LWT you could return to it. Cheers! Jeff

(@HugoFara - really hope you don't mind me dropping this note here -- thought it over before posting, thought you'd be ok with it. jz)

HugoFara commented 1 year ago

Hi! As far as I can tell it looks like a permission issue, the server side features seem to be working well, so you can try to refresh the page (Ctrl+F5), or manually check permissions, it seems like Javascript is not working. Does your LWT work with short texts?

@jzohrab I don't mind as long as it stays informative for users, here it won't solve the issue with a least effort I think. Otherwise I don't really mind.

OverClockd commented 1 year ago

Sorry I had gotten aide tracked. Turns out it was a browser issue because it seems to want to work on mobile, however I am now getting the error in the side panel saying the web page does not allow their content to be displayed when embedded on another website.I will look more into this when I get back home, but is anyone having that same difficulty when on a public server?Sent from my T-Mobile 5G Device -------- Original message --------From: Hugo @.> Date: 3/29/23 7:14 AM (GMT-06:00) To: HugoFara/lwt @.> Cc: OverClocked @.>, Mention @.> Subject: Re: [HugoFara/lwt] Installation on Public Web Server (Issue #105) Hi! As far as I can tell it looks like a permission issue, the server side features seem to be working well, so you can try to refresh the page (Ctrl+F5), or manually check permissions, it seems like Javascript is not working. Does your LWT work with short texts? @jzohrab I don't mind as long as it stays informative for users, here it won't solve the issue with a least effort I think. Otherwise I don't really mind.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

HugoFara commented 1 year ago

I think it's an iframe-related issue here, some website won't allowed to be displayed embedded. You can modify your dictionary url to make it display in iframes.

For instance if you dictionary url is: https://example.com/definition/ you can change it to https://example.com/definition/lwt_term?lwt_popup=1.