Error log, se me llena y repiten los errores

  • Autor Autor econsorte
  • Fecha de inicio Fecha de inicio
econsorte

econsorte

Mi
Programador
Verificación en dos pasos activada
Verificado por Whatsapp
Consulta, se me llenan el error log que este aviso, como lo puedo soluciona?

Cada segundo me da este error…

Insertar CODE, HTML o PHP:
[15-Aug-2014 07:23:25 UTC] PHP Notice:  Use of undefined constant WIRELESS - assumed 'WIRELESS' in /home/…/public_html/Sources/Subs.php on line 2871
[15-Aug-2014 07:23:25 UTC] PHP Notice:  Use of undefined constant WIRELESS_PROTOCOL - assumed 'WIRELESS_PROTOCOL' in /home/androidt/public_html/Sources/Subs.php on line 2882
[15-Aug-2014 07:23:25 UTC] PHP Warning:  in_array() expects parameter 2 to be array, null given in /home/…/public_html/Sources/PrettyUrls-Filters.php on line 301
[15-Aug-2014 07:23:25 UTC] PHP Notice:  Undefined index: REQUEST_URL in /home/…/public_html/Sources/Subs.php on line 3023
[15-Aug-2014 07:23:25 UTC] PHP Notice:  Undefined index: REQUEST_URL in /home/…/public_html/Sources/Subs.php on line 3023
[15-Aug-2014 07:23:25 UTC] PHP Notice:  Undefined index: REQUEST_URL in /home/…/public_html/Sources/Subs.php on line 3024

GRACIAS betas :encouragement::encouragement:
 
Podrias colocar las lineas de codigo que se hacen mencion en dicho log?
 
tienes que corregir el error en el archivo correspondiente y ya
 
- - - Actualizado - - -

Es un foro lo que estas usando? esos archivos son del smf.. si mal no recuerdo...
Link.
 
Última edición:
Podrias colocar las lineas de codigo que se hacen mencion en dicho log?

Si mira!

[02-Sep-2014 17:14:41 UTC] PHP Notice: Use of undefined constant WIRELESS - assumed 'WIRELESS' in /home/androidt/public_html/Sources/Subs.php on line 2897

[02-Sep-2014 17:14:41 UTC] PHP Notice: Use of undefined constant WIRELESS_PROTOCOL - assumed 'WIRELESS_PROTOCOL' in /home/androidt/public_html/Sources/Subs.php on line 2908 = $setLocation .= $char . WIRELESS_PROTOCOL;
Insertar CODE, HTML o PHP:
if (WIRELESS)
	{
		// Add the scripturl on if needed.
		if ($add)
			$setLocation = $scripturl . '?' . $setLocation;

		$char = strpos($setLocation, '?') === false ? '?' : ';';

		if (strpos($setLocation, '#') !== false)
			$setLocation = strtr($setLocation, array('#' => $char . WIRELESS_PROTOCOL . '#'));
		else
			$setLocation .= $char . WIRELESS_PROTOCOL;
	}
	elseif ($add)
		$setLocation = $scripturl . ($setLocation != '' ? '?' . $setLocation : '');

[02-Sep-2014 17:14:41 UTC] PHP Notice: Undefined index: REQUEST_URL in /home/androidt/public_html/Sources/Subs.php on line 3049
[02-Sep-2014 17:14:41 UTC] PHP Notice: Undefined index: REQUEST_URL in /home/androidt/public_html/Sources/Subs.php on line 3049
[02-Sep-2014 17:14:41 UTC] PHP Notice: Undefined index: REQUEST_URL in /home/androidt/public_html/Sources/Subs.php on line 3050

Insertar CODE, HTML o PHP:
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false)
$_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

[02-Sep-2014 17:14:41 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/androidt/public_html/Sources/PrettyUrls-Filters.php on line 301

Insertar CODE, HTML o PHP:
	if (in_array($matches[2], $context['pretty']['action_array']))
					$urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
			}
	return $urls;
}

Muchas gracias por tu tiempo!
:encouragement:
 
Atrás
Arriba