News:

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

Main Menu

Error in log: blurb

Started by Webrunner, February 17, 2006, 11:13:06 AM

Previous topic - Next topic

Webrunner

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.
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

redone

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?

Webrunner

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 ;) )
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

kegobeer

Is your theme compatible with RC2?  Are your mods compatible with RC2?
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

JayBachatero

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');
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Webrunner

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)
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Webrunner

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
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

JayBachatero

#7
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?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Webrunner

here u go...

BTW, i am using the dutch language
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Webrunner

B4 i try that, could you tell me what you changed?
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Webrunner

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?
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

JayBachatero

#13
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
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

kegobeer

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?
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

JayBachatero

Yea someone i erased that.  Silly me :(
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Webrunner

Thanx Jay!
I really appreciate this :)
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

JayBachatero

You're welcome.  So is the error gone now?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Webrunner

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.
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

JayBachatero

You mean for the arcade stuff?  If so make a post over at the arcade topic.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: