News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Undefined index : blurb errors in log

Started by perplexed, February 27, 2007, 10:08:41 AM

Previous topic - Next topic

perplexed

SMF Version: SMF 1.1.2
I have been getting this error since I upgraded in October to 1.1 RC3.  Since the template noted in the error is the shoutbox.template.php I posted in the ultimate shoutbox thread in October and again yesterday as I never got an answer and I still have pages of these errors.

I am now on 1.1.2

Anyway, I found this thread today

http://www.simplemachines.org/community/index.php?topic=71790.msg488398;topicseen#msg488398

and now I wonder if it has anything to do with the shoutbox mod at all.

Here is my error:

8: Undefined index: blurb
File: /home/mysite/public_html/forum/Themes/default/shout.template.php (main sub template - eval?)
Line: 309   <------ line 309 in the shout template is the last line,the one with the ?> on it

It happens over and over again.  Looking at topics seen seems to give the above error

Now this morning I am getting same error in log but different template reference.  Looking at topics seems to give this error

8: Undefined index: blurb
File: /home/mysite/public_html/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 309

We are using the default template and a copy of default in another colour.

(I have another forum that is identical to this one, but isnt generating this error)

I get pages of these, and I would love to solve the problem and not have to keep deleting them

Any ideas?

~thanks

SleePy

Run this query in phpmyadmin then try to create the errors again. New ones should appear in the error log that should be pointing to the correct file

REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);What is phpMyAdmin?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

perplexed

#2
ok I have run the query so I will wait for the errors to arrive after this point in time :)

~thanks


edited to add:

here is the error

it is in the display template


// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];




// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

// Show their personal text?
[color=red]--->[/color] if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';







// Don't show these things for guests.
if (!$message['member']['is_guest'])


the line with the red arrow is line 309.  I moved the avatars and personal text up in the display template so that they display under the user name and custom title.

Is there something wrong with this?  I have it exactly the same in my other forum and no errors?

SleePy

edit that line to be this

if (!empty($settings['show_blurb']) && !empty($message['member']['blurb']))
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!



Advertisement: