diff --git a/configsample.inc.php b/configsample.inc.php
index b1b3b2f936bd8941579ba626ead891db74aa5d4a..7c97a73a26422d7f751303dbd1e81375f17b7d26 100644
--- a/configsample.inc.php
+++ b/configsample.inc.php
@@ -3,7 +3,11 @@
 function __autoload($class)
 {
     $file = dirname(__FILE__).'/src/'.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';
-    require $file;
+    if (file_exists($file)) {
+        require $file;
+        return true;
+    }
+    return false;
 }
 
 spl_autoload_register('__autoload');
diff --git a/www/exportCAPAlert.php b/www/exportCAPAlert.php
index a3a1defc06f2b0c5dc489676544fc35fe83f4da0..cdf5ac0c527868215570d39fd5d917da2849e6c2 100644
--- a/www/exportCAPAlert.php
+++ b/www/exportCAPAlert.php
@@ -55,3 +55,4 @@ $xmlCAP = exportCAPAlert();
 
 file_put_contents(dirname(__FILE__).'/xml/unlcap.xml', $xmlCAP);
 
+require dirname(__FILE__).'/exportJSONAlert.php';
diff --git a/www/exportJSONAlert.php b/www/exportJSONAlert.php
index 7a572e02a0e6ca48a62521b9a414db02beef5984..cda7ca42a8018a9205744ae868b4b75e36fcf7f7 100644
--- a/www/exportJSONAlert.php
+++ b/www/exportJSONAlert.php
@@ -1,6 +1,5 @@
 <?php
 
-ini_set('display_errors',false);
 require_once dirname(__FILE__).'/../src/xml2json/xml2json.php';
 
 $file = dirname(__FILE__).'/xml/unlcap.xml';