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!!!!
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.
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...
Submitted this as a bug in the bugtracker.
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'], '" />
Awesome! Thanks so much! :)
Thanks Thurnok!
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;
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.
Well, whatever I try - remove caching, delete cookies, get rid of temporary files, open the Forum with another browser - no effect whatsoever.
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
Did all that, except "optimizing" the database (where do I find that?) - no success.
In your admin panel forum maintenance
Did that as well now - still nothing.
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.
nope... it was a one time suggestion in case the cache still had the old session id attached to it...
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.
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.
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. :-\
Nope. Done cookies and cache. Not working.
That didn't answer the questions from nether Storm or me
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.
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
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.
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!
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 )
*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. :)
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
: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
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 :)
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.
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
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
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!
editoh... seems this is for tp0.95 - I was having the issue in tp0.96 btw.
Glad you got it working Nuked. That's the important part. ;)
But giving credit where it's due is just as important. :) You guys are doing a great job! :D