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: Illegal string offset 'num_days_shown' (Upcoming Events Block) by EzPortal
August 21, 2021, 11:06:47 pm

Re: Illegal string offset 'num_days_shown' (Upcoming Events Block) by Shades
August 21, 2021, 09:35:57 pm

Re: Illegal string offset 'num_days_shown' (Upcoming Events Block) by EzPortal
August 21, 2021, 08:59:50 pm

Illegal string offset 'num_days_shown' (Upcoming Events Block) by Shades
August 21, 2021, 07:10:51 pm

Windows 11 or Windows 10??? by jiana
August 05, 2021, 07:34:11 am

Re: Showing centre blocks before left ones on mobile devices by EzPortal
July 08, 2021, 05:46:41 pm

Showing centre blocks before left ones on mobile devices by videoed
July 08, 2021, 04:51:18 pm

Re: ezPortal 5.1 by EzPortal
May 19, 2021, 09:35:58 am

+- HTML Menu


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

Recent Topics ezBlock

Illegal string offset 'num_days_shown' (Upcoming Events Block) by EzPortal
August 21, 2021, 11:06:47 pm

Windows 11 or Windows 10??? by jiana
August 05, 2021, 07:34:11 am

Showing centre blocks before left ones on mobile devices by EzPortal
July 08, 2021, 05:46:41 pm

ezPortal 5.1 by EzPortal
May 19, 2021, 09:35:58 am

Average block headers by EzPortal
May 17, 2021, 01:05:41 pm

Error when guest tries to access a forum that does not have permission by EzPortal
April 11, 2021, 09:30:39 am

ezPortal 5.0 Released by EzPortal
January 29, 2021, 12:34:42 pm

How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 11:02:52 pm

Minor Update for SMF 2.1.x by EzPortal
October 18, 2020, 09:33:09 am

EzPortal unable to be seen by user with primary custom usergroup by EzPortal
October 12, 2020, 07:55:08 am

Author Topic: Error when guest tries to access a forum that does not have permission  (Read 6076 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: 1240
  • 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: 1240
  • 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
5789 Views
Last post February 05, 2009, 10:47:16 am
by BigJon
0 Replies
3111 Views
Last post December 01, 2011, 09:03:15 am
by snadge
5 Replies
3776 Views
Last post February 20, 2012, 10:15:35 am
by EzPortal
0 Replies
7169 Views
Last post June 09, 2013, 01:40:00 pm
by jcarv
2 Replies
2843 Views
Last post March 27, 2015, 06:14:34 am
by Maxx

+-SMF Gallery

Quick Menu



Members Online

40 Guests, 0 Users
Powered by EzPortal