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

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

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


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

Recent Topics ezBlock

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

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: Undefined index  (Read 15025 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: 1299
  • 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
29447 Views
Last post April 06, 2010, 12:45:15 pm
by frost
1 Replies
11770 Views
Last post April 24, 2011, 03:12:48 pm
by EzPortal
5 Replies
9079 Views
Last post January 03, 2018, 01:14:01 pm
by EzPortal
2 Replies
8099 Views
Last post February 01, 2022, 12:26:03 pm
by Shades
8 Replies
152894 Views
Last post October 04, 2022, 08:49:59 pm
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal