Welcome Guest, Not a member yet? Register   Sign In
unexpected T_CONST--Help Please
#1

One of the four web sites I have created with CI has suddenly started getting this error:

Parse error: syntax error, unexpected T_CONST in /home3/billhogs/public_html/ccbridgeclub/system/core/CodeIgniter.php on line 58

I read a thread here in May that suggested reloading the system directory.  The website was running 3.1.3 so I upgraded to 3.1.9 (renamed the 3.1.3 application and system dirs and uploaded 3.1.9 dirs along with the index.php).

I get the same error in the new 3.1.9.  Confused

The php is 7.0.x

Any help will be greatly appreciated and I will report what finally solved the issue.

Thanks in advance.


Bill
Reply
#2

I fixed the problem, but am not sure how it occurred.

I first loaded 3.1.9 into a test directory with the same result.

I then loaded 3.1.9 into a test directory for another domain on the same shared server.  Worked fine.

I then looked at the .htaccess files for both domains.  They differed and I copied the file from the working domain to the one failing and presto all is well.

I had not touched either domain in months, so I am not sure what happened.

But all is well now!

Bill
Reply




Theme © iAndrew 2016 - Forum software by © MyBB