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,980
  • Total Topics: 21,320
  • Online today: 281
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 283
  • Total: 283

[bugtracker] SSI Integration issue - Undefined offset in TPSubs.php on line 184

Started by ZarPrime, March 28, 2009, 10:29:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZarPrime

This is a possible bug in TPSubs.php.  A member has been trying to use ssi to
integrate his calendar onto a page outside of SMF/TP and was getting this
error.  To better understand, it might be best to take a look at this topic --->
http://www.tinyportal.net/index.php/topic,29015.msg231516.html#msg231516

Also, see this topic --> http://www.tinyportal.net/index.php/topic,29040.0.html

We were unable to help him and sent him over to SMF.  Sarge was able to
sort out the problem by changing this line in TPSubs.php ...

     if($pr[1]==1)
      $context['TPortal']['adminlist'][$pr[0]] = 1;
      

to this ...

     if (isset($pr[1]) && $pr[1]==1)
      $context['TPortal']['adminlist'][$pr[0]] = 1;

      
The SMF topic and Sarge's fix is here --->
http://www.simplemachines.org/community/index.php?topic=301477.msg1993705#msg1993705

ZarPrime

bloc

The fix was applied to beta4, since its simply a check added to stop generating errors when executing the function from outside SMF.

This website is proudly hosted on Crocweb Cloud Website Hosting.