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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 636
  • Total: 637
  • tino

Site not working when members not logged in

Started by kmccann, January 30, 2010, 02:06:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kmccann

Hello,

I'm having a major problem with my site. If a user is logged in, all is OK, if not logged in, this is the message one gets when going to the homepage:

8: Undefined index: 5
File: /mydir/Sources/TPortal.php
Line: 1490

This is line 1490:

  $context['TPortal']['current_category']=$context['TPortal']['catnames'][$row['category']];


Note that if an action is provided, it'll work, so I can login by going to:

mysite.com/index.php?action=login

This is a busy site and I'm getting a lot of flak. If anyone can help I'd greatly appreciate it.

SMF:  1.1.6
TP:  1.0.5 beta1
OS: Linux

Thanks,
Kevin

ZarPrime

Hi Kevin,

The search is your friend.  Have a look at this topic --> http://www.tinyportal.net/index.php?topic=25812.0

Also, I would suggest that you update your Forum to the latest SMF and TinyPortal at some point.

ZarPrime

kmccann

Thanks for the assistance. Problem solved by checking the category permission boxes. Not sure how they became unset. I'd like to update to the latest version but I couldn't get TP to install properly (that's another story for another time).

IchBin

Well I would definitely update SMF. THere have been numerous security fixes since that version.

This website is proudly hosted on Crocweb Cloud Website Hosting.