I am using smf 1.1.6 and tp 1.0.6. Recently I have been getting alot of these errors in my error log...what is it?
8: Undefined index: frontbar
File: /public_html/Themes/default/TPwireless.template.php (wap_tp sub template - eval?)
Line: 11
This didn't start happening until I upgraded TP from 1.0.5 to the new version. Any help would be great. Seems that the error is always during guest visit also.
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
Too late :(
To late ?
Plenty had already seen my info if thats what you meant by read the guidelines. I hope that the internal server error that I now see is due to a problem with the arcade I was trying to install and not that.
Cant say as you dont give us any info on you setup, mods, what you try to do, what you HAVe done so ar, what theme etc etc...
It's very hard for us to give support with out info :-\
Ok now its in my sig so I don't have to remeber. Sorry about that. What I meant was that I left some info in the path there that I shouldn't of. I also had smf arcade installed at that time too, but after posting I removed it and installed(or tried) e-arcade but now get internal server error when going to my site. But hopefully all will be ok and I will still need help with the error from my original post. Sorry for the misunderstanding. The error never showed a member when the error happened it was always a guest. Haven't changed anything manually in the TPwireless.template.php and haven't tried anything to get rid of error myself. All I am trying to do is get rid of error in the logs. Sorry again and thanks for any help. Here is line 11.
if($context['TPortal']['front_type']=='frontblock' && $context['TPortal']['frontbar']){
"Undefined index" means that the variable specified was not declared before being referenced.
It is based in the structure of code as a warning, and does not cause any server or script problems.
If you wish, you can declare the variable at the beginning of the script (after the opening <?php tag) with:
$frontbar = '';
That should correct the error; please report it through the bugtracker at any rate.
Edited: Added dollar sign to original post. (My bad dawg!)
Don't mean to hijack this but I have the same error, and reported it, http://www.tinyportal.net/index.php/topic,25154.0.html (http://www.tinyportal.net/index.php/topic,25154.0.html) You can see I never got an answer on how to correct it.
This is the only error I have left. I tried to insert the comment you suggested, which brings up a parse error. I don't know where to put it.
Find TPortal attached if you have time to take a look Ianderes.
Otherwise, I'll just keep dumping the error logs every day or 2.
Thanks for any help or advise, and I thought it not prudent to start a new topic when I already have one open and think this may be solved for both of us here.
B-Lute
My error Bluto- should be a dollar sign in front of the variable. ::)
(Corrected in original post... sigh. Long days...)
Well,...I tried to put that into any file I thought might fix this thing. I didn't see that variable anywhere, so I tried a bunch of spots. I must be missing the file it's in, or not adding it in the correct place.
Should I search TPortal.php, for "frontbar" for example, then look for a string that is calling that variable, but not defining it somewhere in the same area? Or would it be defined at the beginning of the page?