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

Tuesday, March 15, 2022

[FIXED] how to fix mycakephp3 program in ubuntu 14.04 Parse error: syntax error, unexpected '.', expecting '&' or variable

 March 15, 2022     cakephp, cakephp-3.0, ubuntu, ubuntu-14.04     No comments   

Issue

I copied all my files in my windows laptop which my cakephp program functioning already but when Im in my ubuntu machine it says below.

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /opt/lampp/htdocs/mycake/vendor/cakephp/cakephp/src/I18n/functions.php on line 26

I could not find any solution on this forum

Im using cakephp 3.4.13


Solution

That's the variadic argument token (...) that the parser complains about, and the solution to the problem can be found in the issue report that you've linked:

CakePHP 3.4 requires PHP 5.6+

https://github.com/cakephp/cakephp/issues/10035#issuecomment-272607697

Upgrade your PHP version to at least 5.6.0.

See also Cookbook > Installation > Requirements



Answered By - ndm
  • 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