from this:
exec php -q "$LIB"cake.php -working "$APP" "$@"
to this:
exec php -q -d register_argc_argv=1 "$LIB"cake.php -working "$APP"
"$@"
after reading this:
http://stackoverflow.com/questions/3542649/cakephp-console-on-godaddy-hosting
even though my host is not godaddy
On Feb 4, 3:08 pm, docdlb <dunc_br...@hotmail.com> wrote:
> Have fresh install in development mode and have included lib folder in
> linux path.
> Logged into shell on shared host
> php version 5.3.10
> However when running cake, with or without any arguments get this
> error
>
> $cake
> PHP Notice: Undefined variable: argv in /home/sites/mysite.com/
> public_html/cake2/lib/Cake/Console/cake.php on line 24
> PHP Warning: array_search() expects parameter 2 to be array, null
> given in /home/sites/mysite.com/public_html/cake2/lib/Cake/Console/
> ShellDispatcher.php on line 292
> PHP Warning: array_splice() expects parameter 1 to be array, null
> given in /home/sites/mysite.com/public_html/cake2/lib/Cake/Console/
> ShellDispatcher.php on line 296
> PHP Warning: array_search() expects parameter 2 to be array, null
> given in /home/sites/mysite.com/public_html/cake2/lib/Cake/Console/
> ShellDispatcher.php on line 292
> PHP Warning: array_splice() expects parameter 1 to be array, null
> given in /home/sites/mysite.com/public_html/cake2/lib/Cake/Console/
> ShellDispatcher.php on line 296
>
> What is causing this behaviour? Must be a problem with the environment
> as far as I can tell
> What other info needed to troubleshoot?
> Any suggestions much appreciated!
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment