Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Error instalacion phpBB3 (zona horaria)

Estas en el tema de Error instalacion phpBB3 (zona horaria) en el foro de Sistemas de gestión de contenidos en Foros del Web. Ante todo saludar primero a todos, estoy instalando phpBB3 en freeBSD 8.1 y entre otros errores de permisos de escritura que ya soluciones me aparecen ...
  #1 (permalink)  
Antiguo 18/12/2010, 11:55
Avatar de manyblue  
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años
Puntos: 10
Error instalacion phpBB3 (zona horaria)

Ante todo saludar primero a todos, estoy instalando phpBB3 en freeBSD 8.1 y entre otros errores de permisos de escritura que ya soluciones me aparecen estos tambien:

Código:
[phpBB Debug] PHP Notice: in file /index.php on line 86: date() [[URL="http://manyblue.homeunix.com/phpBB3/function.date"]function.date[/URL]]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for 'WET/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /index.php on line 86: getdate() [[URL="http://manyblue.homeunix.com/phpBB3/function.getdate"]function.getdate[/URL]]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for 'WET/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
edito index-php dentro de /usr/local/www/apache22/phpBB3/index.php y voy a la linea 86 :


Código:
 
86  $now = getdate(time() + $user->timezone + $user->dst - date('Z'));
87        $sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday
88               FROM ' . USERS_TABLE . ' u
89                LEFT JOIN ' . BANLIST_TABLE . " b ON (u.user_id = b.ban_userid)
90                WHERE (b.ban_id IS NULL
91                        OR b.ban_exclude = 1)
92                    AND u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%93  2d-', $now['mday'], $now['mon'])) . "%'
94                        AND u.user_type IN (" . USER_NORMAL . ', ' .  
95 USER_FOUNDER . ')';
        $result = $db->sql_query($sql);
        while ($row = $db->sql_fetchrow($result))
        {
                $birthday_list .= (($birthday_list != '') ? ', ' : '') . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
                if ($age = (int) substr($row['user_birthday'], -4))
                {
                        $birthday_list .= ' (' . ($now['year'] - $age) . ')';
                }
        }
        $db->sql_freeresult($result);
ahora edito /usr/local/www/apache22/phpBB3/includes/functios.php


Código:
 
4286    header('Cache-Control: private, no-cache="set-cookie"');
            header('Expires: 0');
            header('Pragma: no-cache');
            return;
}
esta ultima parte creo que es darle permisos chmod 777 functions.php pero no lo se muybien y la primera estoy despistado.
Agradezco ayuda
  #2 (permalink)  
Antiguo 18/12/2010, 13:32
Avatar de mandrake88  
Fecha de Ingreso: septiembre-2009
Mensajes: 328
Antigüedad: 14 años, 7 meses
Puntos: 13
Respuesta: Error instalacion phpBB3 (zona horaria)

no necesitas modificar nada del codigo para hacer funcionar phpBB, independientemente del sistema operativo.
Y no le des permisos 777 al functions.php, lo unico que lleva permisos 777 es la carpet /cache, la /files y /images/avatars/upload

Hace una instalacion por defecto de phpBB, sin modificar nada, y decime cuales son los errores que te aparecen, lo mas probable que sea algun problema de configuracion en tu webserver.
  #3 (permalink)  
Antiguo 18/12/2010, 14:50
Avatar de manyblue  
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años
Puntos: 10
Respuesta: Error instalacion phpBB3 (zona horaria)

Si que hay que tocar el codigo amigo, aqui encontre la solucion:

If anyone else has this problem, here is the fix:
Do the following by downloading the file common.php in your phpBB Forum root through FTP, then opening the file with Notepad , PSPAD, or similar. Then upload the common.php file back to your forum root.
Open: common.php
Find:
Código:
 foreach ($cache->obtain_hooks() as $hook)
{
    @include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
Add After:
Código:
 // Timezone Fix.
date_default_timezone_set('Canada/Pacific');
cambiando canada/pacific por la correspondiente:

[URL]http://www.php.net/manual/en/timezones.others.php[/URL]


saludos
  #4 (permalink)  
Antiguo 18/12/2010, 15:10
Avatar de manyblue  
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años
Puntos: 10
Respuesta: Error instalacion phpBB3 (zona horaria)

chmod ugo+rwr

chmod 777

Cualquiera de los dos vale a los archivos:


Código:
 
/usr/local/www/apache22/data/Opencart/store/config.php
/usr/local/www/apache22/data/Opencart/store/admin/config.php
y a los directorios:

Código:
 
/usr/local/www/apache22/data/Opencart/store/system/cache/
/usr/local/www/apache22/data/Opencart/store/system/logs/
/usr/local/www/apache22/data/Opencart/store/image/
/usr/local/www/apache22/data/Opencart/store/image/data/
/usr/local/www/apache22/data/Opencart/store/download/

problemas al instalar opencart los mismos que phpBB3

y las de phpBB3

cache
download
files
images
store
  #5 (permalink)  
Antiguo 18/12/2010, 15:21
Avatar de manyblue  
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años
Puntos: 10
Respuesta: Error instalacion phpBB3 (zona horaria)

Cita:
Iniciado por manyblue Ver Mensaje
chmod ugo+rwr

chmod 777

Cualquiera de los dos vale a los archivos:


Código:
 
/usr/local/www/apache22/data/Opencart/store/config.php
/usr/local/www/apache22/data/Opencart/store/admin/config.php
y a los directorios:

Código:
 
/usr/local/www/apache22/data/Opencart/store/system/cache/
/usr/local/www/apache22/data/Opencart/store/system/logs/
/usr/local/www/apache22/data/Opencart/store/image/
/usr/local/www/apache22/data/Opencart/store/image/data/
/usr/local/www/apache22/data/Opencart/store/download/

problemas al instalar opencart los mismos que phpBB3

y las de phpBB3

cache
download
files
images
store
PD: la solucion del codigo no la he probado cuando lo haga dire si realmente funciona pero ya la he visto en varios sitios
Lo de los pemisos si que funciona ya lo he probado pues la instalacion de Opencrt y phpBB3 me daba los mismos problemas, yo lo hago directo dando permisos bajo FreeBSD pero recomiendo que si usais FileZilla cuendo temgauis los archivos y directorios en el ftp boton derecho y cambiar permisos.

saludos
  #6 (permalink)  
Antiguo 18/12/2010, 15:52
Avatar de manyblue  
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años
Puntos: 10
Respuesta: Error instalacion phpBB3 (zona horaria)

JAJAJAJAJAJA si que funciona lo debeis añadir al final del archivo

vi commong.ini

Salud y forza ....

Etiquetas: phpbb, zonas
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:23.