EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

Re: TinyMCE Editor disapears by DenDen66
March 02, 2025, 06:59:40 am

Re: TinyMCE Editor disapears by DenDen66
February 28, 2025, 08:09:43 am

Re: TinyMCE Editor disapears by DenDen66
February 28, 2025, 07:31:29 am

Re: TinyMCE Editor disapears by EzPortal
February 27, 2025, 06:57:30 pm

Re: TinyMCE Editor disapears by DenDen66
February 27, 2025, 04:45:52 pm

Re: TinyMCE Editor disapears by DenDen66
February 27, 2025, 06:15:11 am

Re: TinyMCE Editor disapears by EzPortal
February 26, 2025, 04:58:45 pm

TinyMCE Editor disapears by DenDen66
February 26, 2025, 04:42:34 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

TinyMCE Editor disapears by DenDen66
March 02, 2025, 06:59:40 am

Renaming a page by DenDen66
February 23, 2025, 10:51:22 am

Styling ezBlock by EzPortal
February 19, 2025, 09:15:05 pm

I don't remember how to upgrade by EzPortal
February 05, 2025, 08:44:58 am

ezPortal 5.6 release by EzPortal
January 31, 2025, 11:21:34 am

5.5.4 by EzPortal
January 16, 2025, 08:31:41 pm

Moving a block higher in list by UkuleleMan
December 17, 2024, 07:58:27 am

Mandalorian Mercs Costume Club by UkuleleMan
December 17, 2024, 07:32:20 am

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Author Topic: Undefined index  (Read 16507 times)

0 Members and 1 Guest are viewing this topic.

Offline Eddy Matthews

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 1
  • Gender: Male
Undefined index
« on: November 11, 2009, 03:51:20 pm »
I've just upgraded to SMF 2.0 RC2, and EzPortal is giving hundreds of "Undefined index" errors.... Mainly "is_guest" and "session_id".

Regards
Eddy

Offline lumumba

  • Posts: 2
  • Karma: 0
  • Gender: Male
    • Subaru.spb Forum
Re: Undefined index
« Reply #1 on: November 11, 2009, 05:52:36 pm »
+1
Sorry for my english ;)

if user is guest =>

Quote
EzPortal is giving hundreds of "Undefined index" errors...

Erorrs:
Code: [Select]
http://subaru.spb.ru/index.php?action=dlattach;topic=26.0;attach=138;image
8: Undefined index: session_id
Файл: /home/www/z122587/htdocs/Sources/EzPortal2.php
Строка: 2143

http://subaru.spb.ru/index.php?action=dlattach;topic=26.0;attach=140;image
8: Undefined index: images_url
Файл: /home/www/z122587/htdocs/Sources/EzPortal2.php
Строка: 2128
...

part of /Sources/EzPortal2.php:
Code: [Select]
';


$context['html_headers'] .= 'EzPortalSaveBlockState(ezBlockID,ezCollapseState,isBlock);';

$context['html_headers'] .= '
if (myImage.src == "' . $settings['images_url'] . '/collapse.gif")
myImage.src = "' . $settings['images_url'] . '/expand.gif";
else
myImage.src = "' . $settings['images_url'] . '/collapse.gif";

}';


$context['html_headers'] .= '
function EzPortalSaveBlockState(ezBlock,ezState,isBlock)
{
var tempImage = new Image();
if (isBlock == 1)
tempImage.src = smf_scripturl + (smf_scripturl.indexOf("?") == -1 ? "?" : "&") + "action=ezportal;sa=blockstate;blockid=" + ezBlock + ";state=" + ezState + ";sesc=" + "' . $context['session_id'] . '" +  ";" + (new Date().getTime());
else
tempImage.src = smf_scripturl + (smf_scripturl.indexOf("?") == -1 ? "?" : "&") + "action=ezportal;sa=columnstate;columnid=" + ezBlock + ";state=" + ezState + ";sesc=" + "' . $context['session_id'] . '" +  ";" + (new Date().getTime());

}';

$context['html_headers'] .= '
// ]]></script>';


P.S. solution from me for "is_guest"

Code: [Select]
if (!$context['user']['is_guest'])replace with
Code: [Select]
if (!$user_info['is_guest'])=> no more errors like "Undefinded index is_guest"

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1317
  • Karma: 67
Re: Undefined index
« Reply #2 on: November 11, 2009, 07:04:44 pm »
Fixed those errors with a minor update which is released.

Minor Update 0.3.3a fixed some undefined errors SMF 2.0 RC2
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline Eddy Matthews

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 1
  • Gender: Male
Re: Undefined index
« Reply #3 on: November 12, 2009, 02:49:46 am »
Thanks vbgamer, that seems to have cured it....

Regards
Eddy

Offline lumumba

  • Posts: 2
  • Karma: 0
  • Gender: Male
    • Subaru.spb Forum
Re: Undefined index
« Reply #4 on: November 15, 2009, 12:59:02 pm »
Thanks!

New trouble when i create the new page:

Code: [Select]
http://subaru.spb.ru/index.php?action=ezportal;sa=addpage
8: Undefined index: admin_menu_name
File: /home/www/z122587/htdocs/Sources/EzPortal2.php
Line: 1420

part of /Sources/EzPortal2.php:

Code: [Select]
1415:  function EzPortalPageManagerTabs()
1416: {
1417: global $txt, $context, $txt, $scripturl;
1418:
1419:
==>1420: $context[$context['admin_menu_name']]['tab_data'] = array(
1421: 'title' => $txt['ezp_tab_pagemanager'],
1422: 'description' =>  $txt['ezp_tab_pagemanager_desc'],
1423: 'tabs' => array(
1424: 'pagemanager' => array(
1425: 'description' => '',
1426: ),
1427:
1428:
1429:
1430: ),
1431: );
1432:
   

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
31864 Views
Last post April 06, 2010, 12:45:15 pm
by frost
1 Replies
12923 Views
Last post April 24, 2011, 03:12:48 pm
by EzPortal
5 Replies
11990 Views
Last post January 03, 2018, 01:14:01 pm
by EzPortal
2 Replies
9760 Views
Last post February 01, 2022, 12:26:03 pm
by Shades
8 Replies
467234 Views
Last post October 04, 2022, 08:49:59 pm
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal