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: Average block headers by cihancan
May 15, 2021, 08:50:46 am

Re: Average block headers by EzPortal
May 15, 2021, 08:33:50 am

Average block headers by cihancan
May 15, 2021, 03:06:13 am

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

Re: Error when guest tries to access a forum that does not have permission by Paul_123
April 11, 2021, 09:11:45 am

Re: Error when guest tries to access a forum that does not have permission by EzPortal
April 10, 2021, 10:26:34 pm

Error when guest tries to access a forum that does not have permission by Paul_123
April 10, 2021, 08:15:24 pm

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

+- HTML Menu


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

Recent Topics ezBlock

Average block headers by cihancan
May 15, 2021, 08:50:46 am

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

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

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

Recent Topic Ezblock randomly showing "New" message indicator by EzPortal
January 14, 2020, 10:17:10 pm

Block hiding issue on smf 2.1 mobile devices by EzPortal
January 07, 2020, 08:21:08 am

Author Topic: Error when guest tries to access a forum that does not have permission  (Read 1450 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: 1234
  • Karma: 66
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: 1234
  • Karma: 66
Glad to help
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

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

+-SMF Gallery

Quick Menu



Members Online

19 Guests, 0 Users
Powered by EzPortal