News:

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

Main Menu

How to interpret errors on Error Log?

Started by 58tbird, July 15, 2008, 11:36:48 AM

Previous topic - Next topic

58tbird

Hi!

Is there an index that explains errors and how to solve them?  I am getting the same error over ad over lately and I don't know what to do about it.  I've searched the board and checked the SMF Docs but couldn't find anything.

I'm sure it's due to a recent mod I added (I use the default theme), but I get no response from the board for that mod.

burtybob

i do not know of such an index although it may be a nice one to have for the more common errors that happen.

Most errors that come up in the log are fairly self explanatory like installing a mod and a missing string so it says so but still some can be a pain to look at. :D

Quote8: Undefined index: description
    File: ...default/languages/Post.english.php (main sub template - eval?)
    Line: 982

This means that on line 982 of the english language file for post there is a call to something called "description" that has not been defined, so its like me calling your name but you now knowing it.
The same way SMF is saying hello description, we are calling description but it can not be found because it has not been told it is description :D, probably a call to a function.
Not using that mod i do not know what is wrong with it.
Make sure you are using English not english-utf8 as that may be a problem the forum is looking for it in english instead of the utf8 set.
or the other way :/ possibly...
If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

58tbird

Thank you burtybob - that helps me understand it better.  I wonder, then, if the description it's calling for has anything to do with the fact that the formatting button over the posting window that the mod created doesn't have a description when I hover over it?  I've reviewed the manual instructions for installing the mod using the Package Parser, but nothing jumps out at me (I'm not very familiar with how to read code though).  I'll have another look at it - maybe it will make more sense to me know after reading your explanation.  Thanks again  ;)

burtybob

It could also be that its editing English or English-utf8 but not the other one and you maybe using the one it is not editing.

This is what i tend to find often my forum runs in utf8 mode but most MODs update the normal versions.
If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

58tbird

Well, let's see...I'm using English, and I didn't manually install the package (I'm still new at this, so I've only done a small amount of manual edits).  Would it have edited the English-utf8 file instead of the English file?  If so, maybe you're right and that's the issue.

58tbird

According to the Package Parser, there are only two files modified: $sourcedir/Subs.php & $themedir/Post.template.php.  Am I understanding this correctly, that it didn't modify either the English or English-utf8 files?

burtybob

Quote from: 58tbird on July 15, 2008, 12:51:07 PM
According to the Package Parser, there are only two files modified: $sourcedir/Subs.php & $themedir/Post.template.php.  Am I understanding this correctly, that it didn't modify either the English or English-utf8 files?
Yeah and i think that is the problem :/ it should be editing it and its not post it in the thread lol, ive installed it and i get the same error!
If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

58tbird

Quotepost it in the thread lol
I'm sorry burtybob - I don't understand, are you asking me to post something?

I think the mod was designed for 1.1.4 so that may be the problem.  Maybe I should just uninstall it.

burtybob

Quote from: 58tbird on July 15, 2008, 02:11:16 PM
Quotepost it in the thread lol
I'm sorry burtybob - I don't understand, are you asking me to post something?

I think the mod was designed for 1.1.4 so that may be the problem.  Maybe I should just uninstall it.

1.1.5 is only a security update so it should be fine what i meant was post in the Mods thread saying about the problem forget that i see you have :D.
Yeah just uninstall it the img tag works well but it uses up more space on the page.
If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

58tbird

Thanks burtybob - you've been a great help and I appreciate you for taking the time to help me on this.  :)

burtybob

If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

58tbird

Hey burtybob!  I think I figured it out (just don't ask me how).  Per the Package Parser, in the Post.Template.php file:
QuoteFind:
         'flash' => array('code' => 'flash', 'before' => 'http://',%20'after'%20=>%20'', 'description' => $txt[433]),

Add after:

         'imgt' => array('code' => 'imgt', 'before' => '[imgt]', 'after' => '[/imgt]'),

But I amended it to this:
'imgt' => array('code' => 'imgt', 'before' => '[imgt]', 'after' => '[/imgt]', 'description' => $txt['thumbnail image']), ...and now the button has a label when I hover over it, and no errors so far!  :)  :)

Bigguy

This was the error you are getting:

8: Undefined index: description
    File: ...default/languages/Post.english.php (main sub template - eval?)
    Line: 982


This part of it:

eval?

Tells you the error is being generated by a different file that has been edited. I would check the edits in the other files and see if they are correct.

58tbird

#13
Hey Bigguy!  Okay, I'll have a look at that. 

I guess I confused the Thumbnail button ("T") with the Image button on my last post.  I tried using the Thumbnail button just now and it doesn't work as a result of my edit (I was trying to insert a .xls file; I just tried a .png file and it works), however, there's still no description when I hover over the button and I got this error:

Quote8: Undefined index: thumbnail image
File: .../Themes/default/languages/Post.english.php (main sub template - eval?)
Line: 779

58tbird

Hey Bigguy!

According to the Package Parser, the only other edit was this:
QuoteIn file $sourcedir/Subs.php
Find:
         array(
            'tag' => 'white',
            'before' => '<span style="color: white;">',
            'after' => '</span>',
         ),

Add after:
         array(
            'tag' => 'imgt',
            'type' => 'unparsed_content',
            'content' => '<a href="$1" target="_blank"><img src="$1" width="100px" height="90px" border="0" /></a>',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
            'disabled_content' => '($1)',
         ),
I'm afraid I'm not savvy enough to evaluate if there's anything wrong with the code or not.  Does anything appear incorrect to you?  Thanks for your help!

burtybob

I can't see anything wrong with that, bigguy correct me if im wrong here but the edit that 58tbird did if that fixed it would be correct as that would be an edit in Subs.php as thats where all the BBC and Other "Button things" appear when posting so in fact if he managed to  fix it with that little edit of his thats fine and fits in with the "eval" bit.
If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

Bigguy

Can you upload that file here and I will take a look at it if I get a chance later.

58tbird

Sorry Bigguy - I hope I did this correctly.  I wasn't sure which file you wanted so I attached both; and I didn't know how to do it, so I copied and pasted them to Word (I tried Notepad, but it wouldn't save for some reason).  If there's some other way you want me to do this, just let me know.  I appreciate you for helping me on this.

Here's the Image Thumbnail Mod if you need it.

Bigguy

No need to put the doc extension on. Just upload with the .php extension.

58tbird

#19
I've never done this before, sorry Bigguy - is this what you need?

P.S. If I'm not mistaken, the error occurs whenever someone posts a message, if that makes any difference.

Advertisement: