Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Error message

24 Nov 2015, 04:17

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Error message

24 Nov 2015, 05:16

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.
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Re: Error message

24 Nov 2015, 09:50

Thanks!
 
fotograaf
Posts: 3
Joined: 04 Dec 2015, 05:31

Re: Error message

04 Dec 2015, 10:35

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Error message

04 Dec 2015, 10:54

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 ...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Error message

04 Dec 2015, 11:13

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.
 
fotograaf
Posts: 3
Joined: 04 Dec 2015, 05:31

Re: Error message

06 Dec 2015, 05:46

Karl,

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