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

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

Re: Theme Select Box question? by EzPortal
March 02, 2023, 11:26:15 pm

+- HTML Menu


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

Recent Topics ezBlock

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

ezPortal 5.5 by EzPortal
May 20, 2022, 09:59:30 am

Author Topic: Error when guest tries to access a forum that does not have permission  (Read 9444 times)

0 Members and 2 Guests are viewing this topic.

Offline Paul_123

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Just upgraded to 5.0.1 and using php7.4

When a user tries to go to a topic that they do not have permission to see, there is an error thrown.

The error is:  8: Trying to access array offset on value of type null

The error is in Sources/Subs.php, and the line that creates the error is marked in the code below.  (It is line 3988 for me)

Code: [Select]
        // All the buttons we can possible want and then some, try pulling the final list of button$
        if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . $
        {
                $buttons = array(
                        'home' => array(
                                'title' => '<img align="absMiddle" src="'. $settings['images_url'].$
                                'href' => $scripturl,
                                'show' => true,
                                'sub_buttons' => array(
                                ),
                                'is_last' => $context['right_to_left'],
                        ),

                // [Forum] button
                        'forum' => array(
                                'title' => $txt['ezp_forum_tab'],
                                'href' => $scripturl . '?action=forum',
                                'show' => ($ezpSettings['ezp_portal_enable'] == 1) ? 1 : 0,    <---Error on this line
                                'icon' => '',
                        ),
'help' => array(
                                'title' => '<img align="absMiddle" src="'. $settings['images_url'].$
                                'href' => $scripturl . '?action=help',
                                'show' => true,
                                'sub_buttons' => array(
                                ),
                        ),


Offline EzPortal

  • Administrator
  • *****
  • Posts: 1298
  • Karma: 67
Change that line to
Code: [Select]
'show' => !empty($ezpSettings['ezp_portal_enable']),
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline Paul_123

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
That took care of it, thx.

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1298
  • Karma: 67
Glad to help
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
7981 Views
Last post February 05, 2009, 10:47:16 am
by BigJon
0 Replies
4524 Views
Last post December 01, 2011, 09:03:15 am
by snadge
5 Replies
5349 Views
Last post February 20, 2012, 10:15:35 am
by EzPortal
0 Replies
8182 Views
Last post June 09, 2013, 01:40:00 pm
by jcarv
2 Replies
4542 Views
Last post March 27, 2015, 06:14:34 am
by Maxx

+-SMF Gallery

Quick Menu


Powered by EzPortal