oferwald / transposh

Repository for Transposh git
GNU General Public License v3.0
13 stars 6 forks source link

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

Open besnarda opened 1 year ago

besnarda commented 1 year ago

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 commented 1 year ago

The pull request from redcuillin seems to be about that.

besnarda commented 1 year ago

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.