News:

Join the Facebook Fan Page.

Main Menu

Error Assumed php

Started by Kaitlyn, September 18, 2012, 04:37:23 PM

Previous topic - Next topic

Kaitlyn

I started changing some of the menu titles on my forum and started getting errors in my log for each file I edited in english-utf8.php

Use of undefined constant php - assumed 'php'
Themes/default/languages/Search.english-utf8.php
Line: 1

Use of undefined constant php - assumed 'php'
Themes/default/languages/ManageSettings.english-utf8.php
Line: 1

Use of undefined constant php - assumed 'php'
Themes/default/languages/ModerationCenter.english-utf8.php
Line: 1

Use of undefined constant php - assumed 'php'
Themes/default/languages/ManageMembers.english-utf8.php
Line: 1

Line one on all the files I see is <?php which I thought that's what it was suppose to be when I try and open the file in error log it's a blank screen

MrPhil

All the files start with <?php ? You're sure there's no space between the ? and the php (<? php)? There's no extra 'php' on the line? Since this is UTF-8, check to make sure you're not saving a "Byte Order Mark" at the beginning of each file. If your editor offers you "save with BOM" or "save without BOM", always choose "without". How are you editing these files? Not with Word or another word processor, I hope, but with a real text editor like Notepad++ or ViM. I suppose it's even possible that a word processor is "helpfully" inserting a thin space after a question mark?

JBlaze

Download file_check.php in this topic, run it, and fix all files affected if necessary.
Jason Clemons
Former Team Member 2009 - 2012

Advertisement: