Page 1 of 1

PHP Error was encountered when trying CodeIgniter-3x

Posted: 30 Jun 2017, 05:06:26
by kareem
Hello,

I was using using CodeIgniter 3x PHP Framework on another host and on my local server without problems, I tried to test it on your server I got a lot of PHP errors as shown on:
http://tview.aba.ae/ci/

The errors are about sessions save path on the server.

In codeigniter configuration I have these lines:

ci/application/config.php

Code: Select all

$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
I tried to create a folder tmp in ci/system and give it 700 permission and change :

Code: Select all

$config['sess_save_path'] = BASEPATH . 'tmp/';
That didn't solve the problem, I think the server admin can solve this issue by doing something with the server sessions save path
'/var/lib/php5'


Regards,
Kareem

PHP Error was encountered when trying CodeIgniter-3x

Posted: 26 Jul 2017, 12:08:38
by mado
Hello ,

Try to set it

Code: Select all

$config['sess_save_path'] = sys_get_temp_dir();
Best Regards ,
Mado

PHP Error was encountered when trying CodeIgniter-3x

Posted: 02 Aug 2017, 16:28:51
by kareem
mado wrote:Hello ,

Try to set it

Code: Select all

$config['sess_save_path'] = sys_get_temp_dir();
Best Regards ,
Mado
Hello Mado,

Thank you for reply.

I tried that, it didn't solve the problem.

Regards
kareem