[GH-ISSUE #1495] 🐛 [Bug] Fails to login after install #665

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

Originally created by @aimran50 on GitHub (Apr 22, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1495

🐛 Bug

  1. Followed the instructions from here: https://www.cypht.org/install/. Able to reach the login page.
  2. Created user as per step 6 in the install instructions. User record shows in the database table.
  3. User fails to login. No error shown on login screen.
  4. PHP error log show the following
    MyApp~1\AppData\Local\Temp) is not within the allowed path(s): (D:\MyAppOpn\apps\cypht-v1.4.5;C:\MyAppOpn\tmp;/dev/urandom;D:\MyAppOpn\apps\cypht-v2.4.0\mydata;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\users;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\attachments) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118
    [22-Apr-2025 15:54:06 UTC] PHP Warning: session_start(): Failed to initialize storage module: files (path: ) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118
    [22-Apr-2025 15:54:06 UTC] PHP Notice: Undefined variable: _SESSION in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86
    [22-Apr-2025 15:54:06 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86
    [22-Apr-2025 15:54:06 UTC] Array
    (
    [0] => Using Hm_PHP_Session with Hm_Auth_DB
    [1] => Using file based user configuration
    [2] => Using sapi: apache2handler
    [3] => Request type: HTTP
    [4] => Request path: /webmail/
    [5] => TLS request: 0
    [6] => Mobile request: 0
    [7] => Page ID: home
    [8] => Using Hm_Cache for cache
    [9] => CACHE backend using: noop
    [10] => Connecting to dsn: mysql:host=127.0.0.1;port=3306;dbname=cypht
    [11] => Setting cookie: name: hm_id, lifetime: 0, path: /webmail/, domain: localhost, secure: , html_only 1
    [12] => LOGGED IN
    [13] => CACHE: miss for "feed_read_uids" using noop
    [14] => CACHE: saving "nux_dev_news" using noop
    [15] => Redirecting to /webmail/
    [16] => PHP version 7.4.32
    [17] => Zend version 3.4.0
    [18] => Peak Memory: 2048
    [19] => PID: 12280
    [20] => Included files: 77
    )

[22-Apr-2025 15:54:06 UTC] Array
(
[0] => Using Hm_PHP_Session with Hm_Auth_DB
[1] => Using file based user configuration
[2] => Using sapi: apache2handler
[3] => Request type: HTTP
[4] => Request path: /webmail/
[5] => TLS request: 0
[6] => Mobile request: 0
[7] => Page ID: home
[8] => Using Hm_Cache for cache
[9] => CACHE backend using: noop
[10] => TRANSLATION NOT FOUND :Cypht:
[11] => PHP version 7.4.32
[12] => Zend version 3.4.0
[13] => Peak Memory: 2048
[14] => PID: 12280
[15] => Included files: 78
)

How to resolve?

Version & Environment

Rev: [1.4.5]

OS: [Windows 10]
PHP: [7.4.32]

Originally created by @aimran50 on GitHub (Apr 22, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1495 <!-- You can find the latest issue templates here https://github.com/ulfgebhardt/issue-templates --> ## 🐛 Bug <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. Use a clear and concise description of what the bug is.--> 1. Followed the instructions from here: https://www.cypht.org/install/. Able to reach the login page. 2. Created user as per step 6 in the install instructions. User record shows in the database table. 3. User fails to login. No error shown on login screen. 4. PHP error log show the following MyApp~1\AppData\Local\Temp) is not within the allowed path(s): (D:\MyAppOpn\apps\cypht-v1.4.5;C:\MyAppOpn\tmp;/dev/urandom;D:\MyAppOpn\apps\cypht-v2.4.0\mydata;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\users;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\attachments) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118 [22-Apr-2025 15:54:06 UTC] PHP Warning: session_start(): Failed to initialize storage module: files (path: ) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118 [22-Apr-2025 15:54:06 UTC] PHP Notice: Undefined variable: _SESSION in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86 [22-Apr-2025 15:54:06 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86 [22-Apr-2025 15:54:06 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_DB [1] => Using file based user configuration [2] => Using sapi: apache2handler [3] => Request type: HTTP [4] => Request path: /webmail/ [5] => TLS request: 0 [6] => Mobile request: 0 [7] => Page ID: home [8] => Using Hm_Cache for cache [9] => CACHE backend using: noop [10] => Connecting to dsn: mysql:host=127.0.0.1;port=3306;dbname=cypht [11] => Setting cookie: name: hm_id, lifetime: 0, path: /webmail/, domain: localhost, secure: , html_only 1 [12] => LOGGED IN [13] => CACHE: miss for "feed_read_uids" using noop [14] => CACHE: saving "nux_dev_news" using noop [15] => Redirecting to /webmail/ [16] => PHP version 7.4.32 [17] => Zend version 3.4.0 [18] => Peak Memory: 2048 [19] => PID: 12280 [20] => Included files: 77 ) [22-Apr-2025 15:54:06 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_DB [1] => Using file based user configuration [2] => Using sapi: apache2handler [3] => Request type: HTTP [4] => Request path: /webmail/ [5] => TLS request: 0 [6] => Mobile request: 0 [7] => Page ID: home [8] => Using Hm_Cache for cache [9] => CACHE backend using: noop [10] => TRANSLATION NOT FOUND :Cypht: [11] => PHP version 7.4.32 [12] => Zend version 3.4.0 [13] => Peak Memory: 2048 [14] => PID: 12280 [15] => Included files: 78 ) **How to resolve?** ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: [1.4.5] <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: [Windows 10] PHP: [7.4.32]
kerem 2026-02-25 21:35:38 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@christer77 commented on GitHub (May 20, 2025):

4. .4.5;C:\MyAppOpn\tmp;/dev/urandom;D:\MyAppOpn\apps\cypht-v2.4.0\mydata;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\users;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\attachments) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118
[22-Apr-2025 15:54:06 UTC] PHP Warning: session_start(): Failed to initialize storage module: files (path: ) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118
[22-Apr-2025 15:54:06 UTC] PHP Notice: Undefined variable: _SESSION in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86
[22-Apr-2025 15:54:06 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86

Hi @aimran50

can you trie this Then can you tell us what that gives?

<!-- gh-comment-id:2894439767 --> @christer77 commented on GitHub (May 20, 2025): > 4\. .4.5;C:\MyAppOpn\tmp;/dev/urandom;D:\MyAppOpn\apps\cypht-v2.4.0\mydata;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\users;D:\MyAppOpn\apps\cypht-v2.4.0\mydata\attachments) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118 > [22-Apr-2025 15:54:06 UTC] PHP Warning: session_start(): Failed to initialize storage module: files (path: ) in D:\MyAppOpn\apps\cypht-v1.4.5\lib\framework.php on line 118 > [22-Apr-2025 15:54:06 UTC] PHP Notice: Undefined variable: _SESSION in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86 > [22-Apr-2025 15:54:06 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in D:\MyAppOpn\apps\cypht-v1.4.5\lib\session_php.php on line 86 Hi @aimran50 can you trie [this ](https://github.com/cypht-org/cypht-website/pull/116) Then can you tell us what that gives?
Author
Owner

@aimran50 commented on GitHub (Jun 3, 2025):

Sorry, but I have moved on from this.

<!-- gh-comment-id:2933309339 --> @aimran50 commented on GitHub (Jun 3, 2025): Sorry, but I have moved on from this.
Author
Owner

@christer77 commented on GitHub (Jul 7, 2025):

Hello @aimran50

we are closing this discussion, please reopen it for us if the issue is still occurring.

See PR

<!-- gh-comment-id:3043849353 --> @christer77 commented on GitHub (Jul 7, 2025): Hello @aimran50 we are closing this discussion, please reopen it for us if the issue is still occurring. See [PR](https://github.com/cypht-org/cypht-website/pull/116)
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#665
No description provided.