icecoder/ICEcoder

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

abalter opened this issue · 2 comments

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

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.

@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!