TinyPortal
Development => Support => Topic started by: seelie on August 22, 2011, 05:24:39 PM
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?
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.
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 ;)
Well the error is not happening in the code that you posted as there is no index for those numbers that you've posted.