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

Show Likes mod by NickT
July 10, 2020, 12:09:44 pm

Re: ezPortal inbuilt module downloaders not working. by EzPortal
March 26, 2020, 08:19:48 am

Re: ezPortal inbuilt module downloaders not working. by Valdivia
March 26, 2020, 08:16:33 am

Re: ezPortal inbuilt module downloaders not working. by EzPortal
February 12, 2020, 10:01:42 pm

Re: ezPortal inbuilt module downloaders not working. by usalabs
February 12, 2020, 05:59:54 pm

Re: ezPortal inbuilt module downloaders not working. by EzPortal
February 12, 2020, 10:27:24 am

Re: ezPortal inbuilt module downloaders not working. by EzPortal
February 12, 2020, 10:25:43 am

ezPortal inbuilt module downloaders not working. by usalabs
February 12, 2020, 08:04:13 am

+- HTML Menu


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

Author Topic: Undefined index  (Read 8066 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: 1225
  • Karma: 66
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
21360 Views
Last post April 06, 2010, 12:45:15 pm
by frost
1 Replies
8749 Views
Last post April 24, 2011, 03:12:48 pm
by EzPortal
5 Replies
6370 Views
Last post March 03, 2012, 08:48:53 pm
by NCSurfer
7 Replies
5077 Views
Last post May 24, 2016, 02:04:25 am
by yameth
5 Replies
2324 Views
Last post January 03, 2018, 01:14:01 pm
by EzPortal

+-SMF Gallery

Quick Menu



Members Online

20 Guests, 0 Users
Powered by EzPortal