Note that there are some explanatory texts on larger screens.

plurals
  1. POCakePHP Error when Calling custom shell via Cron on the Console
    primarykey
    data
    text
    <p>Please can you help. I've recently moved a cakephp app to a new server and cannot get the final bit of the configeration to work.</p> <p>We have a cron set to run a scheduled task every minute. The cron is being called correctly and running the following script:</p> <pre><code>#! /bin/sh cd /home/astadm1n/public_html/app/api/app #cake send_sms /usr/local/bin/cake send_sms </code></pre> <p>So when I run this on the console manually I get the following error:</p> <pre><code>astadm1n@autotext.co [~/public_html/app/api/app]# #cake send_sms astadm1n@autotext.co [~/public_html/app/api/app]# /usr/local/bin/cake send_sms Error: Could not load class Console #0 /home/astadm1n/public_html/app/api/lib/Cake/Log/LogEngineCollection.php(41): LogEngineCollection::_getLogger('Console') #1 /home/astadm1n/public_html/app/api/lib/Cake/Log/CakeLog.php(198): LogEngineCollection-&gt;load('stdout', Array) #2 /usr/local/lib/php/Cake/Console/Shell.php(885): CakeLog::config('stdout', Array) #3 /usr/local/lib/php/Cake/Console/Shell.php(184): Shell-&gt;_useLogger() #4 /usr/local/lib/php/Cake/Console/ShellDispatcher.php(254): Shell-&gt;__construct() #5 /usr/local/lib/php/Cake/Console/ShellDispatcher.php(200): ShellDispatcher-&gt;_getShell('send_sms') #6 /usr/local/lib/php/Cake/Console/ShellDispatcher.php(68): ShellDispatcher-&gt;dispatch() #7 /usr/local/bin/cake.php(51): ShellDispatcher::run(Array) #8 {main} astadm1n@autotext.co [~/public_html/app/api/app]# ^C astadm1n@autotext.co [~/public_html/app/api/app]# </code></pre> <p>Can anyone spot why this error is occurring?</p> <p>Thanks for your help</p> <p>Mike</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload