Hi,
I am getting the following error in my errorlogs:
8: Undefined index: blurb
File: /home/website/html/forum/Themes/vp/Display.template.php (main sub template - eval?)
Line: 300
Any ideas on what is wrong?
The line is exactly the same as in the default theme.
Possible reasons are an incompatible theme with your version of SMF or maybe a mod?
Do you experience the same errors from the default theme? If you have mods installed have any of those changed your display.template file?
Probably yes.
I use 1,1RC2 with a modified version of the default theme.
Ths mods i installed are:
- arcade
- Paid Subscriptions
- OnLine Users Today
- Thread's Bookmarks
- Automatic BBC
- Pie Chart Mod
- Ultimate Shoutbox
You can take a look at www.vrouwenpower.nl (beware it is in dutch and it is a womens forum ;) )
Is your theme compatible with RC2? Are your mods compatible with RC2?
It's most likely a missing language string. Run this query in phpMyAdmin and check to see where the error message changes to. Right now the eval is not showing you the correct file and line that the error is in.
INSERT INTO smf_settings
(variable, value)
VALUES ('disableTemplateEval', '1');
Quote from: kegobeer on February 17, 2006, 03:14:38 PM
Is your theme compatible with RC2? Are your mods compatible with RC2?
Yes they are (as far as i can tell)
Quote from: JayBachatero on February 17, 2006, 03:35:34 PM
It's most likely a missing language string. Run this query in phpMyAdmin and check to see where the error message changes to. Right now the eval is not showing you the correct file and line that the error is in.
INSERT INTO smf_settings
(variable, value)
VALUES ('disableTemplateEval', '1');
I tried that and the error is still the same:
8: Undefined index: blurb
File: /home/vrouwenpower/html/forum/Themes/vp/Display.template.php
Line: 300
Ok in Display.english.php add
$txt['blurb'] = 'TEST TEST';
Tell me if the error goes away.
EDIT: Can you please post your Display.template.php file?
here u go...
BTW, i am using the dutch language
Ok try this.
B4 i try that, could you tell me what you changed?
I change
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
if (!empty($settings['show_blurb']) && !empty($message['member']['blurb']))
Basically they are both the same thing but the !empty won't spit the error.
OK,
i used the same principle in the arcade template i use:
i changed:
if( $context['arcade']['warn'] == 1)
to this:
if( !empty($context['arcade']['warn']))
Is that correct?
Yea that's good. But it check to see if the table field is empty so it doesnt matter if its true or false it will show something. Use this.
if(!empty($context['arcade']['warn']) && $context['arcade']['warn'] == TRUE)
edit it should be !empty not empty
Quote from: JayBachatero on February 19, 2006, 05:02:39 PM
Yea that's good. But it check to see if the table field is empty so it doesnt matter if its true or false it will show something. Use this.
if(empty($context['arcade']['warn']) && $context['arcade']['warn'] == TRUE)
Are you sure it shouldn't be !empty?
Yea someone i erased that. Silly me :(
Thanx Jay!
I really appreciate this :)
You're welcome. So is the error gone now?
Yes, but now it reports false play every game so i changed it back to what i entered. :(
Now it looks fine.
I will have to wait a while b4 i can see if the errors are gone.
You mean for the arcade stuff? If so make a post over at the arcade topic.
Yes i will post at the arcade forum.
Thanks!
You're welcome.