Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

"You don't appear to have a working PHP session." #1018

Open
abalter opened this issue Nov 7, 2022 · 2 comments
Open

"You don't appear to have a working PHP session." #1018

abalter opened this issue Nov 7, 2022 · 2 comments
Labels

Comments

@abalter
Copy link

abalter commented Nov 7, 2022

Describe the bug

I get this:

image

To Reproduce

  1. Clone into /var/www/html/icecoder
  2. Run sudo chown -R www-data:www-data /var/www/html/icecoder
  3. Run sudo chmod -R 755 /var/www/html/icecoder
  4. PHP is working:

(base) balter@spectre:/var/www/html$ php --version
PHP 8.1.2 (cli) (built: Aug 8 2022 07:28:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies

5. Visit `localhost/icecoder`
6. See PHP error
7. 
**Expected behavior**
It to "work" :)

**Browser & Server (please complete the following information):**
 - Browser: Firefox
 - Server: Apache
@abalter abalter added the Bug label Nov 7, 2022
@abalter
Copy link
Author

abalter commented Nov 7, 2022

Interesting info:

If I cd into the icecoder directory and do php -S localhost:8080 then I can access at localhost:8080. However, I can't open files outside of the icecoder directory because the server (i.e. PHP) doesn't see the parent directory. If I start the PHP server in the parent directory, all I get at localhost:8080 is the default apache landing page.

@mattpass
Copy link
Collaborator

mattpass commented Nov 9, 2022

@abalter from your description it sounds like whatever's in the parent dir is not playing well with ICEcoder.

You may want to look at ICEcoder's own settings re sessions and begin commenting out a few till it starts working:
https://github.com/icecoder/ICEcoder/blob/master/lib/settings-common.php#L15-L37

I'd probably start with the ones at the bottom of this section (remember to keep session_start() tho - don't comment out that one). Could be a little trial & error till you identify the conflict that's happening.

Just remember to close down all browser windows between attempts, to get a fresh session and so fresh test between attempts to pinpoint the issue.

Hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants