TinyPortal

Development => Support => Topic started by: FUBAR on October 09, 2008, 08:51:59 AM

Title: 8: Undefined index: tp-shout-name
Post by: FUBAR on October 09, 2008, 08:51:59 AM
Link to my site:
SMF version: SMF ver. 1.1.6 (Upgraded tonight from 1.1.5)
TP version: TP v1.0.5 beta 1
Theme name and version: Default + All Others
Mods installed:
1.     SMF Poll Mod      1.2     
2.    SMF 1.0.14 / 1.1.6 Update    1.0   
4.    Users Online Today Mod    1.4.0   
5.    Auto Embed Video/Audio Clips    3.1.2   
6.    PM Popup - Uses Active Window    1.3   
7.    TinyPortal    1.052   
8.    SMF Gallery Lite    1.8.3   
9.    Ultimate Profile    0.8.5   
10.    Custom Profile Field Mod

Related Error messages:

8: Undefined index: tp-shout-name
File: /home/website/public_html/forum/tp-files/tp-modules/TPShout/Sources/TPShout.php
Line: 45



I tried to search for this error but couldn't find anything releated.  This error seems to be generated every time any member shouts in the shoutbox. 

Here is line 45 from the TPShout.php file.

   $shout_name=strip_tags($_POST['tp-shout-name']);

Any help would be appreciated, thanks!
Title: Re: 8: Undefined index: tp-shout-name
Post by: G6Cad on October 09, 2008, 09:08:23 AM
Hm, seems like your updrage didnt go to well.
That error was fixed a long time ago.
Go through the TP install process (manuall ) and check so all the files and folder got replaced as they should and also the modinstrcuction with the codeedits

How do I manually install TinyPortal (http://docs.tinyportal.co.uk/index.php?topic=29)
Modification Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
Title: Re: 8: Undefined index: tp-shout-name
Post by: FUBAR on October 09, 2008, 09:35:17 PM
When shouts are made on the shoutbox, everything seems to work fine but this error is still generated. 

I don't mind going through the files but any idea where to start or what to look for?

Thanks G6!  :)
Title: Re: 8: Undefined index: tp-shout-name
Post by: IchBin on October 09, 2008, 09:36:03 PM
Did you do what she suggested?
Title: Re: 8: Undefined index: tp-shout-name
Post by: FUBAR on October 09, 2008, 10:25:59 PM
Yes, I've gone through the files and the edits manually as she suggested but everything seems to be correct. 

The only file that didn't seem to have the edits correct was in "$themedir/index.template.php" but that's because I have the gallery installed. 

As per Manual Install Instructions :

Find:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

Replace with:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))

Here's what I have in this file..
if (in_array($context['current_action'], array('gallery','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))

Everything else seems to be correct, so I'm not really sure what to look for. 


Title: Re: 8: Undefined index: tp-shout-name
Post by: G6Cad on October 09, 2008, 10:53:08 PM
The TP package files, did they replace the old files correctly ?
Make sure you have all the new files updated and not skipped
Title: Re: 8: Undefined index: tp-shout-name
Post by: FUBAR on October 09, 2008, 11:35:36 PM
Would it make a difference if I didn't upgrade TinyPortal from v0.9.8?  I ask this because I didn't upgrade Tinyportal, I installed the Beta version on a fresh forum. 
Title: Re: 8: Undefined index: tp-shout-name
Post by: IchBin on October 10, 2008, 12:15:00 AM
No. What she's saying is that during the install its possible that not all the instructions for installing TinyPortal did not happen. Thats why she suggested you run through the manual install just to make sure the edits are done, and that the files weren't corrupted or something during the install.