When I generate a PDF document from an article from one of our wikis, the images are no longer included. Did anything change within the Collection extension? How can I configure the Collection extension to have images included in the PDFs again?
Topic on Project:Support desk
@Ablum010777 Please explain what you did before images got no longer included, plus provide basic version information for both MediaWiki itself and the Collection extension.
This is what I have in the LocalSettings.php:
# PDF rendering
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionFormats = array(
'rl' => 'PDF', # ist per Voreinstellung aktiviert, wird für PDF-Ausgabe benötigt.
'odf' => 'ODT',
'docbook' => 'DocBook XML',
'xhtml' => 'XHTML 1.0 Transitional',
'epub' => 'e-book (EPUB)',
'zim' => 'Kiwix (OpenZIM)',
);
$wgCollectionPODPartners = false;
$wgCollectionMaxArticles = 150; # default value
$wgEnableAPI = true;
$wgGroupPermissions['*']['collectionsaveasuserpage'] = false;
$wgGroupPermissions['*']['collectionsaveascommunitypage'] = false;
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
$wgGroupPermissions['user']['collectionsaveascommunitypage'] = true;
$wgCollectionMWServeURL = 'http://localhost:8899/cache';
if ( $_SERVER["REMOTE_ADDR"] == '10.227.0.170' ) {
$wgUploadPath = "$wgUploadPath/tmp";
}
#$wgCollectionMWServeCredentials = "pdfpr1nt3r:titp4tpp:testwiki"; #user:pw:domain
$wgCommunityCollectionNamespace=NS_MEDIAWIKI;
# Namespace eigentlich nicht notwendig, ggfs. testen
#$wgCollectionArticleNamespaces = array(
# NS_MAIN => true,
# NS_TALK => true,
# NS_USER => true,
# NS_USER_TALK => true,
# NS_PROJECT => true,
# NS_PROJECT_TALK => true,
# NS_FILE => true,
# NS_FILE_TALK => true,
# NS_MEDIAWIKI => true,
# NS_MEDIAWIKI_TALK => true,
# NS_TEMPLATE => true,
# NS_TEMPLATE_TALK => true,
# NS_HELP => true,
# NS_HELP_TALK => true,
# NS_CATEGORY => true,
# NS_CATEGORY_TALK => true
#);
We are working with MediaWiki Version 1.33.0 and Collection version 1.7.0.
These were our settings in the LocalSettings.php since version 1.28.