Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter herzla

    (@herzla)

    thanks a lot, this is how I solved it for me, while I still wonder what is against forwarding all information in default:

    add_filter(‘sublanguage_redirect_uncanonical_url’, function ($url) {
        $requestUri = $_SERVER[‘REQUEST_URI’];
        $parsedUrl = parse_url($url, PHP_URL_PATH);
        $firstPath = ‘/’ . explode(‘/’, trim($parsedUrl, ‘/’))[0];
        $baseUrl = parse_url($url, PHP_URL_SCHEME) . ‘://’ . parse_url($url, PHP_URL_HOST) . $firstPath;
        $url = $baseUrl . $requestUri;
        return $url;
    });

    when I enable error output in php an WP I see this messages:

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7329

    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189

    for me this plugin is perferct, just this bug is a little bad: in page editor the save-button is jumping down when I enable sublanguage (with all other plugins disabled) and crashes the sidebar and top messages also a little

    Thread Starter herzla

    (@herzla)

    okay,
    i found it in plugins/multiple-domain/MultipleDomain.php line 892
    saldy that plugin is not tested anymore as it works great

    Thread Starter herzla

    (@herzla)

    okay,
    i found it in plugins/multiple-domain/MultipleDomain.php line 892
    saldy that plugin is not tested anymore as it works great

Viewing 3 replies - 1 through 3 (of 3 total)