From 74b48dace23d0cf64b6b17726d4153b53116c64b Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 23 Sep 2013 12:27:11 +0200 Subject: [PATCH] better error-message when version of files do not match version in database (update needed), thx to 'unknown75' from the Forum Signed-off-by: Michael Kaufmann (d00p) --- lib/cron_init.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/cron_init.php b/lib/cron_init.php index 7c530eae..6ee023f1 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -195,10 +195,13 @@ if(!isset($settings['panel']['version']) /** * Do not proceed further if the Database version is not the same as the script version */ - fclose($debugHandler); unlink($lockfile); - die('Version of file doesnt match version of database. Exiting...'); + $errormessage = "Version of file doesnt match version of database. Exiting...\n\n"; + $errormessage.= "Possible reason: Froxlor update\n"; + $errormessage.= "Information: Current version in database: ".$settings['panel']['version']." - version of Froxlor files: ".$version."\n"; + $errormessage.= "Solution: Please visit your Foxlor admin interface for further information.\n"; + die($errormessage); } fwrite($debugHandler, 'Froxlor version and database version are correct' . "\n");