Página 1 de 1

Errores Debug en STK  Tema Solucionado

Publicado: 14 Mar 2011, 03:32
por Elpingo
Hola,

Tengo estos errores en la página principal de Support Toolkit

Código: Seleccionar todo

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4324: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4325: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4326: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4327: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4328: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4329: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4333: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4532: Trying to get property of non-object
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4632: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4634: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4635: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4636: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
Esto aparecio luego de instalar 2 Mods, el detalle es que los errores los marca en las lineas donde agregué el código del MOD phpBB SEO

Adjunto el archivo includes/functions.php
functions.rar
(37.25 KiB) Descargado 63 veces

Errores Debug en STK

Publicado: 14 Mar 2011, 04:45
por leviatan21
Elpingo escribió:el detalle es que los errores los marca en las lineas donde agregué el código del MOD phpBB SEO
Según tus datos de soporte instalaste el phpBB_SEO_Ultimate_SEO_URL_v0.6.2 pero la última version de ese MOD es la [BETA] phpBB SEO Ultimate SEO URL 0.6.6
¿ Por que instalar una version tan vieja ?

Errores Debug en STK

Publicado: 14 Mar 2011, 05:38
por Elpingo
No, el phpBB SEO lo tengo instalado desde hace mucho, lo que instalé fue el MOD Blog y ahora que recuerdo trae un código SEO para agregar al .htaccess, será esta modificación en el .htaccess lo que provoca el error?

Errores Debug en STK

Publicado: 14 Mar 2011, 06:10
por leviatan21
Elpingo escribió:No, el phpBB SEO lo tengo instalado desde hace mucho, lo que instalé fue el MOD Blog y ahora que recuerdo trae un código SEO para agregar al .htaccess, será esta modificación en el .htaccess lo que provoca el error?
No, el problema es es mismo SEO, porque el STK no lo inicia, porque tiene su propia configuración para evitar cargas los MODs de phpbb.

Prueba haciendo este cambio :
Abrir :

Código: Seleccionar todo

raíz/stk/common.php
Buscar :

Código: Seleccionar todo

// Load STK config when not in the erk 
Antes, agregar :

Código: Seleccionar todo

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (empty($phpbb_seo))
{
    require(PHPBB_ROOT_PATH . 'phpbb_seo/phpbb_seo_class.'. PHP_EXT);
    $phpbb_seo = new phpbb_seo();
    @define('PHPBB_USE_BOARD_URL_PATH', true);
}
// www.phpBB-SEO.com SEO TOOLKIT END 

Errores Debug en STK

Publicado: 14 Mar 2011, 07:30
por Elpingo
Ahora puedo ingresar a la página principal, pero cuando quiero ingresar a las pestaña "Herramientas de Soporte" me devuelve este error:

Código: Seleccionar todo

[phpBB Debug] PHP Notice: in file /stk/tools/support/mysql_upgrader.php on line 48: require(./index.phptools/support/database_cleaner.php) [function.require]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /stk/tools/support/mysql_upgrader.php on line 48: require(./index.phptools/support/database_cleaner.php) [function.require]: failed to open stream: No such file or directory

Fatal error: require() [function.require]: Failed opening required './index.phptools/support/database_cleaner.php' (include_path='.:/opt/php5/lib/php') in /home/crak/public_html/forum/stk/tools/support/mysql_upgrader.php on line 48

Re: Errores Debug en STK

Publicado: 14 Mar 2011, 15:16
por leviatan21
Eso es un bug en el propio STK,
Soluciones :
1) Error after install of STK 1.0.3 "Support Tools" tab
2) Support tab blank page

Errores Debug en STK

Publicado: 14 Mar 2011, 19:21
por Elpingo

Gracias Leviatan21, fenomenal lo tuyo! Imagen


Al margen de que Leviatan21 dejó los enlaces sobre la solución a este bug, transcribo los pasos a seguir y lo dejo aquí:

Si bien en este tema hago mención a dos errores diferentes, me refiero en esta solución al segundo error.

Si hacen clic en la pestaña "Herramienta de Soporte" y ven este error realizar los siguientes pasos:

Abrir: stk/tools/support/mysql_upgrader.php

Encontrar:

Código: Seleccionar todo

			require STK_INDEX . 'tools/support/database_cleaner.' . PHP_EXT;
Reemplazar por:

Código: Seleccionar todo

			require STK_ROOT_PATH . 'tools/support/database_cleaner.' . PHP_EXT;
Esta modificación al código no devuelve el error, pero genera otro, si hacemos clic en la pestaña veremos una página en blanco,
para solucionar esto, realizar los siguientes cambios:


Abrir: stk/tools/support/database_cleaner.php

Encontrar:

Código: Seleccionar todo

if (!defined('IN_PHPBB'))
{
	exit;
}
Agregar despues:

Código: Seleccionar todo

    if (!class_exists('database_cleaner'))
    {
Encontrar:

Código: Seleccionar todo

		// Redirect to the next step
		redirect(append_sid(STK_INDEX, array('c' => 'support', 't' => 'database_cleaner', 'step' => $this->step + 1, 'did_run' => $did_run)));
	}
}
Agregar despues: Listo!

Gracias nuevamente Leviatan21, errores solucionados! :cerveza: