Página 1 de 2

Bugs del ultimate points 1.0.10

Publicado: 09 Abr 2011, 10:35
por angelismo
Con el modo debug habilitado ,en el acp :arrow: mensajes :arrow: adjuntos :arrow: administrar extensiones ,al cambiar alguna cosa ,sale este error
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 0
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 1
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 3
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 4
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 5
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 6
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 7
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 8
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 9
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 10
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 11
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 12
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 13
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 14
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 15
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 16
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 17
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 18
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 19
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 20
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 21
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 22
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 23
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 24
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 25
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 26
[phpBB Debug] PHP Notice: in file /includes/acp/acp_attachments.php on line 324: Undefined offset: 27
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
siendo la linea 324 /includes/acp/acp_attachments.php

Código: Seleccionar todo

$extensions[$extension_change_list[$i]]['group_id'] = $group_select_list[$i]; 
y dejajo de esta linea va este cambio del ultimate points

Código: Seleccionar todo

// Start Ultimate Points
                        // Generate extentions points list
                        $extensions_points = array();

                        for ($i = 0, $size = sizeof($extension_points_list); $i < $size; $i++)
                        {
                            $extensions_points[$extension_points_list[$i]] = true;
                        }
                        // End Ultimate Points  
y relacionado con esto ,en los temas que tienen adjuntos ,al ir al panel del moderador sale este otro error
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 916: Undefined index: points_extension
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4769: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4771: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4772: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4773: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3772)
siendo la linea 916 del /includes/functions_content.php

Código: Seleccionar todo

if ($attachment['points_extension'] && $forum_no_costs && $config['points_enable']) 
que esta dentro de este trozo de codigo del utimate points

Código: Seleccionar todo

// Start Ultimate Points
        else if ($forum_id > 0)
        {
            if ($attachment['points_extension'] && $forum_no_costs && $config['points_enable'])
            {
                if ($user->data['user_points'] < $attachment['points_extension_costs'])
                {
                    $denied = true;

                    $block_array += array(
                        'S_DENIED'            => true,
                        'DENIED_MESSAGE'    => sprintf($user->lang['POINTS_ATTACHMENT_COSTS'], $attachment['extension'],  $attachment['points_extension_costs'], $config['points_name']),
                    );
                }
                else
                {
                    substract_points($user->data['user_id'] , $attachment['points_extension_costs']);
                }
            }
        }
        // End Ultimate Points 
Enlace al mod
http://www.phpbb-es.com/foro/descarga-m ... 25157.html
He revisado los cambios y los estos destan correctos.

Re: Bugs del ultimate points 1.0.10

Publicado: 09 Abr 2011, 19:03
por leviatan21
Se me hace difícil encontrar el motivo, pero mira si algo de este mensaje te sirve :

Código: Seleccionar todo

http://www.phpbb-es.com/foro/soporte-phpbb3/ayuda-a-solucionar-bugs-t30488-120.html#p176299

Re: Bugs del ultimate points 1.0.10

Publicado: 09 Abr 2011, 19:24
por angelismo
Pues solucionado el segundo bug ,gracias a ese tema de zoby y ti claro esta :bravo:
Que el primero por solcionar.

Re: Bugs del ultimate points 1.0.10

Publicado: 09 Abr 2011, 20:57
por leviatan21
angelismo escribió:Pues solucionado el segundo bug
angelismo escribió:Que el segundo por solcionar.
No me queda claro... :lol:

Re: Bugs del ultimate points 1.0.10

Publicado: 09 Abr 2011, 21:35
por angelismo
Me equivoque al escribir mi anterior mensaje ,corregido.

Re: Bugs del ultimate points 1.0.10

Publicado: 10 Abr 2011, 07:38
por leviatan21
angelismo escribió:Me equivoque al escribir mi anterior mensaje ,corregido.
Si aún persiste el problema en la linea 324 del archivo raíz/includes/acp/acp_attachments.php, no le encuentro motivo, porque el código donde arroja el error es propio de phpbb y el ultimate points 1.0.10 no veo que modifique eso... podrías adjuntar tu archivo ?

Re: Bugs del ultimate points 1.0.10

Publicado: 10 Abr 2011, 15:15
por angelismo
Pues parece que lo he solucionado con este cambio
buscar

Código: Seleccionar todo

    $extensions[$extension_change_list[$i]]['group_id'] = $group_select_list[$i];  
cambiar por

Código: Seleccionar todo

$extensions[$extension_change_list[$i]]['group_id'] = $group_select_list[$i]= true; 
No si sera la solcuión más acertado ,pero probado otros cambios ,y este es el unico que me ha funcionado.
Aqui esta el archivo
http://www.phpbb-es.com/foro/pastebin.p ... view&s=187 (descargalo mejor)

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 21:38
por leviatan21
Acabo de instalar un foro de pruebas y le agregue el ultimate points 1.0.10 al ir a los adjuntos, y administrar las extensiones, hago un cambio en uno e ellos para ponerle puntos pero no tengo ningún error :nolose:

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 21:50
por angelismo
El error salia con el modo debug activado.

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 21:53
por leviatan21
Siempre utilizo el DEBUG habilitado aunque no esté buscando errores, :ops

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 21:58
por angelismo
Pues que raro que no te salga el error ,porque a mi salio hasta con un archivo /includes/acp/acp_attachments.php nuevo.

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 22:04
por leviatan21
Si juntamos este problema con el del Problemas con stk te diría que algo raro pasa, pudiendo estar relacionado con el programa FTP

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 22:10
por angelismo
Uso filezilla ftp ,desde hace años y nunca he tenido problemas ,mira en mi firma la cantidad de mos que tengo instalados ,todos sin problemas en su mayoria.

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 22:36
por leviatan21
angelismo escribió:Uso filezilla ftp ,desde hace años y nunca he tenido problemas ,mira en mi firma la cantidad de mos que tengo instalados ,todos sin problemas en su mayoria.
@angelismo no estoy poniendo en duda tus conocimientos en general, simplemente resalto que hay algo raro.
A mi me suena a que algo no está funcionando debidamente en relación al servidor/archivos.

Fijate que si volviste al archivo original no tendrías que tener problemas, quizás está dañada la plantilla o la cache o el navegador, que un programa funcione correctamente por algún tiempo no significa que deje de hacerlo en algún momento por razones desconocidas

Re: Bugs del ultimate points 1.0.10

Publicado: 11 Abr 2011, 23:18
por angelismo
Cuando digo volver al archivo original ,es haciendo los cambios del ultimate point en un archivo nuevo.