TinyPortal

Development => Support => Topic started by: darkangel on February 21, 2011, 09:03:22 PM

Title: forum error log reports...
Post by: darkangel on February 21, 2011, 09:03:22 PM
Undefined index: description
File: /home/xxx/public_html/xxx/tp-files/tp-modules/TPShout/Sources/TPShout.php
Line: 800

when viewing that error it is about onclick="replaceText for the smiley code

how can i get rid of it please

all themes

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fthefantasiesattic.net%2FDA%2Finstalled_smf_feb2011.png&hash=c5eb0ad837470c63423dc4a1b69c5fa0073ad7ac)

Fantasies Attic link
Title: Re: forum error log reports...
Post by: IchBin on February 21, 2011, 11:33:15 PM
You'll need to run this in phpMyAdmin to get the correct error output. That error does not exist in the TPShout.php file that I can see. Try running this query, then reproduce the error and post the new error text. It should give a different filename, as well as a different line number.

REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);

Title: Re: forum error log reports...
Post by: darkangel on February 22, 2011, 01:35:08 AM
ok but since I have the mod to disable it installed and checkmarked should I still run it in myPHPadmin?
Title: Re: forum error log reports...
Post by: IchBin on February 22, 2011, 05:51:02 AM
The checkbox, does it disable or enable template eval?
Title: Re: forum error log reports...
Post by: darkangel on February 22, 2011, 06:47:25 AM
it disables it and I checked the database and it is set to the number you have in the code you gave me too
Title: Re: forum error log reports...
Post by: IchBin on February 22, 2011, 03:02:22 PM
Well I don't have anything remotely related to your error at line 800 in the TPShout.php file. So unless you've modified it, there's not much I can do unless you post your file and let me take a look at it.
Title: Re: forum error log reports...
Post by: darkangel on February 22, 2011, 04:20:58 PM
yes it was modified to remove the ava from the shoutbox, added drop down menu for color choices and also my smilies to the list replacing the ones there. so here it is.
Title: Re: forum error log reports...
Post by: IchBin on February 22, 2011, 05:23:09 PM
Yep, it's because you changed the smiley's and left out all the descriptions.

Your code:
array('code' => ':evil:', 'filename' => 'evil.gif', 'description'),
array('code' => ':eyescan:', 'filename' => 'eyescan.gif', 'description'),
array('code' => ':gogo:', 'filename' => 'gogo.gif', 'description'),
array('code' => ':thud:', 'filename' => 'thud.gif', 'description'),
array('code' => ':hubbahubba:', 'filename' => 'hubba_hubba.gif', 'description'),
array('code' => ':it:', 'filename' => 'itwasher3.gif', 'description'),
array('code' => ':kissie:', 'filename' => 'kissie.gif', 'description'),
array('code' => ':ahhhh:', 'filename' => 'overreactionalert.gif', 'description'),
array('code' => ':peep:', 'filename' => 'peep-1-1.gif', 'description'),
array('code' => ':waveass:', 'filename' => 'waveass.gif', 'description'),
array('code' => ':lurker:', 'filename' => 'threadsneaker.gif', 'description'),
array('code' => ':wigglebutt:', 'filename' => 'wigglebutt.gif', 'description'),
    array('code' => ':zipit', 'filename' => 'zipit.gif', 'description')


Original code:
array('code' => '8)', 'filename' => 'cool.gif', 'description' => $txt[295]),
array('code' => '???', 'filename' => 'huh.gif', 'description' => $txt[296]),
array('code' => '::)', 'filename' => 'rolleyes.gif', 'description' => $txt[450]),
array('code' => ':P', 'filename' => 'tongue.gif', 'description' => $txt[451]),
array('code' => ':-[', 'filename' => 'embarrassed.gif', 'description' => $txt[526]),
array('code' => ':-X', 'filename' => 'lipsrsealed.gif', 'description' => $txt[527]),
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt[528]),
array('code' => ':-*', 'filename' => 'kiss.gif', 'description' => $txt[529]),
array('code' => ':\'(', 'filename' => 'cry.gif', 'description' => $txt[530])


If you don't care about the description part of it, you must at least set it to being empty.
array('code' => ':wigglebutt:', 'filename' => 'wigglebutt.gif', 'description' => ''),
Title: Re: forum error log reports...
Post by: darkangel on February 22, 2011, 05:36:13 PM
ok thanks loads. I figured I mucked it up in there. I sometimes get that message about our colors like hot pink or deep pink but usually ignore those since I have no clue how to make them be known but for some odd reason this one bugged me...lol

have a great week.