Ver Mensaje Individual
  #12 (permalink)  
Antiguo 14/01/2017, 18:55
seeburii
 
Fecha de Ingreso: agosto-2012
Mensajes: 40
Antigüedad: 11 años, 8 meses
Puntos: 1
Respuesta: Migrar servidor +problema php

Hola.

Me recomendaron quitarme xampp e instalar uniserver que funciona muy bien. Con algo de ayuda he conseguido iniciar el servidor y aunque en la web no hay errores visuales como antes, todo tardaba bastante en cargar (1 segundo cada vez que clickaba un hipervínculo) y ya sabía que algo no iba bien. Hay dos subtopics importantes que no funcionan: Characters y Guilds. Viendo el error.log dentro del apache salen los errores, ejemplo:

Código:
[Sat Jan 14 23:44:05.034264 2017] [php7:warn] [pid 8588:tid 1748] [client ::1:49170] PHP Warning: syntax error, unexpected '=' in cache/serverstatus on line 1\n in C:\\UniServerZ\\www\\config-and-functions.php on line 397, referer: http://localhost/index.php?subtopic=characters
[Sat Jan 14 23:44:06.046709 2017] [php7:notice] [pid 8588:tid 1748] [client ::1:49170] PHP Notice: Undefined variable: action in C:\\UniServerZ\\www\\index.php on line 25, referer: http://localhost/index.php?subtopic=characters
[Sat Jan 14 23:44:06.057737 2017] [php7:notice] [pid 8588:tid 1748] [client ::1:49170] PHP Notice: Undefined variable: main_content in C:\\UniServerZ\\www\\characters.php on line 27, referer: http://localhost/index.php?subtopic=characters
[Sat Jan 14 23:44:06.057737 2017] [php7:notice] [pid 8588:tid 1748] [client ::1:49170] PHP Notice: Undefined variable: number_of_rows in C:\\UniServerZ\\www\\characters.php on line 28, referer: http://localhost/index.php?subtopic=characters
[Sat Jan 14 23:44:06.057737 2017] [php7:notice] [pid 8588:tid 1748] [client ::1:49170] PHP Notice: Undefined variable: number_of_rows in C:\\UniServerZ\\www\\characters.php on line 28, referer: http://localhost/index.php?subtopic=characters
[Sat Jan 14 23:44:06.058769 2017] [php7:error] [pid 8588:tid 1748] [client ::1:49170] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\\UniServerZ\\www\\characters.php:48\nStack trace:\n#0 C:\\UniServerZ\\www\\index.php(125): include()\n#1 {main}\n thrown in C:\\UniServerZ\\www\\characters.php on line 48, referer: http://localhost/index.php?subtopic=characters
Me han dicho que básicamente el php que estoy usando es muy nuevo y ese código es bastante antiguo, la pregunta es ¿Cuánto de antiguo? ¿No hay ni una pista que me diga por ejemplo pues puede ser php 5.x o 4.x? Yo sólo se que tuve el servidor en 2012/13... nada más.

Como dije a mi con que funcione me vale, no me interesa reparar línea por línea y mucho menos aprender php pues no tengo tiempo.