Console. My application works normally no longer I can use the Console

Asked

Viewed 136 times

0

My application works normally 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/es/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/es/Console/cake.php on line 23 PHP Fatal error: Could not locate Cakephp core files. in /home/devidy/www/es/Console/cake.php on line 24 devidy@nurturing-02:~/www/es$

I looked on the internet but I didn’t find much. Someone there has seen something similar?

  • Basic question, do you develop in Windows and your production environment is linux? If so, have you checked whether the folder names are on case sensitive?

  • besides what @Erloncharles said, you have already checked if the file exists?

  • @Erloncharles I develop on on Ubuntu 14.04. The file does exist.

  • @Devidyoliviera as you are calling the application via shell?

  • @Erloncharles -Yes. "sudo INSTANCE=ipa Console/cake Sms smsReport 66403836D"

1 answer

0

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

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

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

to: (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'));

hope it helps.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.