Forums | Mahara Community
Mahara: Site unavailable
24 September 2010, 3:48
Our installation of Mahara, which was working OK, has just been moved over to a new virtual server. Now, when attempting to log in, the following error message is output:
'Mahara: Site unavailable
A nonrecoverable error occured. This probably means you have encountered a bug in the system'
Also output on the page is a mass of 'Hieroglyphic' characters
PHP error log output:
[24-Sep-2010 09:24:09] [WAR] 50 (E:\rkc_mahara\mahara\lib\errors.php:464) An exception was thrown of class PieformException.
[24-Sep-2010 09:24:09] [WAR] 50 (E:\rkc_mahara\mahara\lib\errors.php:464) THIS IS BAD and should be changed to something extending MaharaException,
[24-Sep-2010 09:24:09] [WAR] 50 (E:\rkc_mahara\mahara\lib\errors.php:464) unless the exception is from a third party library.
[24-Sep-2010 09:24:09] [WAR] 50 (E:\rkc_mahara\mahara\lib\errors.php:464) Original trace follows
[24-Sep-2010 09:24:09] [WAR] 50 (E:\rkc_mahara\mahara\lib\pieforms\pieform.php:1195) No such form rule "required"
[24-Sep-2010 09:24:09] Call stack (most recent first):
[24-Sep-2010 09:24:09] * Pieform->validate(array(size 6)) at E:\rkc_mahara\mahara\lib\pieforms\pieform.php:410
[24-Sep-2010 09:24:09] * Pieform->__construct(array(size 8)) at E:\rkc_mahara\mahara\auth\lib.php:474
[24-Sep-2010 09:24:09] * auth_setup() at E:\rkc_mahara\mahara\init.php:239
[24-Sep-2010 09:24:09] * require("E:\rkc_mahara\mahara\init.php") at E:\rkc_mahara\mahara\index.php:32
Thanks in advance
24 September 2010, 4:05
At a guess, you're missing some files - can you ensure that you've copied everything over from the old system.
The file you're missing is probably lib/pieform/rules/required.php.
I'd advise clearing out and copying over your installation directory again.
24 September 2010, 4:14
Thanks, but the file 'lib/pieform/rules/required.php' is already on the server
24 September 2010, 4:25
Since you're not getting a 'Could not find rule "required"' error, the file must be readable. I'd hazard a guess though that there's something wrong with it - perhaps broken or empty following your copy.
You don't say what version of Mahara you're running but I'd hazard a guess at 1.2.x given the line numbers.
I'd still really recommend clearing out the installation directory, and copying it back in place. It really does look like there are some missing/empty files.
24 September 2010, 6:31
Spot on Andrew!
3 php files within pieform dir were corrupted - including required.php