News:

Wondering if this will always be free?  See why free is better.

Main Menu

8: Use of undefined constant Y - assumed 'Y'

Started by sharkey, May 08, 2005, 07:12:09 PM

Previous topic - Next topic

sharkey

Have only been actively using my forum for about a week or so , and already I have an error log that's 416 pages long. Every error is practically the same, along the lines of:


Quote8: Use of undefined constant Y - assumed 'Y'
File: /home/atleeds/public_html/forum/Themes/default/MessageIndex.template.php (eval?)
Line: 363


they occur in various files Admin.template.php, Display.template.php, BoardIndex.template.php, Who.english.php, MessageIndex.template.php, Profile.english.php  and more always on line 363

Have searched the boards here for similar errors with no results, any idea what's causing this?


My board seems to be functional, and the only bug I've noticed is that oocasionaly while posting it times out. When this happens if you simply go back and re-submit the form it seems to post ok on the second attempt. This is not all the time and doesn't seem to be due to any specific situation.

Ben_S

What version are you running, can you do a detailed version check to ensure all files are up to date?
Liverpool FC Forum with 14 million+ posts.

Thantos


sharkey

hmm yeah I guess so but that would mean losing all the changes I've made to the theme. I wish their was still an easy way of editing the theme via admin like in yabbse.... ::)

sharkey

SMF File Your Version Current Version
SMF Package SMF 1.0.3 SMF 1.0.3
Sources 1.0.3 1.0.3
Admin.php 1.0.3 1.0.3
BoardIndex.php 1.0 1.0
Calendar.php 1.0.3 1.0.3
Display.php 1.0.1 1.0.1
DumpDatabase.php 1.0 1.0
Errors.php 1.0.2 1.0.2
Help.php 1.0 1.0
InstantMessage.php 1.0.2 1.0.2
Karma.php 1.0 1.0
Load.php 1.0.2 1.0.2
LockTopic.php 1.0 1.0
LogInOut.php 1.0.2 1.0.2
ManageAttachments.php 1.0.1 1.0.1
ManageBoards.php 1.0.1 1.0.1
ManageMembers.php 1.0.3 1.0.2
ManagePermissions.php 1.0 1.0
ManageSmileys.php 1.0.2 1.0.2
MemberMap.php 1.0 ??
Memberlist.php 1.0 1.0
MessageIndex.php 1.0 1.0
ModSettings.php 1.0.1 1.0.1
Modlog.php 1.0 1.0
MoveTopic.php 1.0.1 1.0.1
MsgIcon.php 1.0 Beta 6 ??
News.php 1.0.3 1.0.3
Notify.php 1.0 1.0
PackageGet.php 1.0.1 1.0.1
Packages.php 1.0.1 1.0.1
Poll.php 1.0.3 1.0.3
Post.php 1.0.2 1.0.2
Printpage.php 1.0 1.0
Profile.php 1.0.3 1.0.3
QueryString.php 1.0 1.0
Recent.php 1.0.2 1.0.2
Register.php 1.0.3 1.0.3
Reminder.php 1.0 1.0
RemoveTopic.php 1.0.1 1.0.1
RepairBoards.php 1.0 1.0
SSI.php 1.0.3 1.0.3
Search.php 1.0.2 1.0.2
Security.php 1.0.2 1.0.2
SendTopic.php 1.0 1.0
Spam-me-not.php ?? ??
SplitTopics.php 1.0 1.0
Stats.php 1.0 1.0
Subs-Auth.php 1.0.3 1.0.3
Subs-Boards.php 1.0 1.0
Subs-Graphics.php 1.0 1.0
Subs-Package.php 1.0.3 1.0.3
Subs-Post.php 1.0.3 1.0.3
Subs.php 1.0.2 1.0.2
Themes.php 1.0.2 1.0.2
ViewQuery.php 1.0 1.0
Who.php 1.0 1.0
Default Templates 1.0.3 1.0.3
Admin.template.php 1.0 1.0
BoardIndex.template.php 1.0.1 1.0.1
Calendar.template.php 1.0 1.0
Display.template.php 1.0.3 1.0.3
Errors.template.php 1.0 1.0
Help.template.php 1.0 1.0
InstantMessage.template.php 1.0 1.0
Login.template.php 1.0 1.0
ManageAttachments.template.php 1.0 1.0
ManageBoards.template.php 1.0 1.0
ManageMembers.template.php 1.0 1.0
ManagePermissions.template.php 1.0 1.0
ManageSmileys.template.php 1.0 1.0
MemberMap.template.php 1.0 ??
Memberlist.template.php 1.0 1.0
MessageIndex.template.php 1.0 1.0
Modlog.template.php 1.0 1.0
MoveTopic.template.php 1.0 1.0
MsgIcon.template.php ?? ??
Notify.template.php 1.0 1.0
Packages.template.php 1.0.1 1.0.1
Poll.template.php 1.0.3 1.0.3
Post.template.php 1.0 1.0
Printpage.template.php 1.0 1.0
Profile.template.php 1.0.1 1.0.1
Recent.template.php 1.0.1 1.0.1
Register.template.php 1.0 1.0
Reminder.template.php 1.0 1.0
Search.template.php 1.0 1.0
SendTopic.template.php 1.0 1.0
Settings.template.php 1.0 1.0
SplitTopics.template.php 1.0 1.0
Stats.template.php 1.0 1.0
Themes.template.php 1.0 1.0
Who.template.php 1.0 1.0
Wireless.template.php 1.0.1 1.0.1
index.template.php 1.0 1.0
Language Files 1.0.1 1.0.1
Admin.english.php 1.0 1.0
Errors.english.php 1.0 1.0
Help.english.php 1.0 1.0
Install.english.php 1.0 1.0
InstantMessage.english.php 1.0 1.0
Login.english.php 1.0 1.0
ManageBoards.english.php 1.0 1.0
ManageMembers.english.php 1.0 1.0
ManagePermissions.english.php 1.0 1.0
ManageSmileys.english.php 1.0 1.0
ModSettings.english.php 1.0 1.0
Modifications.english.php 1.0 1.0
Packages.english.php 1.0.1 1.0.1
Post.english.php 1.0 1.0
Profile.english.php 1.0 1.0
Settings.english.php 1.0 1.0
Stats.english.php 1.0 1.0
Themes.english.php 1.0 1.0
Who.english.php 1.0 1.0
Wireless.english.php 1.0 1.0
index.english.php 1.0.1 1.0.1

[Unknown]

What changes have you made to your theme or themes?  Have you added any custom menu buttons?

Check the index.template.php on the lines described by the various error messages.

-[Unknown]

sharkey

the only chnages I've made are to remove the login box section, avatar and instant messages info from the top of the standard smf template so that the first thing that is displayed is the menu buttons. Take a look the links in my signature. I will try and look in index.template.php on the lines described as you suggest.

sharkey




echo '
</div>
</div>
<div id="footer">&copy; Copyright iwasatleeds.co.uk ' . date(Y) . '</div>
</body>
</html>';
}



can't see anything wrong with that... ???

[Unknown]


sharkey

wow many thanks... should have figured that out from the error message..... "assumed Y"

doh!

Advertisement: