Solución a estos dos errores:
- moodle error filterobject has a deprecated constructor
- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; filterobject has a deprecated constructor in root/public_html/cursos/lib/filterlib.php on line 438
- Fatal error: Cannot redeclare session_gc() in root/public_html/cursos/lib/deprecatedlib.php on line 119
Causa:
Moodle 2.6 sólo es compatible con php 5.4.4
Solución:
En la carpeta raíz de tu sitio, buscar el archivo:
.htaccess
agregar la línea
AddHandler application/x-httpd-php54 .php
Fuente
https://stackoverflow.com/questions/12561203/how-to-change-php-version-in-htaccess-in-server