[GH-ISSUE #1018] Undefined index warnings #544

Closed
opened 2026-02-25 21:35:19 +03:00 by kerem · 3 comments
Owner

Originally created by @jonocodes on GitHub (May 10, 2024).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1018

Originally assigned to: @IrAlfred on GitHub.

🐛 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 github.com/cypht-org/cypht@40f45b5794

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
Originally created by @jonocodes on GitHub (May 10, 2024). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1018 Originally assigned to: @IrAlfred on GitHub. ## 🐛 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
kerem closed this issue 2026-02-25 21:35:19 +03:00
Author
Owner

@marclaporte commented on GitHub (May 10, 2024):

@esaiemuhasa please advise.

<!-- gh-comment-id:2105384098 --> @marclaporte commented on GitHub (May 10, 2024): @esaiemuhasa please advise.
Author
Owner

@IrAlfred commented on GitHub (Nov 17, 2024):

I’ve been working on this trying to reproduce the issue, it seems that the problem no longer occurs. The functionality appears to be working as expected. Could you please test on your end as well to confirm that the issue has been resolved? Let me know if you encounter any further issues or if additional testing is needed from my side.

<!-- gh-comment-id:2481631376 --> @IrAlfred commented on GitHub (Nov 17, 2024): I’ve been working on this trying to reproduce the issue, it seems that the problem no longer occurs. The functionality appears to be working as expected. Could you please test on your end as well to confirm that the issue has been resolved? Let me know if you encounter any further issues or if additional testing is needed from my side.
Author
Owner

@marclaporte commented on GitHub (Jan 13, 2025):

@jonocodes Please re-open if you still see this.

<!-- gh-comment-id:2587282370 --> @marclaporte commented on GitHub (Jan 13, 2025): @jonocodes Please re-open if you still see this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#544
No description provided.