new notice with zenphoto 1.4.4.4 ?

vincent3569 Member, Translator
hi

I found a lot of notices as follow in debug log of 1.4.4.4
I don't know if that is a known issue.

`
NOTICE: Undefined offset: 1 in [...]/zenphoto/zp-core/functions-i18n.php on line 367
parseHttpAcceptLanguage called from getUserLocale (functions-i18n.php [448])
from setMainDomain (functions-i18n.php [205])
from require_once (functions.php [30])
from require_once (template-functions.php [10])
from index.php [6]
`

Comments

  • Nothing has changed there. Can you please provide the contents of your `$_SERVER['HTTP_ACCEPT_LANGUAGE']` element? Something is not right with it.
  • vincent3569 Member, Translator
    _SERVER["HTTP_ACCEPT_LANGUAGE"] : fr-FR,en-us;q=0.5
  • acrylian Administrator, Developer
    Give the new 1.4.5 build a try. I think sbillard fixed something related to this.
  • Your string is correct, so it should not throw the error. I did make a change in the support build to detect an invalid http accept language string and ignore it. That would presumably fix the problem, but as I said, the above string is correct, so it is really unclear what caused the error.

    Since these errors are in your logs, it may be a flawed browser (or hacker) that is accessing your site. At any case, install the support build and let us know if the error reoccurs.
  • vincent3569 Member, Translator
    hi

    Since I have installed 1.4.4.5 on my prod site, I don't have noticed this error again.
    thanks.
Sign In or Register to comment.