Chat error

Started by TheListener, July 26, 2009, 05:32:20 PM

Previous topic - Next topic

TheListener

 Undefined index: chat
Apply Filter: Only show the errors from this file
File:public_html/Sources/Subs.php
Line: 3884


Attachment included.



tyty1234

Your error seems to be coming from this code.


$chatButton = $txt['chat'];


Does this exist in your language files?
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheListener

Quote from: tyty1234 on July 27, 2009, 03:06:10 PM
Your error seems to be coming from this code.


$chatButton = $txt['chat'];


Does this exist in your language files?

Where would I go to look?

tyty1234

It should be in your Modifications.english.php file within your languages folder of the default theme folder.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheListener

I couldn't find it but I have included the file just in case.

( Just hope it is the right one)


tyty1234

try check your index.english.php file then. If it's not in either, add the following code to the end of index.english.php.


$txt['chat'] = 'Chat';
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheListener

Nothing there either.

tyty1234

Ok, then add the code I mentioned in my previous post to the end of index.english.php file.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheListener

Thanks bud. Have emptied the error log so will keep an eye on things.

Tyrsson

You will also need to clear the forum cache as the language files are cached in the 2.x version.
PM at your own risk, some I answer, if they are interesting, some I ignore.

TheListener

Hm ok smarty pants how do I do that?

:D

Tyrsson

Oh sorry about that :)

admincp>forum maintenance>routine>clear forum cache.
PM at your own risk, some I answer, if they are interesting, some I ignore.

TheListener

Done but as a matter of interest what does it do?

Bet ya can't answer that without the techno babble  ;D

Tyrsson

It simply allows the server to update the cached language files so that any changes you have made (like adding the chat string) will show upon the next page load, assuming you have cleared your browser cache as well.
PM at your own risk, some I answer, if they are interesting, some I ignore.

TheListener

Thanks ( :( Darn no stinkbomb throwing)

Advertisement: