News:

Join the Facebook Fan Page.

Main Menu

8: Undefined index: blurb

Started by ariescapes, February 18, 2017, 09:14:22 PM

Previous topic - Next topic

ariescapes

Okay, this is driving me crazy enough that I need help with.

I'm getting this error and I can't figure it out. And what's worse is that it's logging for spambots which is killing my logs on a daily basis.

Guest
Apply Filter: Only show the error messages of this IP address ---
Reverse chronological order of list Today at 04:21:55 PM
Apply Filter: Only show the error messages of this session b412468259b59670d8f5e8ccc91a154a
Apply Filter: Only show the errors of this type Type of error: Undefined

Apply Filter: Only show the error messages of this URLhttp://www.***.com/index.php?5C2&topic=909.msg3440
Apply Filter: Only show the errors with the same message
8: Undefined index: blurbApply Filter: Only show the errors from this file File: /home/***/***/Themes/aquarelle-smf20/Display.template.php
Line: 451


450: // Show their personal text?
==>451: if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
452: echo '
453: <div class="OocCaste">', $message['member']['blurb'], '</div>';
454:


Sir Osis of Liver

That looks like a mod error.  Which mods are you running?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ariescapes


A few. >.> This is also a modified layout.. but I don't see where it is called from would cause this error.

1.   Boilerplates for posts   3.1     [ Uninstall ] [ List Files ] [ Delete ]
2.   Bookmarks   2.5     [ Uninstall ] [ List Files ] [ Delete ]
3.   Custom BBCodes Manager   2.0   [ List Files ] [ Delete ]
4.   Drafts      [ Uninstall ] [ List Files ] [ Delete ]
5.   Font Awesome   1.0     [ Uninstall ] [ List Files ] [ Delete ]
6.   Member NotePad   2.0.3     [ Uninstall ] [ List Files ] [ Delete ]
7.   SimplePortal   2.3.6     [ Uninstall ] [ List Files ] [ Delete ]
8.   @mention members   1.1.2     [ Uninstall ] [ List Files ] [ Delete ]
9.   SMFShop   3.3.2     [ Uninstall ] [ List Files ] [ Delete ]
10.   SubAccounts Mod   1.0.1     [ List Files ] [ Delete ]
11.   Topic Descriptions   1.3     [ Uninstall ] [ List Files ] [ Delete ]
12.   Ultimate Profile   0.9.1     [ Uninstall ] [ List Files ] [ Delete ]
13.   Wiki Links   1.1     [ Uninstall ] [ List Files ] [ Delete ]
14.   Remove "Last edit" mod   0.2.5     [ Uninstall ] [ List Files ] [ Delete ]
15.   Member Color Link   3.1     [ List Files ] [ Delete ]
16.   Order Custom Profile Fields   1.1.1     [ Uninstall ] [ List Files ] [ Delete ]
17.   Anti Bot: Are You Human/Bot?   3.0     [ Uninstall ] [ List Files ] [ Delete ]
19.   Private Profile   0.3.2     [ Uninstall ] [ List Files ] [ Delete ]
20.   Dice Roller BBcode   1.3     [ Uninstall ] [ List Files ] [ Delete ]
21.   Ohara YouTube Embed   1.2.4     [ Uninstall ] [ List Files ] [ Delete ]
22.   Member Awards   3.0     [ Uninstall ] [ List Files ] [ Delete ]
23.   Voter Visibility   2.1     [ Uninstall ] [ List Files ] [ Delete ]
24.   Membergroup ID with Group Name   1.1     [ Uninstall ] [ List Files ] [ Delete ]
25.   FancyPosts   0.4.2     [ Uninstall ] [ List Files ] [ Delete ]
27.   Fanfics System   1.3     [ Uninstall ] [ List Files ] [ Delete ]
28.   SMF 2.0.12 Update   1.0     [ List Files ] [ Delete ]
29.   Custom BBCodes Manager   2.2     [ Uninstall ] [ List Files ] [ Delete ]
30.   SMF 2.0.13 Update   1.0     [ Uninstall ] [ List Files ] [ Delete ]
31.   Alternate User Posting   1.0.1     [ Uninstall ] [ List Files ] [ Delete ]
32.   BBCode with style   1.5.1     [ Uninstall ] [ List Files ] [ Delete ]
33.   Dynamic_Memberlist   3.0     [ Uninstall ] [ List Files ] [ Delete ]

Removed the few that weren't actually installed.

Sir Osis of Liver

That may be a custom edit related to this.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ariescapes

Maybe? The odd part is that it's still calling up the profile information and displaying it correctly.

(website: http://www.dragonsbloodrpg.com)

Sir Osis of Liver

Undefined index errors can occur without causing a problem.  If everything's working, I wouldn't worry about it.  There's a trick to fudge the code that eliminates the error, but can't remember it offhand. :P
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ariescapes

Let me know if you do remember. The error logs add up faster then I like. :/

Sir Osis of Liver

Go to Admin -> Logs -> Log Pruning and reduce the number of days.  Will see if I can come up with the code edit.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

The code in your Display.template.php has been changed from this -



// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';



to this -



// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<div class="OocCaste">', $message['member']['blurb'], '</div>';



probably by a mod.  Oddly, if I replace the default code with your code in a test forum, it doesn't throw an error, even though the css class doesn't exist.  You can try replacing that one line with default code and see if it clears the error.  Also, take a look in /css/index.css and see if there's a OocCaste class.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ariescapes

Yeah, there is an OocCaste class.

.OocCaste {width: 185px; padding: 12px 9px 0 9px; margin-top: 5px; font-family: Satisfy; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-align: center; line-height: 100%; color: #382112;  }

Sir Osis of Liver

Can you attach your Display.template.php?  Am unable to duplicate the error.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ariescapes

This should do it. :)
Thank you for takign the time to help me with this!

Sir Osis of Liver

Also need your index.css.

Go to Admin -> Server Settings -> Disable evaluation of templates, check that and save, see if the error remains the same.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

ariescapes

So here is the CSS.

And that option had a check mark, I removed it and saves (so it isn't selected) ... and it took a bit but..

Type of error: Undefined

http://www.***.com/index.php?HvXmUc8lnOZ0&amp;topic=3032.msg16569;topicseen
Apply Filter: Only show the errors with the same message8: Undefined index: blurb
Apply Filter: Only show the errors from this file File: /home/***/***/Themes/default/languages/Fanfics.english.php (main sub template - eval?)
Line: 451


Apply Filter: Only show the error messages of this URLhttp://www.***.com/index.php?HvXmUc8lnOZ0&amp;amp;topic=3032.msg16569;topicseen
Apply Filter: Only show the errors with the same message8: Undefined index: blurb
Apply Filter: Only show the errors from this file File: /home/***/***/Themes/default/languages/OharaYTEmbed.english.php (main sub template - eval?)
Line: 451

Gluz

That check needs to be selected.

Also, the 'blurb' index should be defined, by default it's blank but it is defined. Your error could be caused by a MOD or an edit to some part of the Source files and not the Theme files.

You need to search in the forum files for all the matches for the 'blurb' in the Sources and Themes directories, to see if somewhere is explicitly undefined or if is not defined at all.

In a clean site is defined in the /Sources/Load.php as $profile['personal_text'] and that is being censored just right before. The personal text is first defined in the /Sources/Subs-Members.php at the time of register as the default setting $modSettings['default_personal_text'] that should be defined in /Sources/ManageSettings.php as '' (literally blank, but defined). Later in /Sources/Profile-Modify.php when the user modify it's profile that changes $profile['personal_text'].

Can yo attach this four files:
/Sources/Load.php
/Sources/Profile-Modify.php
/Sources/Register.php
/Sources/Subs-Members.php

So we can check out those files.

Sir Osis of Liver

Quote from: Gluz on February 20, 2017, 01:42:03 AM
Your error could be caused by a MOD or an edit to some part of the Source files and not the Theme files.

That's what I'm thinking.  OP is apparently using third party mods from another site, so it could be anything.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Oddly, I've been able to replicate the 'blurb' error by installing OP's Display.template.php (only that) on a test forum.  It only occurs if I display one thread which contains a couple of posts from a member that was deleted, and reverted to guest.  Template has been modded quite a bit, too tired to run it down tonight.  Will give it a go tomorrow.  No idea how 'blurb' could become undefined as a result of changes elsewhere in the template, it only appears in the code posted above.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Well, that would be the problem then... a guest has no user info, and therefore, blurb doesn't exist for a guest...   but, since the account doesn't actually exist and there is a sort of use assigned to the post, th system gets confused and can't find all of the data...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

But that doesn't happen here, does it?  kat is a deleted member and is shown as guest with no profile link next to his posts, that would cause same error.  OP's template is trying to load avatar for deleted member/guest -


Looks like there's at least one avatar mod in the template, will pick thru the code soon as I get a chance.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori


Advertisement: