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


no_avatar
weerdsa
 
Mensajes: 5
Registrado: Mar Ene 15, 2019 4:28 pm
 Mar Ene 15, 2019 4:32 pm • a través de Web
Good day! Please help me. Trying to install, but during the installation error occurs:
cBB Blog v1.0.1
phpbb3.0.14

Código: Seleccionar todo
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
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Mar Ene 15, 2019 9:22 pm • a través de 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?
no_avatar
weerdsa
 
Mensajes: 5
Registrado: Mar Ene 15, 2019 4:28 pm
 Mié Ene 16, 2019 5:36 pm • a través de Web
auth.php
(37.56 KB) Descargado 379 veces
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Mié Ene 16, 2019 9:04 pm • a través de Web
Your file is not original, it has editions.

By default is:
Código: Seleccionar todo
function auth_admin()


And in your file is:
Código: Seleccionar todo
function __construct()


It may be that some mod has made this change, therefore, try doing the next edition:
Find:
Código: Seleccionar todo
function __construct()


Replace with:
Código: Seleccionar todo
   function __construct()
      return self::auth_admin();
   }
      
   function auth_admin()
no_avatar
weerdsa
 
Mensajes: 5
Registrado: Mar Ene 15, 2019 4:28 pm
 Jue Ene 17, 2019 5:07 pm • a través de Web
Thanks for your help.
But not passed.
Código: Seleccionar todo
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
Adjuntos
auth.php
(37.63 KB) Descargado 401 veces
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Jue Ene 17, 2019 8:58 pm • a través de Web
Sorry,

The correct code is:
Código: Seleccionar todo
   function __construct()
   {
      return self::auth_admin();
   }
     
   function auth_admin()
no_avatar
weerdsa
 
Mensajes: 5
Registrado: Mar Ene 15, 2019 4:28 pm
 Jue Ene 24, 2019 12:24 pm • a través de Web
thank you very much for your work!
no_avatar
weerdsa
 
Mensajes: 5
Registrado: Mar Ene 15, 2019 4:28 pm
 Lun Ene 28, 2019 11:48 am • a través de 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

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados