Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Webrunner on February 17, 2006, 11:13:06 AM

Title: Error in log: blurb
Post by: Webrunner on February 17, 2006, 11:13:06 AM
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.
Title: Re: Error in log: blurb
Post by: redone on February 17, 2006, 12:16:43 PM
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?
Title: Re: Error in log: blurb
Post by: Webrunner on February 17, 2006, 02:48:16 PM
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 ;) )
Title: Re: Error in log: blurb
Post by: kegobeer on February 17, 2006, 03:14:38 PM
Is your theme compatible with RC2?  Are your mods compatible with RC2?
Title: Re: Error in log: blurb
Post by: 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');
Title: Re: Error in log: blurb
Post by: Webrunner on February 17, 2006, 05:23:57 PM
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)
Title: Re: Error in log: blurb
Post by: Webrunner on February 18, 2006, 02:34:06 AM
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
Title: Re: Error in log: blurb
Post by: JayBachatero on February 18, 2006, 02:22:42 PM
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?
Title: Re: Error in log: blurb
Post by: Webrunner on February 19, 2006, 05:33:32 AM
here u go...

BTW, i am using the dutch language
Title: Re: Error in log: blurb
Post by: JayBachatero on February 19, 2006, 11:29:36 AM
Ok try this.
Title: Re: Error in log: blurb
Post by: Webrunner on February 19, 2006, 02:22:59 PM
B4 i try that, could you tell me what you changed?
Title: Re: Error in log: blurb
Post by: JayBachatero on February 19, 2006, 02:26:30 PM
I change
Code (this) Select

if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')


Code (tp this) Select

if (!empty($settings['show_blurb']) && !empty($message['member']['blurb']))


Basically they are both the same thing but the !empty won't spit the error.
Title: Re: Error in log: blurb
Post by: Webrunner on February 19, 2006, 04:52:58 PM
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?
Title: Re: Error in log: blurb
Post by: 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)


edit it should be !empty not empty
Title: Re: Error in log: blurb
Post by: kegobeer on February 19, 2006, 05:07:49 PM
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?
Title: Re: Error in log: blurb
Post by: JayBachatero on February 19, 2006, 05:18:39 PM
Yea someone i erased that.  Silly me :(
Title: Re: Error in log: blurb
Post by: Webrunner on February 19, 2006, 05:32:08 PM
Thanx Jay!
I really appreciate this :)
Title: Re: Error in log: blurb
Post by: JayBachatero on February 19, 2006, 05:36:38 PM
You're welcome.  So is the error gone now?
Title: Re: Error in log: blurb
Post by: Webrunner on February 19, 2006, 05:50:32 PM
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.
Title: Re: Error in log: blurb
Post by: JayBachatero on February 19, 2006, 05:52:34 PM
You mean for the arcade stuff?  If so make a post over at the arcade topic.
Title: Re: Error in log: blurb
Post by: Webrunner on February 19, 2006, 06:06:52 PM
Yes i will post at the arcade forum.
Thanks!
Title: Re: Error in log: blurb
Post by: JayBachatero on February 19, 2006, 06:08:13 PM
You're welcome.