Error CodeIgniter : A PHP Error was encountered Severity: Warning Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php Line Number: 117

Malam ini saya ada error di aplikasi codeigniter saya :

A PHP Error was encountered

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 117

 

Dan setelah browsing nemu caranya yaitu :

  1. Masuk ke file config.php di application/config/config.php
  2. ubah settingan
    $config['sess_save_path'] = null 
    menjadi 
    $config['sess_save_path'] = sys_get_temp_dir();

 

Dan¬†Alhamdulillah solved…..

 

Referensi :

http://stackoverflow.com/questions/31042456/when-i-want-to-use-session-in-codeigniter-it-says-error-why

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s