commit b44cd82d0071ac24e11f5123966504a9056ed2b4
Author: Rico van de Vin <rico.vandevin@one-agency.be>
Date:   Mon Aug 25 17:08:08 2014 +0200

    HOTFIX - Patched Features module

diff --git a/www/sites/all/modules/contrib/features/features.export.inc b/www/sites/all/modules/contrib/features/features.export.inc
index 154b26b..581dc82 100644
--- a/www/sites/all/modules/contrib/features/features.export.inc
+++ b/www/sites/all/modules/contrib/features/features.export.inc
@@ -558,7 +558,21 @@ function features_var_export($var, $prefix = '', $init = TRUE, $count = 0) {
   }
 
   if (is_object($var)) {
-    $output = method_exists($var, 'export') ? $var->export() : features_var_export((array) $var, '', FALSE, $count+1);
+    if (method_exists($var, 'export')) {
+      $output = $var->export();
+    }
+    elseif (get_class($var) === 'stdClass') {
+      $output = '(object) ' . features_var_export((array) $var, '', FALSE, $count+1);
+    }
+    elseif (!method_exists($var, '__set_state')) {
+      // This is a custom object of unknown class that does not have a
+      // __set_state() method. By using serialize, the class name is preserved
+      // and the object is exported successfully (though unideally).
+      $output = 'unserialize(' . var_export(serialize($var), TRUE) . ')';
+    }
+    else {
+      $output = var_export($var, TRUE);
+    }
   }
   else if (is_array($var)) {
     if (empty($var)) {
