Error in new installation

Hello, when I make a change to any operation and want to save it, it doesn't do so and automatically takes me to the website administrator login page. Does anyone have the solution?

tim

Is it the same issue regardless of browser? Can you see if your browser cookie LCSESSID frequently changes?
Does the logs/errors.log show anything?

[24-May-2025 12:11:21 Africa/Casablanca] Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php81) in ~/includes/library/lib_session.inc.php (Line 45)
~/includes/library/lib_session.inc.php (Line 45) in session_start()
~/includes/library/lib_session.inc.php (Line 22) in start()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/library/lib_language.inc.php (Line 26) in {closure}()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/library/lib_route.inc.php (Line 156) in {closure}()
~/includes/library/lib_route.inc.php (Line 14) in strip_url_logic()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/library/lib_document.inc.php (Line 281) in {closure}()
~/includes/library/lib_document.inc.php (Line 19) in ilink()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/app_header.inc.php (Line 37) in class_exists()
~/index.php (Line 16) in requireonce()
Request: GET /ajax/cart.json?
=1748084478034 HTTP/2.0
Host: marocpharma.com
Client: 160.89.44.12 (160.89.44.12)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Referer: https://marocpharma.com/admin25/?app=geo_zones&doc=edit_geo_zone
Elapsed Time: 28 ms
Platform: LiteCart/2.6.1

[24-May-2025 12:11:21 Africa/Casablanca] Warning: Failed to start a session in ~/includes/library/lib_session.inc.php (Line 22)
~/includes/library/lib_session.inc.php (Line 22) in trigger_error()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/library/lib_language.inc.php (Line 26) in {closure}()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/library/lib_route.inc.php (Line 156) in {closure}()
~/includes/library/lib_route.inc.php (Line 14) in strip_url_logic()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/library/lib_document.inc.php (Line 281) in {closure}()
~/includes/library/lib_document.inc.php (Line 19) in ilink()
~/includes/autoloader.inc.php (Line 136) in init()
~/includes/app_header.inc.php (Line 37) in class_exists()
~/index.php (Line 16) in requireonce()
Request: GET /ajax/cart.json?
=1748084478034 HTTP/2.0
Host: marocpharma.com
Client: 160.89.44.12 (160.89.44.12)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Referer: https://marocpharma.com/admin25/?app=geo_zones&doc=edit_geo_zone
Elapsed Time: 28 ms
Platform: LiteCart/2.6.1

I previously installed the latest version 2.6.2 with Softaculous and had the same error, I deleted it and manually reinstalled the previous installation 2.6.1, I already have this version installed on another domain and it works correctly.

This bug occurs with all browsers.

tim

Can you make sure the php user has write access to session storage folder? Your error log suggests there is a problem registering/storing sessions on the disk.

The path is set in php.ini. In your case it's configured to:
/var/cpanel/php/sessions/ea-php81

Thank you very much for your help, I will try to fix it tomorrow.

Se kod på GitHub