Error (missing parameter) if using PHP 7.1 or later
-
Hello.
Using this plugin on server with PHP 7.2 and latest wordpress causes error.
The problem is function loadTextDomain in language.php file and is caused by line 34, that looks like this:
if (self::load(apply_filters('plugin_locale', get_locale()))) {Problem is missing parameter for apply_filter.
In PHP before 7.1 it could be ignored, but 7.1 throws an error in case of missing argument.In my case changing it to:
if (self::load(apply_filters('plugin_locale', get_locale(),''))) {
fixed problem, but I’m not sure what really should be the that parameter.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Error (missing parameter) if using PHP 7.1 or later’ is closed to new replies.