TinyPortal
Development => Support => Topic started by: KillerZ on November 15, 2008, 06:49:57 AM
I am helping a friend set up his daughters site. He is using Smf 1.1.7 and TP 1.0.6 with Gallery Lite and Treasury installed. This error keeps coming in the log. ALOT.
8: Use of undefined constant Gallery - assumed 'Gallery'
File: /path/Themes/default/languages/TPShout.english.php (main_above sub template - eval?)
Line: 489
I took a look at that file and there isn't 489 lines in or any reference to Gallery. Can someone give me some advice or at least point me in the right direction please. Thanks for any help.
Thats not a tp error, it's a gallery error,i think your better off asking this question on SMFHacks.com
Just to add, it is probably because you added $txt[gallery] in your theme to add a button right? Most people think you can just add the word, but it doesn't quite work that way. If you look at the default theme you can see the $txt you actually have to add.
$txt[gallery] actually needs to be $txt['gallery'] which is why you get the constant error. But that wouldn't matter as $txt['gallery'] doesn't exist, so you would get an undefined index error after that. Suddenly I feel like I'm rambling. lol Anyway, look at the default theme button that was put in and copy the $txt code for it. :D
Thanks. I'll have a look now. :D