You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
If open site for first time and didn't set any cookie and session, and also if didn't set any Accept-Language for browser. When open site show this error in debug mode:
PHP warning
key_exists() [function.key-exists]: The first argument should be either a string or an integer
...\protected\modules\translate\components\MPTranslate.php(201)
Hi,
If open site for first time and didn't set any cookie and session, and also if didn't set any Accept-Language for browser. When open site show this error in debug mode:
PHP warning
key_exists() [function.key-exists]: The first argument should be either a string or an integer
...\protected\modules\translate\components\MPTranslate.php(201)
And in no debug mode:
This bug is critical, because some bot didn't set Accept-Language in header request, for example I have problem with google crawler for fetch site.
You can test it with CURL without any parameter for headers:
curl www.sitename.com
I resolve this bug for put
@
sign beforeif(!key_exists
in line 201, 206 in above code.Thanks
The text was updated successfully, but these errors were encountered: