phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

My webhost just force upgraded me from PHP 5.6 to PHP 7.2

Goto page Previous  1, 2, 3
 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 17



PostPosted: Wed Mar 11, 2020 8:05 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Many thanks. One error down, two to go.

This function in auth.php is causing errors:
Code:
function auth_check_user($type, $key, $u_access, $is_admin)
{
   $auth_user = 0;

   if ( count($u_access) )
   {
      for($j = 0; $j < count($u_access); $j++)
      {
         $result = 0;
         switch($type)
         {
            case AUTH_ACL:
               $result = $u_access[$j][$key];

            case AUTH_MOD:
               $result = $result || $u_access[$j]['auth_mod'];

            case AUTH_ADMIN:
               $result = $result || $is_admin;
               break;
         }

         $auth_user = $auth_user || $result;
      }
   }
   else
   {
      $auth_user = $is_admin;
   }

   return $auth_user;
}


This function in index.php is causing errors:
Code:
if ( count($forum_moderators[$forum_id]) > 0 )
                     {
                        $l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
                        $moderator_list = implode(', ', $forum_moderators[$forum_id]);
                     }
                     else
                     {
                        $l_moderators = '&nbsp;';
                        $moderator_list = '&nbsp;';
                     }
Back to top
vlad77
Board Member



Joined: 31 May 2015

Posts: 117


flag
PostPosted: Mon Mar 16, 2020 6:25 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

You look at other topics on transition to new php. Other people there solved the same problems. I showed you above how other messages have written a solution to your problems.
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 3 of 3 All times are GMT
Goto page Previous  1, 2, 3
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0271 seconds using 15 queries. (SQL 0.0024 Parse 0.0008 Other 0.0239)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo