Page 1 of 1

Error message

Posted: 24 Nov 2015, 04:17
by andreamarucci
In the server's error log I've seen many of these
Code
[24-Nov-2015 09:58:02 Europe/Oslo] PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in /xxxx/xxxx/gallery/extensions/twig.imagevue.inc.php on line 336
It's a problem?

Re: Error message

Posted: 24 Nov 2015, 05:16
by mjau-mjau
andreamarucci wrote:It's a problem?
No. You can normally disregard all "PHP Notice" messages. If it says "Error" in any way, it should be diagnosed.

The HTTP_X_FORWARDED_PROTO check was added in last release, because we need to check for this to detect SSL when websites are using Cloudflare. The var is undefined on other servers, and unfortunately these things will just show up in error log, unless suppressed.

Re: Error message

Posted: 24 Nov 2015, 09:50
by andreamarucci
Thanks!

Re: Error message

Posted: 04 Dec 2015, 10:35
by fotograaf
Hi Karl,
I tried X3 for the first time. I uploaded a few pictures. > View page. No pictures. Just this error message.

Notice: Undefined index: HTTP_X_FORWARDED_PROTO in /public/sites/www.eefbosch.nl/x3_panel/extensions/twi ... ue.inc.php on line 130

Wat does this means ?

eefbosch.nl/x3_panel

Re: Error message

Posted: 04 Dec 2015, 10:54
by mjau-mjau
fotograaf wrote:Notice: Undefined index: HTTP_X_FORWARDED_PROTO in /public/sites/www.eefbosch.nl/x3_panel/extensions/twi ... ue.inc.php on line 130
This is not an error, but a "notice" which is only displaying because your server is set to display all "warnings". Who is the host? This is not normal configuration ... We need to check for HTTP_X_FORWARDED_PROTO on servers running SSL under Cloudflare environments. For your server, the var does not exist. The problem is, the notice corrupts the data structure.

Is this a private server? If not, you should request from your host to display normal error reporting, not showing "notices".
http://php.net/manual/en/function.error-reporting.php

I will try to fix this in an update coming this weekend anyway ...

Re: Error message

Posted: 04 Dec 2015, 11:13
by mjau-mjau
Try downloading and updating this file:
extensions/twig.imagevue.inc.php

PS! After uploading the file, you need to first save something in admin (a page or settings), just to make sure cache is refreshed.

Re: Error message

Posted: 06 Dec 2015, 05:46
by fotograaf
Karl,

Its working. Thanks. Now i just have to discover X3