We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Need help with error after upgrade to EE v6

News and General

Okapi Creative's avatar
Okapi Creative
382 posts
3 years ago
Okapi Creative's avatar Okapi Creative

Just upgraded EE from V2 to 6.3.2 and all fine except this error when trying to edit entries:

Parse error: syntax error, unexpected ‘clone’ (T_CLONE), expecting identifier (T_STRING) in xxxx/xxx/xxxx/ee/ExpressionEngine/Addons/pages/tab.pages.php on line 130

Anyone got any idea on cause or possible fix?

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
3 years ago
Tom Jaeger's avatar Tom Jaeger

What version of PHP are you running?

       
Okapi Creative's avatar
Okapi Creative
382 posts
3 years ago
Okapi Creative's avatar Okapi Creative

Is version 5.6 Php

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
3 years ago
Tom Jaeger's avatar Tom Jaeger

Any chance you can try bumping that up to a 7.x version?

       
Yuri's avatar
Yuri
315 posts
3 years ago
Yuri's avatar Yuri

If updating PHP version is not possible at the moment (I would really recommend to do it as soon as you can though) you can edit that file tab.pages.php on line 130 and change public function clone to public function cloneData

       
Okapi Creative's avatar
Okapi Creative
382 posts
3 years ago
Okapi Creative's avatar Okapi Creative

Ok thanks Yuri, will test this. Will I need to change it back when I do update to Php7? Or is ok to leave?

       
Yuri's avatar
Yuri
315 posts
3 years ago
Yuri's avatar Yuri

It’s fine to keep that change

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.