How do I resolve this error

Parse error: syntax error, unexpected T_CONST in C:\wamp\www\codeigniter\system\core\CodeIgniter.php on line 58
Lola TolorunlogoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Okay. This will be a bit complex.

First, your problem relates to PHP, not Apache, so I've tagged your question as PHP also.

Type type of problem normally occurs after an upgrade, which causes a mismatch between your PHP version + CodeIgniter version.

The upgrade could have been an OS upgrade, a PHP upgrade or a CodeIgniter upgrade.

Regardless, the fix is matching your version of PHP + CodeIgniter.

The CodeIgniter docs are surprisingly sparse, regarding exact PHP version support.

Reading other forums, it appear CI 2.X can use PHP-5.5 + older. CI 3.X requires PHP-5.6 + greater.

There's no mention about specific support for PHP 7.0 or 7.1 or 7.2 so likely you're best option will be to open a ticket with CI support + ask them about this error, related to your PHP version + CI version.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
I've marked my solution as best, since it was the only one + original poster seems to have stopped posting.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CodeIgniter

From novice to tech pro — start learning today.