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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 443
  • Total: 443

Undefined index errors in TPortal.php

Started by seelie, August 22, 2011, 05:24:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

seelie

Version SMF:  2.0 Final
Version TP:  1.104    
Any other mods installed:  SMF Gallery Lite    3.1.1
Theme used:  Chocolate Curvaceous

The quick skinny:  When viewing the gallery (and only when viewing the gallery) I see the following errors spill into the error log.

index.php?action=gallery;cat=14
8: Undefined index: 1165409134
File: Sources/TPortal.php
Line: 1217

index.php?action=gallery;cat=7
8: Undefined index: 1165361300
Sources/TPortal.php
Line: 1217

index.php?action=gallery;cat=12
8: Undefined index: 1165406004
File: Sources/TPortal.php
Line: 1217

index.php?action=gallery;cat=12
8: Undefined index: 1165406004
Apply Filter: Only show the errors from this file
File: Sources/TPortal.php
Line: 1215

index.php?action=gallery;cat=12
8: Undefined index: 1165406004
Sources/TPortal.php
Line: 1214


The relevant lines in my TPortal.php is as follows:

$parents[] = array(
'id' => $allcats[$parent],
'name' => html_entity_decode($allcats[$parent]['value1'], ENT_QUOTES, $context['character_set']),
'shortname' => !empty($allcats[$parent]['value8']) ? $allcats[$parent]['value8'] : $allcats[$parent]['id'],
);
$parent = $allcats[$parent]['value2'];



Any quick ideas on this I might try to resolve?

IchBin

It's actually not a TinyPortal error. As you can see your URL's indicate that you are in the index.php?action=gallery.

What you need to do is disable template eval in order to get the correct error. I think that setting is in the server settings section of SMF admin for SMF 2.0.

seelie

Yep, did that.  The error remains the same in the log.  I am aware that its some sort of interactive issue between SMF Gallery Lite and TPortal ... but am trying to figure out what ;)

IchBin

Well the error is not happening in the code that you posted as there is no index for those numbers that you've posted.

This website is proudly hosted on Crocweb Cloud Website Hosting.