Correct notice and erro for php5.4 and archive error

+  Correct all notice and php error for php5.3 and php5.4 (closes #3457) 
+  Correct show archive error (closes #1684)