PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, February 22, 2022

[FIXED] CakePHP 3.0 cake Console error

 February 22, 2022     cakephp, cakephp-3.0     No comments   

Issue

I'm starting a new project with cakePHP 3.0 and I'm having problems with the cake console. When I try to run any command like:

bin/cake bake

I get the following error message:

X-Powered-By: PHP/4.4.9 Content-type: text/html


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /homepages/37/d542973365/htdocs/gestioPPF/bin/cake.php on line 33

Parse error: syntax error, unexpected T_STRING in /homepages/37/d542973365/htdocs/gestioPPF/bin/cake.php on line 33

I was working with the console without problems with cakePHP 2.x. Anyone know if I missed some previous configuration?

Thanks in advance, Cadí.


Solution

X-Powered-By: PHP/4.4.9 Content-type: text/html

If this is the php version (4.4) you're running you won't be able to run CakePHP 3.x at all. Update your php version and see if it works then.

One of the first things to do when using something new is to check it's requirements and documentation. It cleary states there that you need at least PHP 5.4.16 or greater and a few other things.



Answered By - floriank
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing