TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: SOcRatEs on September 12, 2006, 08:47:05 PM

Title: Odd shout box error "Your session timed out" TP0.95
Post by: SOcRatEs on September 12, 2006, 08:47:05 PM
Fresh install 1.1rc3 & TP0.95
Amber theme, logged in as admin
DSS new site (http://www.dearthair.com/index.php)
I keep getting this error when I try to post a shout.....
QuoteAn Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Would clearing cache help here?

Thank you for all the hard work!!!!
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: IchBin on September 12, 2006, 08:52:47 PM
Thats about all we can suggest. Try clearing you cookies and cache. Close browser and re-login to your site and then try. Also, you may want to try the default theme before clearing your stuff. If that doesn't work, maybe give us a test account to test ourselves.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: dexter on September 17, 2006, 05:53:59 PM
same problem here.  Cleaned cookies and cache in both IE6 and Firefox, restart browser and still get the error.

This only happens when the shoutbox is brought center-screen:
http://www.tinyportal.net/smf/index.php?action=tpmod;sa=shoutbox

It works fine as a side-box.
Quote from: IchBinÃ,â,,¢ on September 12, 2006, 08:52:47 PM
If that doesn't work, maybe give us a test account to test ourselves.

Try it out right on this site with the above link...
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: IchBin on September 17, 2006, 06:45:20 PM
Submitted this as a bug in the bugtracker.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on September 18, 2006, 05:14:42 AM
Fixed that, and another one:


Undefined Index 'profile_shouts_hide'
Edit Sources/TPortal.php
[FIND]
// get x number of shouts
if(isset($using_shoutbox) || (isset($_GET['sa']) && $_GET['sa']=='shoutbox'))


[ADD BEFORE]

// set context info for profile shouts hide
$context['TPortal']['profile_shouts_hide'] = empty($context['TPortal']['profile_shouts_hide']) ? '0' : '1';


Session Time out Shoutbox
Edit /Themes/default/TPmodules.template.php
[FIND]
if($context['user']['is_guest'] && $context['TPortal']['guest_shout'])
echo '
<br /><input style="margin-top: 4px;" size="20"  type="text" name="tp-shout-name" value="'.$txt['tp-guest'].'">';
else
echo '<input type="hidden" name="tp-shout-name" value="'.$context['user']['name'].'">';

echo '<input name="tp-shout-url" type="hidden" value="'.$tp_where.'">


[ADD AFTER]
<input type="hidden" name="sc" value="', $context['session_id'], '" />
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: dexter on September 18, 2006, 05:29:57 AM
Awesome!  Thanks so much! :)
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Xarcell on September 19, 2006, 07:36:21 AM
Thanks Thurnok!
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 04, 2006, 08:13:07 PM
Hmm... I'm having exactly the same shoutbox problem after updating to 0.95 and the code doesn't seem to help...  ???

The last lines of TPmodules.template.php now look like this - anything wrong with that? Or have I misunderstood something?

Quote
                  if($context['user']['is_guest'] && $context['TPortal']['guest_shout'])
                       echo '
<input style="margin-top: 4px;" size="20"  type="text" name="tp-shout-name" value="'.$txt['tp-guest'].'">';
                  else
                       echo '<input type="hidden" name="tp-shout-name" value="'.$context['user']['name'].'">';

                  echo '<input name="tp-shout-url" type="hidden" value="'.$tp_where.'">
            <input type="hidden" name="sc" value="', $context['session_id'], '" />
              </form></div></div>';
               break;
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on October 04, 2006, 08:48:05 PM
Delete your browser cache and cookies for your site, and reload the page.

If you still have a problem, if you have cacheing enabled for your board, turn it off temporarily to see if your board had the page cached.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 04, 2006, 09:21:17 PM
Well, whatever I try - remove caching, delete cookies, get rid of temporary files, open the Forum with another browser - no effect whatsoever.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 04, 2006, 09:25:29 PM
Can you try to run the manual DB install file again, you find it in the download section, the file only, Upload it to your forum root, run the file from your browser, and then go to your DB from PhPmyadmin or cpanel and make a repair of the databse and then optimize it, Check if it works after that
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 04, 2006, 09:36:58 PM
Did all that, except "optimizing" the database (where do I find that?) - no success.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 04, 2006, 09:56:44 PM
In your admin panel forum maintenance
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 04, 2006, 10:03:13 PM
Did that as well now - still nothing.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Polymath on October 05, 2006, 05:38:00 AM
Same thing happened to mine. I didn't even know. Don't tell me I have to post instructions on clearing cache to members once a month or something. Might as well remove it if I have to do that.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on October 05, 2006, 06:12:11 AM
nope... it was a one time suggestion in case the cache still had the old session id attached to it...
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 05, 2006, 07:01:27 AM
Yes, it seems that I'll have to remove it altogether or switch back to a prior version of TinyPortal if this is possible. At the moment I see no working solution in sight.Ã,  :'(

Tried another computer, same behaviour here.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 05, 2006, 07:28:59 AM
I have read back on this with session time outÂÃ,´s

If i sum it up a bit, it is the PHP settings that are set wrong some where, and there for a server issue, not a SMF or TP..
Can you contact your host and ask them to look in to your settings, describe the error you get, and provide them with all the info you can.

You can check the php settings your self to, Download the file from this post, upload it to your forum root and point your browser to the file and it will list all settings there is from the php settings file on the server you are on.
Then perhaps we can come a bit closer in the casue of this.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on October 05, 2006, 07:44:29 AM
I'd have to say that you must be getting the error from a different possible bug.  The fix I put in has not only worked on 9 of my own sites, but numerous other TP Team sites.  So perhaps you found another Shoutbox Session error somewhere.

Unless....

Have you tried setting the default core theme as default, and try it again?  What theme were you using to start with?  And, you don't happen to have a TPmodules.template.php file in your current Theme directory do you? (/Themes/<your current theme other than the smf core theme/TPmodules.template.php)?

Not supposed to... just curious if you somehow got a copy of it in your "theme of choice" directory for some reason.  Just looking for some reasons why the change you did to the /Themes/default/TPmodules.template.php file had no effect.   :-\
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Polymath on October 05, 2006, 08:29:05 AM
Nope. Done cookies and cache. Not working.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 05, 2006, 08:34:00 AM
That didn't answer the questions from nether Storm or me
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Polymath on October 05, 2006, 08:37:56 AM
http://gamesocket.geek.nz/phpinfo.php

I don't know what Im looking for.  It has been working for the 10 months and then instal 0.9.5 and no other mods added lately.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 05, 2006, 08:55:28 AM
Im not sure this can be related, but what PHP versions do you have ?

This might be related http://www.simplemachines.org/community/index.php?topic=116549.0
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Polymath on October 05, 2006, 09:30:10 AM
Removed shoutbox. Problem fixed.

Thanks for trying to help.
Its been nothing but a security risk from the day It started and now it don't work. I pride myself on having sites with features that work with no dead links.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 05, 2006, 09:55:48 AM
A few answers for now from my side:

The theme I'm using was based initially on the Cerberus theme by Bloc as far as I know, so it could be that there are remnants of this theme in the modified version, which now are still there and cause a problem. There is a file called "TPortalBlocks.template.php" in the theme's folder, but that's about all I can see regarding TPortal files which are not in the default folder.

P.S. I very much appreciate any help :) People love the ShoutBox and TinyPortal in general, it is a fantastic tool!
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 05, 2006, 11:02:16 AM
If you rename the TPortalBlocks.template.php file in the theme you use and get the errors in, do you still have the error showing up ? (if you rename it, it will fetch the file from the default theme instead )
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Artimidor on October 05, 2006, 11:11:00 AM
*haha* That worked, Mrs G6!!!Ã,  :laugh:Ã,  8)

Still checking if things work ok now with the rest of TinyPortal... - But many thanks for that hint, it's great to see guys trying to help until the issue is solved. :)
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: G6Cad on October 05, 2006, 12:35:48 PM
Admin/Configuration/ServerSettings/ uncheck persistant connection if it is checked
Admin/Configuration/ServerSettings/Caching        Turn off server Caching
Admin/Configuration/ServerSettings/Feature Configuration/  Turn Off  "Enable local storage of cookies"
Admin/Configuration/ServerSettings/Feature Configuration/ Turn Off "Use database driven sessions"

Save the settings, go in your

Admin/Maintenance/Forum Maintenance/ Then "Recount all forum totals and statistics." and "Optimize all tables to improve performance."

Then clear your local Temp internet files, Cookies, and Cache

Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Polymath on October 05, 2006, 09:49:10 PM
 :up: OK although I threw a growly fit, I have been watching this thread. Sorry I was having a bad day.

Mrs G6  Thankyou for posting what the problem could be. In checking my theme folder yesterday I didn't have a TPortalBlocks.template.php file in the theme. On checking again today I had a brain wave and enlarged the window in my FTP program and there it was, hidden as the last on the list.

I renamed it and now the site is using the default TPortalBlocks.template.

And the shout box works  :up:  :up:

Thankyou...and forgive me for my attitude.
Cheers


Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: IchBin on October 05, 2006, 09:58:27 PM
It's a good thing Polymath. What we do here is help on our own free time. Not to mention the free mod you get that is freaking unbelievably awesome. I'm glad you chaulked it up to a bad day, because I was just about to give you my $.02 :)
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on October 05, 2006, 10:01:12 PM
Quote from: Thurnok on October 05, 2006, 07:44:29 AM
Have you tried setting the default core theme as default, and try it again?  What theme were you using to start with?  And, you don't happen to have a TPmodules.template.php file in your current Theme directory do you? (/Themes/<your current theme other than the smf core theme/TPmodules.template.php)?

Not supposed to... just curious if you somehow got a copy of it in your "theme of choice" directory for some reason.  Just looking for some reasons why the change you did to the /Themes/default/TPmodules.template.php file had no effect.   :-\

hehe.. that's where I was going with my above post.  You edited the file I mentioned (which is in the /Themes/default dir) but you had the same file in your /Themes/<your selected theme> directory so it overrides the one from /Themes/default.  ;)

You could actually leave the TPmodules.template.php file in those other Theme/<theme name> directories so long as you made the modification I posted to each one.  But unless you needed them there for some reason (special changes to various themes perhaps) then better to not have them and just use the one from default.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on October 05, 2006, 10:03:57 PM
yep... we all have those bad days.. fortunately for me, I haven't had any here yet, but at work... oh boy!  when I have a bad day, EVERYONE there knows about it... LOL
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Polymath on October 05, 2006, 10:19:50 PM
Quote from: IchBinÃ,â,,¢ on October 05, 2006, 09:58:27 PM
It's a good thing Polymath. What we do here is help on our own free time. Not to mention the free mod you get that is freaking unbelievably awesome. I'm glad you chaulked it up to a bad day, because I was just about to give you my $.02 :)

Damn Missed out on another donation lol.  Actually alot of edits and TP mods have now suddenly appeared now that I've done that fix

Bit of a trick for old players. I think I was more peed off that my members didn't tell me it was broken. Im trying to get away from posting in forums and shoutbox and trying to leave the site for members to reply to each other more instead of me (admin) sticking my nose in.. sorta making the site their own, hence I havn't been using it

Thanks
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Nuked on November 28, 2006, 05:51:51 PM
Quote from: G6 on October 05, 2006, 11:02:16 AM
If you rename the TPortalBlocks.template.php file in the theme you use and get the errors in, do you still have the error showing up ? (if you rename it, it will fetch the file from the default theme instead )

I fixed my issue by copying the entire shoutbox function from the TPortalBlocks.template.php found in the default theme and overwriting the one in the theme of choice's TPortalBlocks.template.php.

Reason for this was I didn't want to lose my alterations to the css and other alterations I've made.  This seems to have fixed the said problem, but I definitely wouldn't have figured it out w/o your guidance and pointing me in the right direction.  Thanks a ton!

edit
oh... seems this is for tp0.95 - I was having the issue in tp0.96 btw.
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Thurnok on November 28, 2006, 08:45:39 PM
Glad you got it working Nuked.  That's the important part.  ;)
Title: Re: Odd shout box error "Your session timed out" TP0.95
Post by: Nuked on November 29, 2006, 12:01:26 AM
But giving credit where it's due is just as important. :)  You guys are doing a great job! :D