Remember language choice on multisite website

setcookie() has the following signature: setcookie ( $name, $value = “”, $expires = 0, $path = “”, $domain = “”, $secure = FALSE, $httponly = FALSE ) You’re setting the cookie’s value to 1 in your code. I suspect you intend to do something more like setcookie(‘language’, $_GET[‘language’], time() + 1209600, “/”, “example.com”, false); Notes … Read more

Language string not detecting used within the function

You can’t use variables in translation functions. From the internationalisation documentation: The following example tells you what not to do // This is incorrect do not use. _e( “Your city is $city.”, ‘my-theme’ ); The strings for translation are extracted from the source without executing the PHP associated with it. For example: The variable $city … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)