I followed through the normal installation on a shared (no root access) 
server. Trying to convert any pages to PDF resulted in nothing bu an empty 
page, and a couple of variations on this error:
PHP Fatal error: Class 'Services_JSON' not found in 
YADDA/extensions/Collection/Collection.body.php on line 1047

According to answered questions on StackOverflow (I don't pretend to be an 
authority on PHP), Services_JSON is an old PEAR library that is 
unnecessary, as the functionality is built in to php, now.

The attached edit fixed it all up for me, without requiring any 
installation. Everything seems to print, and I haven't (yet) run into any 
further problems.

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--- Collection.body.php	2014-06-01 12:13:16.000000000 -0600
+++ Collection.body.patched.php	2014-06-01 12:13:16.000000000 -0600
@@ -1044,8 +1044,7 @@
 		}
 		$result['items'] = $items;
 
-		$json = new Services_JSON();
-		return $json->encode( $result );
+		return json_encode( $result, true );
 	}
 
 	/**
@@ -1363,8 +1362,7 @@
 			return false;
 		}
 
-		$json = new Services_JSON( SERVICES_JSON_LOOSE_TYPE );
-		$json_response = $json->decode( $response );
+		$json_response = json_decode( $response, true );
 
 		if ( !$json_response ) {
 			$wgOut->showErrorPage(

Reply via email to