TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,022
  • Total Topics: 21,332
  • Online today: 899
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 638
  • Total: 638

8: Undefined index: advshoutbox_header (HELP please)

Started by BARAN, June 06, 2008, 03:51:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BARAN

smf 1.1.5 + TinyPortal v1.0.5 beta 1© Bloc
defult theme
turkish language

i have two error mesaj.
can you help me please?
thanks


8: Undefined index: advshoutbox_header
Dosya: /home/dogubaya/public_html/Themes/default/TPAdvShout.template.php (tp_above sub template - eval?)
Satır: 2471


2: strstr() [<a href='function.strstr'>function.strstr[/url]]: Empty delimiter
Dosya: /home/dogubaya/public_html/tp-files/tp-modules/TPAdvShout/Sources/TPAdvShout.php
Satır: 3639

G6Cad

The first error seem to be language related
Does the errors show when you use English as your default and from the SMF Core default theme ?

BARAN

i use
only smf forum + tp original  defult theme

yes it show when i use english as my defult and smf defult theme
***
after i have posted 2 shout , i don't have first erorr

but i have this erorr in continiu

2: strstr() [<a href='function.strstr'>function.strstr</a>]: Empty delimiter
Dosya: /home/dogubaya/public_html/tp-files/tp-modules/TPAdvShout/Sources/TPAdvShout.php
Satır: 3639

DOOM666

#3
this is the code i get when i got to the home and its the only time it shows up is when i go to the home page

2: strstr() [<a href='function.strstr'>function.strstr</a>]: Empty delimiter
File: /home/wudojo/public_html/forums/tp-files/tp-modules/TPAdvShout/Sources/TPAdvShout.php
Line: 3639




2Ntense

#5
We have the same error, it's right here in TPAdvShout.php

if(isset($context['TPortal']['querystring']) && !strstr("show", $context['TPortal']['querystring']))

I can see that's the line it's complaining about, although I have no idea what it's trying to do.  It looks like the parameters are backwards... that would make SOME sort of sense.  Right now it's searching for the content of the string $context['TPortal']['querystring'] inside of "show" which will never be true.

Syntax
strstr(string,search)

Parameter    Description
string                  Required. Specifies the string to search
search                Required. Specifies the string to search for. If this parameter is a number, it will search for the character matching the ASCII value of the number

Zetan

2Ntense, if you think you have found a bug, submit it to the Bugtracker by following the link from the main menu, then Bloc or another coder can take a look. Describe how to re-create the same problem.

Its likely to be missed sitting here in another members topic.

Its always best to start your own topic, rather than replying to somebody else's topic which may be similar to a problem you are having, when it may well be different.

2Ntense

I have the identical error messages in my forum error logs (SMF 1.1.5 with TP 1.0.5 b1) as both Baran and Doom666; I'm not going off on a tangent or thread hijacking.  ::)  We run SMF 1.1.5 and TP 1.0.5 b1, but with a custom theme.  The error messages are in the forum error log (not the server error log in the forum root).

I'm a hacker, not a programmer.  I can see that something in that line of code doesn't make sense, and that's the ONLY line in the AdvShout files that uses the strstr() function, so I'm pretty sure I have both the file and the line where the error is occurring precisely identified.  When we turn off the shoutbox, the error stops happening, when we turn the shoutbox back on, the error comes back.  Just for the heck of it, I switched the order of the parameters around and that error stopped filling the logs, although I don't know if I fixed a problem or merely masked it.

I didn't list it in the bug log 'cos I can't for the life of me tell what they were trying to accomplish with that IF, and there's probably already enough 'bugs' listed that were cockpit errors and not true bugs.  I leave the programmers alone unless I'm certain of something.  If YOU think it looks like a bug, feel free to lemme know and I'll duplicate the post in the bug log.

I'm an EE, not a TinyPortal wizard.... all I can do is research and suggest.  Other than briefly around a year ago, I've never looked inside the TinyPortal code until a couple of days ago, although I'm somewhat familiar with the SMF code base.

Lafemme

in have the same error.. it's filling up my error log with 5000 errors in 1,5 day! 

2: strstr() [<a href='function.strstr'>function.strstr</a>]: Empty delimiter.
Bestand: /xxxx/xxxx/xxxx/xxxxl/xxxx/tp-files/tp-modules/TPAdvShout/Sources/TPAdvShout.php
Regel: 3639


  :(

G6Cad

It's a bug, and it's submitted to the bugtracker a long time ago. It will be fixed in the next update of tp

When is the next version of TP coming out?

This website is proudly hosted on Crocweb Cloud Website Hosting.