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

PHP issue on wordpress front page: undefined variable $bestlang #8

Open
besnarda opened this issue Feb 20, 2023 · 2 comments
Open

PHP issue on wordpress front page: undefined variable $bestlang #8

besnarda opened this issue Feb 20, 2023 · 2 comments

Comments

@besnarda
Copy link

Hi, thanks for this great plugin,
I'm using it on my blog and since I've updated from php 7.4 to php 8.1.
I have this warning message in frontend of my page.

Warning: Undefined variable $bestlang in /homepages/13/d849846540/htdocs/clickandbuilds/SabineBesnard/wp-content/plugins/transposh-translation-filter-for-wordpress/transposh.php on line 651

I have seen a similar issue in this thread and it seemed to be fixed in the latest version, but I still have the issue after updating my plugin.

I'm using Wordpress 6.1.1 and transposh 1.9.3

PS: There is now a link to a website in hebrew... in my blog :(

@besnarda
Copy link
Author

The pull request from redcuillin seems to be about that.

@besnarda
Copy link
Author

I confirm that the pull request solved my issue with no apparent disorder.
(I made the modification directly on wordpress editor)
add $bestlang = false; on line 654 just before the use of bestlang.

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