cBB Blog v1.0.1 error install /includes/acp/auth.php on line




weerdsa
 
Posts: 5
Joined: Tue Jan 15, 2019 4:28 pm

cBB Blog v1.0.1 error install /includes/acp/auth.php on line

Postby weerdsa » Tue Jan 15, 2019 4:32 pm • via Web
Good day! Please help me. Trying to install, but during the installation error occurs:
cBB Blog v1.0.1
phpbb3.0.14

Code: Select all
Fatal error: Uncaught Error: Call to undefined method auth_admin::auth_admin() in includes/acp/auth.php:794
Stack trace:
#0  install/includes/umil.php(1610): auth_admin->acl_add_option(Array)
#1  install/includes/umil.php(546): umil->permission_add('a_blog_manage', true)
#2  install/includes/umil.php(1565): umil->multicall('permission_add', Array)
#3  install/includes/installer.php(647): umil->permission_add(Array)
#4  install/install_install.php(48): installer->insert_permissions()
#5  install/includes/installer.php(229): install_install->main()
#6  install/index.php(58): installer->load()
#7 {main} thrown in includes/acp/auth.php on line 794
Error 1: Uncaught Error: Call to undefined method auth_admin::auth_admin()
in includes/acp/auth.php:794 Stack trace:
#0  install/includes/umil.php(1610): auth_admin->acl_add_option(Array)
#1  install/includes/umil.php(546): umil->permission_add('a_blog_manage', true)
#2  install/includes/umil.php(1565): umil->multicall('permission_add', Array)
#3  install/includes/installer.php(647): umil->permission_add(Array)
#4  install/install_install.php(48): installer->insert_permissions()
#5  install/includes/installer.php(229): install_install->main()
#6  install/index.php(58): installer->load()
#7 {main} thrown at file includes/acp/auth.php line 794
User avatar

IvanPF
Site Admin
 
Posts: 1588
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby IvanPF » Tue Jan 15, 2019 9:22 pm • via Web
Hi,

I think you have edited the file includes/acp/auth.php and that it lacks a function, since the original phpBB package does.
Can you attach that file here so I can see it?


weerdsa
 
Posts: 5
Joined: Tue Jan 15, 2019 4:28 pm

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby weerdsa » Wed Jan 16, 2019 5:36 pm • via Web
auth.php
(37.56 KB) 32 times
User avatar

IvanPF
Site Admin
 
Posts: 1588
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby IvanPF » Wed Jan 16, 2019 9:04 pm • via Web
Your file is not original, it has editions.

By default is:
Code: Select all
function auth_admin()


And in your file is:
Code: Select all
function __construct()


It may be that some mod has made this change, therefore, try doing the next edition:
Find:
Code: Select all
function __construct()


Replace with:
Code: Select all
   function __construct()
      return self::auth_admin();
   }
      
   function auth_admin()


weerdsa
 
Posts: 5
Joined: Tue Jan 15, 2019 4:28 pm

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby weerdsa » Thu Jan 17, 2019 5:07 pm • via Web
Thanks for your help.
But not passed.
Code: Select all
Parse error: syntax error, unexpected 'return' (T_RETURN), expecting ';' or '{' in includes/acp/auth.php on line 29
Error 4: syntax error, unexpected 'return' (T_RETURN), expecting ';' or '{' at file includes/acp/auth.php line 29
Attachments
auth.php
(37.63 KB) 29 times
User avatar

IvanPF
Site Admin
 
Posts: 1588
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby IvanPF » Thu Jan 17, 2019 8:58 pm • via Web
Sorry,

The correct code is:
Code: Select all
   function __construct()
   {
      return self::auth_admin();
   }
     
   function auth_admin()


weerdsa
 
Posts: 5
Joined: Tue Jan 15, 2019 4:28 pm

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby weerdsa » Thu Jan 24, 2019 12:24 pm • via Web
thank you very much for your work!


weerdsa
 
Posts: 5
Joined: Tue Jan 15, 2019 4:28 pm

Re: cBB Blog v1.0.1 error install /includes/acp/auth.php on

Postby weerdsa » Mon Jan 28, 2019 11:48 am • via Web
I would be grateful if you tell me: the mod provides the ability to display in the user profile information about the number of entries. Is it possible to display the same information on the page of all users (memberlist). Thanks

Who is online

Users browsing this forum: No registered users and 0 guests

cron