I am trying to run a cron with cakephp3 shell.I found The cron is not working and when i opend the error log file i got the following error.
In my log file I got this :
X-Powered-By: PHP/5.6.24
Content-type: text/html; charset=UTF-8
<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr57da84598661d-trace').style.display = (document.getElementById('cakeErr57da84598661d-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined variable: argv [<b>ROOT/bin/cake.php</b>, line <b>32</b>]<div id="cakeErr57da84598661d-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr57da84598661d-code').style.display = (document.getElementById('cakeErr57da84598661d-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr57da84598661d-context').style.display = (document.getElementById('cakeErr57da84598661d-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr57da84598661d-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">include </span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__DIR__</span><span style="color: #007700">) . </span><span style="color: #DD0000">'/config/bootstrap.php'</span><span style="color: #007700">;</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre><pre id="cakeErr57da84598661d-context" class="cake-context" style="display: none;">$_GET = [
'/home/birelqar/public_html/election/bin/cake_php' => '',
'User' => ''
]
$_POST = []
$_COOKIE = []
$_FILES = []
$_SERVER = [
'SHELL' => '/bin/bash',
'USER' => 'birelqar',
'PATH' => '/usr/bin:/bin',
'PWD' => '/home/birelqar/public_html/election',
'LANG' => 'en_US.UTF-8',
'HOME' => '/home/birelqar',
'SHLVL' => '1',
'LOGNAME' => 'birelqar',
'PHP_SELF' => '',
'REQUEST_TIME_FLOAT' => (float) 1473938521.4958,
'REQUEST_TIME' => (int) 1473938521
]
$_REQUEST = [
'/home/birelqar/public_html/election/bin/cake_php' => '',
'User' => ''
]
$_ENV = [
'SHELL' => '/bin/bash',
'USER' => 'birelqar',
'PATH' => '/usr/bin:/bin',
'PWD' => '/home/birelqar/public_html/election',
'LANG' => 'en_US.UTF-8',
'HOME' => '/home/birelqar',
'SHLVL' => '1',
'LOGNAME' => 'birelqar'
]
$GLOBALS = [
'_GET' => [
'/home/birelqar/public_html/election/bin/cake_php' => '',
'User' => ''
],
'_POST' => [],
'_COOKIE' => [],
'_FILES' => [],
'_SERVER' => [
'SHELL' => '/bin/bash',
'USER' => 'birelqar',
'PATH' => '/usr/bin:/bin',
'PWD' => '/home/birelqar/public_html/election',
'LANG' => 'en_US.UTF-8',
'HOME' => '/home/birelqar',
'SHLVL' => '1',
'LOGNAME' => 'birelqar',
'PHP_SELF' => '',
'REQUEST_TIME_FLOAT' => (float) 1473938521.4958,
'REQUEST_TIME' => (int) 1473938521
],
'_REQUEST' => [
'/home/birelqar/public_html/election/bin/cake_php' => '',
'User' => ''
],
'_ENV' => [
'SHELL' => '/bin/bash',
'USER' => 'birelqar',
'PATH' => '/usr/bin:/bin',
'PWD' => '/home/birelqar/public_html/election',
'LANG' => 'en_US.UTF-8',
'HOME' => '/home/birelqar',
'SHLVL' => '1',
'LOGNAME' => 'birelqar'
],
'GLOBALS' => [recursion],
'minVersion' => '5.5.9',
'__composer_autoload_files' => [
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => true,
'34122c0574b76bf21c9a8db62b5b9cf3' => true,
'c720f792236cd163ece8049879166850' => true,
'ede59e3a405fb689cd1cebb7bb1db3fb' => true,
'90236b492da7ca2983a2ad6e33e4152e' => true,
'b1fc73705e1bec51cd2b20a32cf1c60a' => true,
'667aeda72477189d0494fecd327c3641' => true,
'e7223560d890eab89cda23685e711e2c' => true
],
'isCli' => false
]
$minVersion = '5.5.9'
$__composer_autoload_files = [
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => true,
'34122c0574b76bf21c9a8db62b5b9cf3' => true,
'c720f792236cd163ece8049879166850' => true,
'ede59e3a405fb689cd1cebb7bb1db3fb' => true,
'90236b492da7ca2983a2ad6e33e4152e' => true,
'b1fc73705e1bec51cd2b20a32cf1c60a' => true,
'667aeda72477189d0494fecd327c3641' => true,
'e7223560d890eab89cda23685e711e2c' => true
]
$isCli = false</pre><pre class="stack-trace">[main] - ROOT/bin/cake.php, line 32</pre></div></pre>
Welcome to CakePHP v3.2.8 Console
---------------------------------------------------------------
App : src
Path: /home/birelqar/public_html/election/src/
PHP : 5.6.24
---------------------------------------------------------------
Current Paths:
* app: src
* root: /home/birelqar/public_html/election
* core: /home/birelqar/public_html/election/vendor/cakephp/cakephp
Available Shells:
[DebugKit] benchmark, whitespace
[Migrations] migrations
[CORE] i18n, orm_cache, plugin, routes, server
[app] console, user
To run an app or core command, type `cake shell_name [args]`
To run a plugin command, type `cake Plugin.shell_name [args]`
To get help on a specific command, type `cake shell_name --help`
Have no idea what is going on.What kind of error is this. anyone can solve this please.