Click here to Skip to main content
15,884,997 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am facing some problem ,while uploading my local project to server ,its throwing an error ,which i am not able to fix.plz help me.What is the reason behind this issues.

Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or '$' in /home/xxxxxx/public_html/Demo/xxxx/lib/Cake/Core/App.php on line 221

PHP
if (!empty(static::$legacy[$type])) {
            $type = static::$legacy[$type];
        }


In line 221 this one is present.
Posted
Updated 3-Nov-15 18:38pm
v3
Comments
Richard Deeming 3-Nov-15 9:16am    
And we're supposed to guess what line 221 of App.php looks like?

Use the "Improve question" button to update your question with the relevant parts of your code. Don't forget to wrap your code in <pre>...</pre> blocks, and don't forget to indicate which line is line 221.
Sradhanjali Behera 4-Nov-15 0:38am    
I have added code ,plz check it.

1 solution

 
Share this answer
 
Comments
Sradhanjali Behera 9-Nov-15 8:36am    
Yes here i am using a higher version of cake php ,i.e 0.2.9 and in my server php version is a lower version,so its creating a problem
Sradhanjali Behera 9-Nov-15 8:37am    
Thanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900