unexpected T_CONST--Help Please - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: unexpected T_CONST--Help Please (/showthread.php?tid=72380) |
unexpected T_CONST--Help Please - bhogsett - 12-12-2018 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. 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 RE: unexpected T_CONST--Help Please - bhogsett - 12-13-2018 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 |