From 3498f7686320ecf05ba07b1b7df998abc8bb9b7b Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 20 Jul 2011 14:43:39 -0400 Subject: Add a pre-2.0 upgrade check package for 1.2.3 that will flag invalid XML. --- config/pre2upgrade/pre2upgrade.php | 76 ++++++++++++++++++++++++++++++++++++++ config/pre2upgrade/pre2upgrade.xml | 57 ++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 config/pre2upgrade/pre2upgrade.php create mode 100644 config/pre2upgrade/pre2upgrade.xml (limited to 'config/pre2upgrade') diff --git a/config/pre2upgrade/pre2upgrade.php b/config/pre2upgrade/pre2upgrade.php new file mode 100644 index 00000000..edc471a8 --- /dev/null +++ b/config/pre2upgrade/pre2upgrade.php @@ -0,0 +1,76 @@ +&1", $out, $err); + +if ($err) { + $out = implode("\n", $out); +} else { + $out = "OK"; +} +?> + + + +

+ + +
+
+ + +
+This configuration check will report any invalid XML. The most common cause of this is international/special characters inside of your configuration in places where they are not supported. You must remove these characters from your configuration before proceeding with the upgrade, or else you will have problems, as your config.xml is not well-formed. Once you have upgraded to 2.0 you can put the characters back in descriptions, as they are properly supported in the new format. +

+Config check output: + +
+
+
+
+ +Please fix the errors found above.
It may help to view a config.xml backup file to see where the characters are exactly. + +

+Before proceeding with the upgrade, you should look over the upgrade guide on the doc wiki, which can be found here:
+http://doc.pfsense.org/index.php/Upgrade_Guide. +
+
+
+ + + + \ No newline at end of file diff --git a/config/pre2upgrade/pre2upgrade.xml b/config/pre2upgrade/pre2upgrade.xml new file mode 100644 index 00000000..9d645cdd --- /dev/null +++ b/config/pre2upgrade/pre2upgrade.xml @@ -0,0 +1,57 @@ + + + + + + + + pre2upgrade + 1.0 + System: Pre-2.0 Upgrade Check + + /usr/local/www/ + http://www.pfsense.com/packages/config/pre2upgrade/pre2upgrade.php + + + Pre-Upgrade Check + Check your system for potential 2.0 upgrade issues. +
System
+ /pre2upgrade.php +
+ + + +
\ No newline at end of file -- cgit v1.2.3