• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Warning: Invalid Path

#11
I actually asking google for similar prob. since I don't quite understand the user guide.

And the first time hearing this code: sys_get_temp_dir();
" If I looks more intelligence please increase my reputation."
Reply

#12
(05-31-2016, 04:09 AM)davy_yg Wrote: A PHP Error was encountered

Severity: Warning
Message: mkdir(): Invalid path
Filename: drivers/Session_files_driver.php
Line Number: 117

Backtrace:

File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\application\controllers\cpages.php
Line: 34
Function: library

File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\index.php
Line: 315
Function: require_once

An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.

Filename: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\system\libraries\Session\drivers\Session_files_driver.php
Line Number: 119
Backtrace:


File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\application\controllers\cpages.php
Line: 34
Function: library

File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\index.php
Line: 315
Function: require_once

------------------------------------------------

drivers/Session_files_driver.php
line 117:              if ( ! mkdir($save_path, 0700, TRUE))

controllers\cpages.php
line34:      $this->load->library('session');

drivers\Session_files_driver.php
line 119:                       throw new Exception("Session: Configured save path '".$this->_config['save_path']."' is not a directory, doesn't exist or cannot be created.");


Where to find this error:  File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\index.php
Line: 315
Function: require_once  ?

Thanks in advance.

after checking this kid's reputation I'm wondering if she is a CI hater or something? I advice to read the manual first specially @ PHP.NET before using CI.  Blush
God Bless CI Contributors Smile
Reply

#13
(05-31-2016, 11:02 AM)ciadmin Wrote:
(05-31-2016, 09:38 AM)arma7x Wrote: $config['sess_save_path'] = APPPATH.'storage' in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\application\config\config.php
Don't touch any files in system folder.

APPPATH refers to application/, not to the system folder.
Yep, im saving session files into application folder.
Keep calm.
Reply

#14
I appologize. I have been using php for 3 years. I am a web developer. I am new to CI - I think I have to pass all this before becoming good at it. lol. I have been recommended to learn CI and really think that CI is good to know. That's why I start learning it to learn how to write efficient code.

Thanks for advice. Yeah, I just read the php.net. Good stuff.
" If I looks more intelligence please increase my reputation."
Reply

#15
(06-07-2016, 11:31 PM)davy_yg Wrote: I find the answer:  

config/config.php

Replacing:  $config['sess_save_path'] = NULL;

With:  $config['sess_save_path'] = sys_get_temp_dir();
The folder must writeable for saving session files.
Keep calm.
Reply

#16
It is done. I find the answer. thanks.
" If I looks more intelligence please increase my reputation."
Reply

#17
$config['sess_save_path'] = sys_get_temp_dir();

This solve the problem, Just goto config file and replace this line $config['sess_save_path'] = NULL with $config['sess_save_path'] = sys_get_temp_dir();
Reply

#18
(06-07-2016, 11:52 PM)ciadmin Wrote:
(06-07-2016, 11:31 PM)davy_yg Wrote: I find the answer:  

config/config.php

Replacing:  $config['sess_save_path'] = NULL;

With:  $config['sess_save_path'] = sys_get_temp_dir();

Hmmm - that is clear in the user guide ... http://www.codeigniter.com/user_guide/li...references
If you are running the script on a XAMPP server kindly check if your php ini file has not been altered
Reply

#19
(06-07-2016, 11:31 PM)davy_yg Wrote: I find the answer:  

config/config.php

Replacing:  $config['sess_save_path'] = NULL;

With:  $config['sess_save_path'] = sys_get_temp_dir();

THANK YOU, YOUR SOLUTION IS WORK FOR ME AND I JUST TAKE A LONG DEEP REST-FULL BREATH. tHANK YOU FOR THIS.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.