# Paheko + DomPDF = LogicException - You need to install the PHP GD extension to be able to use this extension

**URL:** <https://forum.yunohost.org/t/paheko-dompdf-logicexception-you-need-to-install-the-php-gd-extension-to-be-able-to-use-this-extension/41126>\
**Category:** Support apps\
**Tags:** paheko, french, english\
**Created:** [December 20, 2025, 3:53pm UTC](https://forum.yunohost.org/t/paheko-dompdf-logicexception-you-need-to-install-the-php-gd-extension-to-be-able-to-use-this-extension/41126 "2025-12-20T15:53:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diabolo](https://forum.yunohost.org/user_avatar/forum.yunohost.org/diabolo/32/11635_2.png) [@Diabolo](https://forum.yunohost.org/u/Diabolo)\
**Post date:** [December 20, 2025, 3:53pm UTC](https://forum.yunohost.org/t/paheko-dompdf-logicexception-you-need-to-install-the-php-gd-extension-to-be-able-to-use-this-extension/41126/1 "2025-12-20T15:53:43Z")

</div>

**What app is this about, and its version** : 1.3.17.1~ynh1  
**What YunoHost version are you running** : 12.1.37  
**What type of hardware are you using** : VPS bought online

### Describe your issue

🇬🇧 Hello,

I just installed Paheko 1.3.17.1~ynh1 on my server. When I try to activate the DomPDF module, I get the following error message (details at the bottom of the post) :

An error has occurred - LogicException - You need to install the PHP GD extension to be able to use this extension.

Thank you in advance,

C.

* * *

🇫🇷 Bonjour,

Je viens d’installer Paheko 1.3.17.1~ynh1 sur mon serveur. Lorsque j’essaie d’activer le module DomPDF je me retrouve avec le message d’erreur suivant (détails en bas du post) :

Une erreur s’est produite - LogicException - You need to install the PHP GD extension to be able to use this extension.

En vous remerciant par avance,

C.

### Share relevant logs or error messages

# Une erreur s’est produite

# LogicException

## You need to install the PHP GD extension to be able to use this extension.

### in …/data/plugins/dompdf/lib/ **PDF.php** :_28_

```auto
24
25	static public function install(): void
26	{
27 if (!function_exists('imagecreatefromwebp')) {
28 throw new \LogicException('You need to install the PHP GD extension to be able to use this extension.');
29 }
30
31 // Remove old setup, new one is shared between setups
32 if (file_exists(CACHE_ROOT . '/dompdf')) {

```

### in …/data/plugins/dompdf/ **install.php** :_8_

#### → Paheko\Plugin\Dompdf\PDF::install _(0 arg.)_

```auto
4
5use Paheko\Plugin\Dompdf\PDF;
6
7// Download and unzip DomPDF library
8PDF::install();
9
10$plugin->registerSignal('pdf.stream', 'Paheko\Plugin\Dompdf\PDF::stream');
11$plugin->registerSignal('pdf.create', 'Paheko\Plugin\Dompdf\PDF::create');
12

```

### in …/include/lib/Paheko/Entities/ **Plugin.php** :_468_

#### → include _(1 arg.)_

| 0 | |
| --- | --- |

```auto
string(35) ".../data/plugins/dompdf/install.php"

```

```auto
464 }
465
466 $plugin = $this;
467
468 include $path;
469 }
470 else {
471 Plugins::routeStatic($this->name, $file);
472 }

```

### in …/include/lib/Paheko/Entities/ **Plugin.php** :_538_

#### → Paheko\Entities\Plugin-\>call _(2 arg.)_

| $file | |
| --- | --- |

```auto
string(11) "install.php"

```

| $allow\_protected | |
| --- | --- |

```auto
bool(true)

```

```auto
534 $this->set('enabled', true);
535 $this->save();
536
537 if (!$exists && $this->hasFile(self::INSTALL_FILE)) {
538 $this->call(self::INSTALL_FILE, true);
539 }
540
541 $db->commit();
542	}

```

### in …/include/lib/Paheko/Entities/ **Extension.php** :_67_

#### → Paheko\Entities\Plugin-\>enable _(0 arg.)_

```auto
63	}
64
65	public function enable()
66	{
67 $this->{$this->type}->enable();
68	}
69
70	public function disable()
71	{

```

### in …/www/admin/config/ext/ **details.php** :_24_

#### → Paheko\Entities\Extension-\>enable _(0 arg.)_

```auto
20	throw new UserException($ext->broken_message);
21}
22
23$form->runIf('enable', function () use ($ext) {
24	$ext->enable();
25}, $csrf_key, $ext->details_url);
26
27$form->runIf('disable', function () use ($ext) {
28	$ext->disable();

```

#### → Paheko\{closure} _(0 arg.)_

### in …/include/lib/Paheko/ **Form.php** :_29_

#### → call\_user\_func _(1 arg.)_

| $callback | |
| --- | --- |

```auto
object(Closure)#154 (1) {
  [0]=> *RECURSION*
  }

```

```auto
25 if (null !== $csrf_key && !\KD2\Form::tokenCheck($csrf_key)) {
26 throw new ValidationException('Une erreur est survenue, merci de bien vouloir renvoyer le formulaire.', 401);
27 }
28
29 call_user_func($fn);
30
31 if (null !== $redirect) {
32 if ($js) {
33 http_response_code(204);

```

### in …/include/lib/Paheko/ **Form.php** :_80_

#### → Paheko\Form-\>run _(4 arg.)_

| $fn | |
| --- | --- |

```auto
object(Closure)#154 (1) {
  [0]=> *RECURSION*
  }

```

| $csrf\_key | |
| --- | --- |

```auto
string(10) "ext_dompdf"

```

| $redirect | |
| --- | --- |

```auto
string(68) "https://adh.sud-culture.org/admin/config/ext/details.php?name=dompdf"

```

| $follow\_redirect | |
| --- | --- |

```auto
bool(false)

```

```auto
76 elseif (is_bool($condition) && !$condition) {
77 return null;
78 }
79
80 return $this->run($fn, $csrf_key, $redirect, $follow_redirect);
81	}
82
83	public function hasErrors()
84	{

```

### in …/www/admin/config/ext/ **details.php** :_23_

#### → Paheko\Form-\>runIf _(4 arg.)_

| $condition | |
| --- | --- |

```auto
string(6) "enable"

```

| $fn | |
| --- | --- |

```auto
object(Closure)#154 (1) {
  [0]=> *RECURSION*
  }

```

| $csrf\_key | |
| --- | --- |

```auto
string(10) "ext_dompdf"

```

| $redirect | |
| --- | --- |

```auto
string(68) "https://adh.sud-culture.org/admin/config/ext/details.php?name=dompdf"

```

```auto
19if ($ext->broken_message) {
20	throw new UserException($ext->broken_message);
21}
22
23$form->runIf('enable', function () use ($ext) {
24	$ext->enable();
25}, $csrf_key, $ext->details_url);
26
27$form->runIf('disable', function () use ($ext) {

```

 ![Screenshot 2025-12-20 at 16-57-16](https://forum.yunohost.org/uploads/default/original/2X/b/b36c87537d3f57d2b41307212cf22ac474041a9f.png)

---

<div class="post-metadata">

**Author:** ![orhtej2](https://forum.yunohost.org/user_avatar/forum.yunohost.org/orhtej2/32/8943_2.png) [@orhtej2](https://forum.yunohost.org/u/orhtej2)\
**Post date:** [December 20, 2025, 6:56pm UTC](https://forum.yunohost.org/t/paheko-dompdf-logicexception-you-need-to-install-the-php-gd-extension-to-be-able-to-use-this-extension/41126/2 "2025-12-20T18:56:42Z")

</div>

Log in via ssh and install the missing dep:

```auto
sudo apt install php8.3-gd

```

We can add it to package deps, to be released soon ™

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [December 20, 2025, 7:31pm UTC](https://forum.yunohost.org/t/paheko-dompdf-logicexception-you-need-to-install-the-php-gd-extension-to-be-able-to-use-this-extension/41126/3 "2025-12-20T19:31:54Z")

</div>

Ok, whe add this php, but there is yet mupdf-tools innstalled and so mupdf

> <https://github.com/YunoHost-Apps/paheko_ynh/blob/649640ae29d34135baec57d240633008c92430fb/conf/config.local.php#L1071>

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [January 4, 2026, 7:32pm UTC](https://forum.yunohost.org/t/paheko-dompdf-logicexception-you-need-to-install-the-php-gd-extension-to-be-able-to-use-this-extension/41126/4 "2026-01-04T19:32:05Z")

</div>

Closed on January 4, 2026, 7:32pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
