PHP.ini Issue on install  [SOLVED]

Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules
Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
Post Reply
surabhi
Posts: 1
Joined: 08 Mar 2018, 12:34
what is two(2) plus three(3) ?: 5

PHP.ini Issue on install

Post by surabhi » 08 Mar 2018, 12:39

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

User avatar
RussH
Site Admin
Posts: 810
Joined: 12 Apr 2008, 08:28
what is two(2) plus three(3) ?: 5
Location: UK
Contact:

Re: PHP.ini Issue on install  [SOLVED]

Post by RussH » 08 Mar 2018, 15:13

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.
RussH

Report your issues and feature requests;
https://github.com/opencats/opencats/issues

Please CLICK THE TICK to accept the answer!

amaisonneuve
Posts: 6
Joined: 12 Mar 2015, 15:26
what is two(2) plus three(3) ?: 5

Re: PHP.ini Issue on install

Post by amaisonneuve » 18 Nov 2018, 01:46

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.

User avatar
RussH
Site Admin
Posts: 810
Joined: 12 Apr 2008, 08:28
what is two(2) plus three(3) ?: 5
Location: UK
Contact:

Re: PHP.ini Issue on install

Post by RussH » 19 Nov 2018, 18:17

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
RussH

Report your issues and feature requests;
https://github.com/opencats/opencats/issues

Please CLICK THE TICK to accept the answer!

Post Reply