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

Uncaught ReferenceError and missing URL change #25

Open
dleigh opened this issue Sep 27, 2024 · 2 comments
Open

Uncaught ReferenceError and missing URL change #25

dleigh opened this issue Sep 27, 2024 · 2 comments

Comments

@dleigh
Copy link

dleigh commented Sep 27, 2024

Recently, we had been using a relative URL in a Slider Revolution slider for a link on the slider. The URL would change to a fully qualified URL and with a language change, would take you to the specific language's page. All was nice.

Then all of a sudden we noticed that it wasn't working anymore. The URL was missing the main site. So we hardcoded the URL to be a full URL. This fixed it for the primary language but it didn't get adjusted for other languages. Interestingly, the URLs that we have in our "normal" content within in a WP Bakery text module are full/complete URLs, not relative ones - and they get translated just fine into the other languages.

We use LiteSpeed Cache so I thought that perhaps it had been messing with things because we use it to minimize and defer/delay JavaScript. So I added transposh.js to the exclusions and it still didn't work (and I saw that tranposh.js WAS really excluded).

Then, I looked in the console for errors and I saw this:

Uncaught ReferenceError: t_jp is not defined <anonymous> transposh.js:35 <anonymous> transposh.js:441

Other URLs on the page are being translated correctly but not the link in the banner that comes from Slider Revolution. I don't know if it has anything to do with the error I saw in the console or not. The folks at Slider Revolution are asking me how it is that Transposh is able to translate full URLs that are in our WP Bakery text modules but not full URLs that are in a Slider Revolution slider.

I'm guessing that it has to do with the order in which things are presented on the page, perhaps, or perhaps this error message that I saw in the console.

The page in question is https://yuconvr.com and the URL that is not being translated is "https://yuconvr.com/3d-capacity/" which you see as the button at the bottom of the banner video.

Thanks for any guidance you might be able to give.

@dleigh
Copy link
Author

dleigh commented Sep 27, 2024

This error only shows up when on a translated page (not the primary language). On the primary pages, I don't see the console error.

@dleigh
Copy link
Author

dleigh commented Oct 31, 2024

Any thoughts on this Ofer?

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

No branches or pull requests

1 participant