SimplePortal

Support => English Support => Topic started by: Walgermo on November 09, 2009, 07:52:21 AM

Title: Undefined index in recent picture from forum block
Post by: Walgermo on November 09, 2009, 07:52:21 AM
Hi


im getting alot of Undefined index after i updatet to 2.0 RC2, using SP 2.3.1.

Undefined index in recent picture from forum block

Undefined index: is_guest

Undefined index: session_id

Undefined index: session_var

Undefined index: right_to_left

Undefined index: html_headers

Undefined index: is_admin

Undefined index: language

Undefined index: forum_name

++

I get this everytime i refresh the page.

example
/index.php?action=dlattach;topic=193.0;attach=170;image
Undefined index: is_guest
httpd.www/Sources/Subs-Portal.php
==>257:         $context['SPortal']['sides'][$side['id']]['collapsed'] = $context['user']['is_guest'] ? !empty($_COOKIE['sp_' . $side['name']]) : !empty($options['sp_' . $side['name']]);

someone got a clue?

Walgermo :)
Title: Re: Undefined index in recent picture from forum block
Post by: Nathaniel on November 09, 2009, 06:35:16 PM
Looks like the issue below:
http://simpleportal.net/index.php?issue=304.0

Below is a quick fix for that issue.
Code: ("Find (sources/Subs-Portal.php)") [Select]
$sportal_version = '2.3.1';
Code: ("Replace") [Select]
$sportal_version = '2.3.1';

// If its just the dlattach action, we need to stop now!
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach')
return;
SimplePortal 2.3.8 © 2008-2024, SimplePortal