HI Support Desk,
Following are the installed software product version(s) those are being used in our RHEL7 server environment.
Installed software
Product | Version |
---|---|
MediaWiki | 1.35.1 |
PHP | 7.4.15 (apache2handler) |
MySQL | 8 |
OS | LINUX |
I have tried MPDF and its downgliding pdf but not giving image, can you please suggest where we can enable for image?
Yes I have set it up properly as given in MPDF documentation. (Extension:Mpdf)
The path is not coming full in HTML. (/wiki135/images/5/57/enterprise-wiki.jpg).
From where I can change it, or it should be pick this automatically. Path should be like :
https://localhost/wiki135/images/5/57/enterprise-wiki.jpg not /wiki135/images/5/57/enterprise-wiki.jpg
Error: Error parsing image file - image type not recognised, and not supported by GD imagecreate
Steps I have done:
- wget https://extdist.wmflabs.org/dist/extensions/Mpdf-REL1_35-94bd27c.tar.gz
2. tar -xzf Mpdf-REL1_35-94bd27c.tar.gz -C /data/www/html/wiki135/extensions
3. cd data/www/html/wiki135
#php maintenance/update.php
4. added("extensions/Mpdf/composer.json") in wiki135/composer.local.json-sample
{
"extra": {
"merge-plugin": {
"include": [
"extensions/Mpdf/composer.json"] } } }
5. in mpdf dir
#composer update --no-dev
6.added in LocalSettings.php
require_once( "$IP/extensions/Mpdf/vendor/autoload.php");
wfLoadExtension( 'Mpdf' );
$wgMpdfSimpleOutput=true;
7.Given 777 to all 3 dir (/data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf)
/ttfontdata/
/tmp/
/graph_cache/
http://localhost/wiki135/index.php/Main_Page?title=Main_Page&action=mpdf
Please help me to fix this.
Thanks