Console. My application works normally but I can not use the Console

0

My application usually works more when I try to use the Console it gives the following error:

  

PHP Warning: include (Cake / Console / ShellDispatcher.php): failed to   open stream: No such file or directory in   /home/devidy/www/en/Console/cake.php on line 23 PHP Warning:   include (): Failed opening 'Cake / Console / ShellDispatcher.php' for   inclusion (include_path = '.: / usr / share / php: / usr / share / pear') in   /home/devidy/www/en/Console/cake.php on line 23 PHP Fatal error:   Could not locate CakePHP core files. in   /home/devidy/www/en/Console/cake.php on line 24   devidy @ nurturing-02: ~ / www / es $

I looked at the internet but did not find much. Has anyone ever seen anything like it?

    
asked by anonymous 28.01.2015 / 20:08

1 answer

0

You are probably using Cake installed in another directory than your application.

In the file /Console/cake.php change the line:

ini_set('include_path', $root . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));

for: (in my case Cake is in /usr/lib/Cake )

ini_set('include_path', $ds . 'usr' . $ds . 'lib' . $ds . 'Cake' . $ds . 'lib' .PATH_SEPARATOR . ini_get('include_path'));

I hope it helps.

    
17.08.2015 / 13:57