dokuwiki-plugin-dw2pdf icon indicating copy to clipboard operation
dokuwiki-plugin-dw2pdf copied to clipboard

images not showing - could not find image file

Open stetttho opened this issue 6 years ago • 7 comments

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.

stetttho avatar Jan 10 '19 08:01 stetttho

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

Klap-in avatar Jan 10 '19 10:01 Klap-in

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

stetttho avatar Jan 10 '19 14:01 stetttho

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

kaufmannmax avatar Mar 24 '21 08:03 kaufmannmax

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 ;)

Megachip avatar Apr 23 '21 11:04 Megachip

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

Jurik-Phys avatar Aug 11 '21 09:08 Jurik-Phys

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

Klap-in avatar Oct 12 '22 19:10 Klap-in

What is syntax I should use to reproduce this?

Klap-in avatar Oct 12 '22 19:10 Klap-in