• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error after run php sprak serve

#1
Hello !

I after download code by composer. And in cmd, i write php sprak serve

And it display error

E:\codeigniter\lpb2b>php spark serve

Warning: require(E:\codeigniter\sample\app\Config/../../vendor/codeigniter4/codeigniter4/system/bootstrap.php): failed to open stream: No such file or directory in E:\codeigniter\sample\spark on line 44

Fatal error: require(): Failed opening required 'E:\codeigniter\sample\app\Config/../../vendor/codeigniter4/codeigniter4/system/bootstrap.php' (include_path='.;C:\php\pear') in E:\codeigniter\lpb2b\spark on line 44


How i will do run it

Thanks.
Reply

#2
Never really used codeigniter or any development tool on windows. From what I can see you have your spark file here E:\codeigniter\lpb2b but then your codeigniter framework is not in the same folder.
Website: marcomonteiro.net  | Blog: blog.marcomonteiro.net | Twitter: @marcogmonteiro | TILThings: tilthings.com
Reply

#3
It has to do with the spark path I ran into this also awhile back because all my stuff is under public_html
php spark is hard coded to the public folder I had to edit it and change it to public_html.

This is what I had to do

PHP Code:
// Path to the front controller
define('FCPATH'__DIR__ '/public' DIRECTORY_SEPARATOR); 

I Changed it to the below for my stuff:

PHP Code:
// Path to the front controller
define('FCPATH'__DIR__ '/public_html' DIRECTORY_SEPARATOR); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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