News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Error log, se me llena y repiten los errores

Started by econsorte, August 15, 2014, 03:13:22 PM

Previous topic - Next topic

econsorte

Consulta, se me llenan el error log que este aviso, como lo puedo soluciona?

Cada segundo me da este error...

[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 por su ayuda!

econsorte

Estos errores lo genera algun MOD, pero no puedo encontrar cual es, tengo otro foro en el mismo VPS y no tira ningun error...

Gracias!

econsorte


[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;
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

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

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:

Suki

¿Y cuáles son los mdos que tienes instalados?

En tu primer mensaje uno de los errores indica que se ha removido la declaración de la constante WIRELESS, solo tienes que volver a ponerla, otro error se relaciona con el mod prettyurls.

en realidad, tdos tus errores se relacionan con el mod prettyurls, quizá sea por una instalación errónea, revisa el parser del mod y asegúrate de que todos los cambios se hayan ejecutado bien.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: