Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get simple 3.3.16 support for php 8.0
(2023-01-09, 01:00:20)Knobbles Wrote: PHP 8.1
Found today (could not find whether this is already fixed):

/plugins/i18n_base/frontend.class.php on line 24:
explode(): Passing null to parameter #2 ($string) of type string is deprecated

This occurs in function getLanguages().
Fix:
$httplanguages = explode(",", @$_SERVER['HTTP_ACCEPT_LANGUAGE']??'');

(still dont know how $_SERVER['HTTP_ACCEPT_LANGUAGE'] can be null as I used a standard browser, but thats not the point here.)

Thanks Knobbles, no I dont think this has come up yet. Will add to the new repo asap.
Are you using English with this plugin or other?


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply


Messages In This Thread
RE: Get simple 3.3.16 support for php 8.0 - by islander - 2023-01-09, 01:34:42



Users browsing this thread: 1 Guest(s)