Page 1 of 1
					
									PHP.ini Issue on install
					Posted: 08 Mar 2018, 12:39
					by surabhi
					Hi there,
Once I was done extracting files, the main link 
http://opencats.thejobswitch.com/ is not working. I get 'CATS Error: session.auto_start must be set to 0 in php.ini.' However, when I try 
http://opencats.thejobswitch.com/installwizard.php, it worked just fine and went all the way to the end and installation was done. The main page gives this error, so I cannot log in. 
Can you help, please? Many thanks in advance for all the help. 
Regards
Surabhi
 
			
					
									Re: PHP.ini Issue on install
					Posted: 08 Mar 2018, 15:13
					by RussH
					Hi Surabhi,
is do you have session.auto_start = 1 in php.ini for some particular reason? 
It's considered 'best practise' to have it set to 0, and opencats requires it too.
							 
			
					
									Re: PHP.ini Issue on install
					Posted: 18 Nov 2018, 01:46
					by amaisonneuve
					Well Well.. i'm back.. they always come back.. 
Ok so i just grabbed the latest code and i'm getting this error also. 
CATS Error: session.auto_start must be set to 0 in php.ini.
I confirmed with phpinfo and its set to 0.. 
BTW running Centos 6 for this build.
							 
			
					
									Re: PHP.ini Issue on install
					Posted: 19 Nov 2018, 18:17
					by RussH
					Hi Alain..
did you grab the code from Master or one of the releases? I guess you ran composer to get the dependencies (of course!). What version of php / mysql are you running?
...and CentOS 6?! That's a bit old
The 'normal code' check for that is in index.php, line 107;
Code: Select all/* Objects can't be stored in the session if session.auto_start is enabled. */
if (ini_get('session.auto_start') !== '0' &&
    ini_get('session.auto_start') !== 'Off')
{
    die('CATS Error: session.auto_start must be set to 0 in php.ini.');
}
 
..or the installation test is at line 212 in  OpenCATS/lib/InstallationTests.php
Don't see why that wouldn't work - however if you're sure you have it set to 0 then comment it out
 
			
					
									Re: PHP.ini Issue on install
					Posted: 19 Sep 2019, 03:03
					by Hakimi89
					Hai Russh,
I get the same issue. After enjoy use for 5 month  opencats without touch any code. Yesterday I get the same error.
							 
			
					
									Re: PHP.ini Issue on install
					Posted: 19 Sep 2019, 11:11
					by RussH
					Is this your server - or a hosted install? I suspect your php version was just upgraded?
							 
			
					
									Re: PHP.ini Issue on install
					Posted: 20 Sep 2019, 02:24
					by Hakimi89
					I see. By the way this is hosted server . I already check no upgraded activity for the php version. What else can I do?
							 
			
					
									Re: PHP.ini Issue on install
					Posted: 20 Sep 2019, 12:07
					by RussH
					Hakimi89 wrote: ↑20 Sep 2019, 02:24
I see. By the way this is hosted server . I already check no upgraded activity for the php version. What else can I do?
If you check your php.ini file, please see if auto_start is set to 0 or not?
 
			
					
									Re: PHP.ini Issue on install
					Posted: 23 Sep 2019, 03:09
					by Hakimi89
					RussH wrote: ↑20 Sep 2019, 12:07
Hakimi89 wrote: ↑20 Sep 2019, 02:24
I see. By the way this is hosted server . I already check no upgraded activity for the php version. What else can I do?
If you check your php.ini file, please see if auto_start is set to 0 or not?
Hi RussH
What I do, I just remove 0 at auto_start in the index.php and my opencats can use as usual. Please refer attachment picture
If anything problem in future as I did?