splitbrain / dokuwiki-plugin-dw2pdf

A fork of Luigi Micco's PDF export plugin for DokuWiki
http://www.dokuwiki.org/plugin:dw2pdf
55 stars 68 forks source link

images not showing - could not find image file #369

Open stetttho opened 5 years ago

stetttho commented 5 years ago

Hi there

Recently, I did an update to the latest dokuwiki version, including updating all plugins. Since that, export to pdf with dw2pdf still works, but images are not shown anymore (and no, there is no X symbol showing instead and it is not about alpha channels). The debugger gave me the following error message:

Could not find image file (C:/Program%20Files/DokuWikiStick/dokuwiki/data/media/it/imagefile.png) https://i.ibb.co/jTZ0vvd/doku-wiki-error.jpg

So, the problem seems to be the space in the folder "Program Files", as the %20 doesn't work also when I enter the path in Windows Explorer. When I remove the %20 from the path and enter it in Windows Explorer, the image is shown. The strange thing is it worked before the update, and location of the DokuWiki files didn't change.

Klap-in commented 5 years ago

What are your system, OS, PHP versions, DokuWiki and dw2pdf plugin versions?

stetttho commented 5 years ago

Hi, thanks for the fast reply. Here the specs:

OS: Windows Server 2008R2 (Server) / Windows 7 (Client) PHP: 5.6.30 DokuWiki: Release 2018-04-22a "Greebo" DW2PDF: latest, 2018-04-23

kaufmannmax commented 3 years ago

Same here, running on latest debian with php 7.4 Release: 2020-07-29 "Hogfather" DW2PDF: Release: 2021-02-07

Megachip commented 3 years ago

For me images never worked. But maybe this is another issue, cause I've do not get any error message. Ive just see:

image

which links to the image.

Release: 2020-07-29 "Hogfather" DW2PDF: Release: 2021-02-07 PHP 7.0.33 on a Synology nas ;)

Jurik-Phys commented 3 years ago

My solve for Debian 10 is install php7-gd and restart web-server. Installation php7-gd without restart web-server don't work.

apt-get install php7.3-gd systemctl restart apache2

Klap-in commented 1 year ago

If you consider above solution and you use the most recent versions of DokuWiki and the dw2pdf plugin, is it then solved?

Klap-in commented 1 year ago

What is syntax I should use to reproduce this?