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: Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Re: Blocks Help by EzPortal
November 19, 2022, 10:22:00 am

Blocks Help by Riggs1973
November 19, 2022, 09:51:15 am

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

Re: Surface ol lite theme release Free! by EzPortal
November 17, 2022, 12:49:08 pm

Re: Surface ol lite theme release Free! by Steffen K.
November 17, 2022, 12:14:17 pm

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

Re: Undefined index: href by Shades
October 04, 2022, 08:28:41 pm

+- HTML Menu


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

Recent Topics ezBlock

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

Image/Attachment display issue by Shades
May 16, 2022, 02:28:35 pm

Can't delete custom actions by Shades
April 13, 2022, 12:53:28 pm

Newest Member ezblock by Shades
March 23, 2022, 12:48:32 pm

Random Download Block by Shades
March 22, 2022, 10:37:47 am

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

0 Members and 1 Guest 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: 1293
  • 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: 1293
  • 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
7237 Views
Last post February 05, 2009, 10:47:16 am
by BigJon
0 Replies
4125 Views
Last post December 01, 2011, 09:03:15 am
by snadge
5 Replies
4878 Views
Last post February 20, 2012, 10:15:35 am
by EzPortal
0 Replies
7971 Views
Last post June 09, 2013, 01:40:00 pm
by jcarv
2 Replies
3938 Views
Last post March 27, 2015, 06:14:34 am
by Maxx

+-SMF Gallery

Quick Menu


Powered by EzPortal