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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 128
  • Total: 129
  • @rjen

Odd shout box error "Your session timed out" TP0.95

Started by SOcRatEs, September 12, 2006, 08:47:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SOcRatEs

Fresh install 1.1rc3 & TP0.95
Amber theme, logged in as admin
DSS new site
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!!!!

IchBin

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.

dexter

#2
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...

IchBin


Thurnok

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'], '" />



Artimidor

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;

Thurnok

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.

Artimidor

Well, whatever I try - remove caching, delete cookies, get rid of temporary files, open the Forum with another browser - no effect whatsoever.

This website is proudly hosted on Crocweb Cloud Website Hosting.