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: SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by Shades
June 04, 2022, 11:29:37 am

Re: Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

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

Re: ezPortal 5.5 by tigez
May 20, 2022, 08:46:15 am

Re: Undefined index: href by Shades
May 16, 2022, 02:58:21 pm

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

Re: Undefined index: href by Shades
May 16, 2022, 02:27:16 pm

+- HTML Menu


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

Recent Topics ezBlock

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

Undefined index: href by Shades
May 16, 2022, 02:58:21 pm

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

BBC Pages by EzPortal
March 21, 2022, 10:36:41 pm

Recent Topics Blocks are different from left side to right side by Shades
March 21, 2022, 02:42:38 pm

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

+-SMF Gallery

Quick Menu


Powered by EzPortal