cypht icon indicating copy to clipboard operation
cypht copied to clipboard

Undefined index warnings

Open jonocodes opened this issue 2 months ago • 1 comments

🐛 Bugreport

I am seeing a bunch of warnings about server variables.

cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_ORIGIN in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_REFERER in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_ACCEPT_LANGUAGE in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_ACCEPT_ENCODING in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_ACCEPT_CHARSET in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTPS in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_X_REQUESTED_WITH in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED_HOST in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | 127.0.0.1 -  10/May/2024:18:57:07 +0000 "GET /index.php" 200
cypht-1  | 127.0.0.1 - - [10/May/2024:18:57:07 +0000] "GET / HTTP/1.1" 200 507898 "-" "curl/7.83.1"
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_REFERER in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_ACCEPT_CHARSET in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTPS in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | NOTICE: PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED_HOST in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1  | 127.0.0.1 -  10/May/2024:18:57:31 +0000 "POST /index.php" 200

@jacob-js perhaps related to https://github.com/cypht-org/cypht/commit/40f45b57949402ed78ebe451600594faad1e662e

Steps to reproduce

  1. check out the docker branch here: https://github.com/cypht-org/cypht/pull/1001
  2. make docker-up
  3. visit http://localhost
  4. see warnings in console

jonocodes avatar May 10 '24 19:05 jonocodes