PHP Error was encountered when trying CodeIgniter-3x

الإشعارات من الإدارة عن المشكلات الخاصة باستضافة aba.ae
Post Reply
kareem
Posts: 3
Joined: 22 Jun 2017, 15:16:24
Gender: None specified
User Agent: Firefox Windows 1920x1080

PHP Error was encountered when trying CodeIgniter-3x

Post 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
mado
Posts: 8
Joined: 04 Apr 2017, 10:26:58
Gender: None specified
User Agent: Chrome Windows 1680x1050

PHP Error was encountered when trying CodeIgniter-3x

Post by mado »

Hello ,

Try to set it

Code: Select all

$config['sess_save_path'] = sys_get_temp_dir();
Best Regards ,
Mado
kareem
Posts: 3
Joined: 22 Jun 2017, 15:16:24
Gender: None specified
User Agent: Firefox Windows 1920x1080

PHP Error was encountered when trying CodeIgniter-3x

Post 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
Post Reply