星期三, 25 10月 2023 10:28

Images in PDF displays as a red cross (https / mpdf)

男作者
给本文评分
(0 投票)

First  please make sure, that you are not on a localhost AND do not have any .htaccess / .passwd on your sever. Because our plugin uses HTTP to get the images for the PDF creation and if your server blocks the images from public it won’t work.

Problem not solves? Read further:

Please make sure you have installed / configured the following in your Server PHP Extensions:

  1. CURL Enabled (php_curl.dll enabled)
  2. PHP.ini (allow_url_fopen = On)
  3. GD Library installed



(Origiinal Link)To debug image loading go to plugin settings > advanced settings. There enable the MPDF Debug mode:
https://www.welaunch.io/en/wp-content/uploads/sites/8/2017/09/MPDF-Debug-Mode-247x58.png 247w,https://www.welaunch.io/en/wp-content/uploads/sites/8/2017/09/MPDF-Debug-Mode-510x120.png 510w,https://www.welaunch.io/en/wp-content/uploads/sites/8/2017/09/MPDF-Debug-Mode-300x71.webp 300w,https://www.welaunch.io/en/wp-content/uploads/sites/8/2017/09/MPDF-Debug-Mode-768x181.webp 768w" alt="MPDF debug mode" width="861" height="203" class="size-full wp-image-5507 lazy-load-active" style="box-sizing: border-box; border-style: none; display: inline-block; height: auto; max-width: 100%; vertical-align: middle; opacity: 1; transition: opacity 1s ease 0s;" decoding="async" data-src="https://www.welaunch.io/en/wp-content/uploads/sites/8/2017/09/MPDF-Debug-Mode.webp" data-srcset="https://www.welaunch.io/en/wp-content/uploads/sites/8/2017/09/MPDF-Debug-Mode.webp 861w,https://www.welaunch....

继续阅读完整内容

请查看下方广告以解锁文章剩余内容

广告加载中...
查看 27060