<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU]]]></title><description><![CDATA[<p dir="auto">Bonjour,<br />
comme dit dans le titre. Dans les logs erreur :<br />
PHP message: PHP Notice:  Undefined variable: cellspacing in /var/www/clients/client3/web3/web/tools/tcpdf/tcpdf.php on line 18363PHP message: PHP Notice:  Undefined variable: cellspacingx in /var/www/clients/client3/web3/web/tools/tcpdf/tcpdf.php on line 18418PHP message: PHP Notice:  Undefined variable: cellspacingx in /var/www/clients/client3/web3/web/tools/tcpdf/tcpdf.php on line 18270PHP message: PHP Notice:  Undefined variable: cellspacing in /var/www/clients/client3/web3/web/tools/tcpdf/tcpdf.php on line 18337PHP message: PHP Notice:  Trying to access array offset on value of type null in /var/www/clients/client3/web3/web/tools/tcpdf/tcpdf.php on line 18337</p>
]]></description><link>https://bb.enter-solutions.net/topic/1153/factures-ne-se-génèrent-plus-depuis-06-12-résolu</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 15:49:28 GMT</lastBuildDate><atom:link href="https://bb.enter-solutions.net/topic/1153.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Dec 2023 10:43:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 22 Oct 2024 11:07:30 GMT]]></title><description><![CDATA[<p dir="auto">Fait merci ! Tutto bene !<br />
Pour ceux qui seraient intéressés, il sagit d'une mauvaise implémentation dans le code du module, en appelant une méthode de la mauvaise manière : new PDF-&gt;render(filename, output) alors qu'il aurait fallu render(true).</p>
]]></description><link>https://bb.enter-solutions.net/post/2068</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/2068</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Tue, 22 Oct 2024 11:07:30 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 22 Oct 2024 09:17:56 GMT]]></title><description><![CDATA[<p dir="auto">Peux-tu retester stp (et si tu es dispo sur Skype ce serait pas mal)</p>
]]></description><link>https://bb.enter-solutions.net/post/2067</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/2067</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Tue, 22 Oct 2024 09:17:56 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 22 Oct 2024 08:04:36 GMT]]></title><description><![CDATA[<p dir="auto">J'ai ça dans cron_error.log :</p>
<pre><code>--2024-10-22 09:59:01--  https://www.monsite.com/pdfnuancier
Resolving www.monsite.com (www.monsite.com)... IPV6, IPV4
Connecting to www.monsite.com (www.monsite.com)|IPV6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/var/www/clients/client3/web3/web/ftp/nuancier_pdf.pdf’

     0K .......... .......... .......... .......... .......... 90.4M
    50K .......... .......... .......... .......... ..........  148M
   100K .......... .......... .......... .......... ..........  118M
   150K .......... .......... .......... .......... ..........  111M
   200K .......... .......... .......... .......... ..........  111M
   250K .......... .......... .......... .......... .........   130M=0.003s

2024-10-22 10:00:04 (115 MB/s) - ‘/var/www/clients/client3/web3/web/ftp/nuancier_pdf.pdf’ saved [306447]
</code></pre>
<p dir="auto">J'ai un fichier généré, mais c'est du html</p>
]]></description><link>https://bb.enter-solutions.net/post/2066</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/2066</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Tue, 22 Oct 2024 08:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 22 Oct 2024 07:56:20 GMT]]></title><description><![CDATA[<p dir="auto">Je relance un cron, il lui faudra bien 3 minutes.</p>
]]></description><link>https://bb.enter-solutions.net/post/2065</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/2065</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Tue, 22 Oct 2024 07:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 22 Oct 2024 07:55:11 GMT]]></title><description><![CDATA[<p dir="auto">Curieux, la classe PDF n'a pas été modifiée récemment.<br />
Peux-tu retester stp ?</p>
]]></description><link>https://bb.enter-solutions.net/post/2064</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/2064</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Tue, 22 Oct 2024 07:55:11 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 22 Oct 2024 05:13:07 GMT]]></title><description><![CDATA[<p dir="auto">Bonjour Pierre,<br />
Je reviens vers toi car j'ai à nouveau ce même soucis lorsque je souhaite générer un pdf depuis une tâche cron (cellspacingx undefined variable... à la ligne 18272 et 18420). Je ne suis pourtant pas en mode debug (mais je logue la tâche pour savoir de quoi il en retourne). Le pdf n'est pas généré. Si j'appelle la page depuis mon navigateur, je n'ai qu'une page html avec un tableau (html/body/table/th/td). Si je génère une facture depuis une commande, le pdf se génère bien. J'ai un override sur pdfgenerator :</p>
<pre><code>&lt;?php
class PDFGenerator extends PDFGeneratorCore
{
	
    /*
    * module: alinkmodpantones
    * date: 2023-05-25 09:02:05
    * version: 1.0
    */
    public function writePage()
    {
        
        $this-&gt;SetHeaderMargin(10);
        $this-&gt;SetFooterMargin(21);
        $this-&gt;setMargins(10, 40, 10);
        $this-&gt;AddPage();
        $this-&gt;writeHTML($this-&gt;content, true, false, true, false, '');
    }
    /*
    * module: alinkmodpantones
    * date: 2023-05-25 09:02:05
    * version: 1.0
    */
    public function Header()
    {
        $this-&gt;writeHTML($this-&gt;header);
        $this-&gt;SetLineStyle( array( 'width' =&gt; 2, 'color' =&gt; array(246, 216, 190)));
		$this-&gt;Line(5, 5, $this-&gt;getPageWidth()-5, 5); 
		$this-&gt;Line($this-&gt;getPageWidth()-5, 5, $this-&gt;getPageWidth()-5,  $this-&gt;getPageHeight()-5);
		$this-&gt;Line(5, $this-&gt;getPageHeight()-5, $this-&gt;getPageWidth()-5, $this-&gt;getPageHeight()-5);
		$this-&gt;Line(5, 5, 5, $this-&gt;getPageHeight()-5);
    }
    /*
    * module: alinkmodpantones
    * date: 2023-05-25 09:02:05
    * version: 1.0
    */
    public function createContent($content)
    {
        $font = TCPDF_FONTS::addTTFfont(_PS_MODULE_DIR_.'alinkmodpantones/views/fonts/Arial.ttf', 'TrueTypeUnicode', '', 32);
        $this-&gt;FontFamily = 'Arial';
        $this-&gt;content = $content;
    }
    /*
    * module: alinkmodpantones
    * date: 2023-05-25 09:02:05
    * version: 1.0
    */
    public function Footer()
    {
        $this-&gt;writeHTML($this-&gt;footer);
        $this-&gt;FontFamily = self::DEFAULT_FONT;
    }
}
</code></pre>
<p dir="auto">Celui-ci fonctionnait bien jusqu'à présent.</p>
]]></description><link>https://bb.enter-solutions.net/post/2063</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/2063</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Tue, 22 Oct 2024 05:13:07 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 10:32:20 GMT]]></title><description><![CDATA[<p dir="auto">En effet, le dev a intégré le paramètre ID employee dans la conf de son module. Il a fallut créer un nouvel employé du coup. J'attends la fin de journée pour voir la génération des factures et je marque résolu.</p>
]]></description><link>https://bb.enter-solutions.net/post/1671</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1671</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Wed, 13 Dec 2023 10:32:20 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 09:25:21 GMT]]></title><description><![CDATA[<p dir="auto">Ok, du coup je vais joindre leur dev'. (Plusieurs mises à jour de leur module dernièrement, même si auparavant on n'avait pas d'employé qui figurait à côté).</p>
]]></description><link>https://bb.enter-solutions.net/post/1670</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1670</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Wed, 13 Dec 2023 09:25:21 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 09:22:24 GMT]]></title><description><![CDATA[<p dir="auto">Ah ben ça c'est connu, c'est votre module qui est écrit avec les pieds^^<br />
Il prend le dernier employé trouvé dans la table ps_employee.<br />
J'avais corrigé le module SoColissimo à l'époque en lui créant un employé spécifique et en mettant son id dans le module.</p>
]]></description><link>https://bb.enter-solutions.net/post/1669</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1669</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Wed, 13 Dec 2023 09:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 09:14:58 GMT]]></title><description><![CDATA[<p dir="auto">Bon ben il persiste un problème alors, un des changement de statut opéré par le retour du module de notre logisticien (préparation en cours) indique un des employés à côté. J'ai contacté l'employé en question qui n'a pourtant touché à rien.</p>
]]></description><link>https://bb.enter-solutions.net/post/1668</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1668</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Wed, 13 Dec 2023 09:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 09:03:14 GMT]]></title><description><![CDATA[<p dir="auto">Ben non.<br />
Le code est purement logique hein.<br />
Facture cochée =&gt; on génère et on envoie la facture en pièce jointe<br />
Facture pas cochée =&gt; on ne génère rien.</p>
]]></description><link>https://bb.enter-solutions.net/post/1667</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1667</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Wed, 13 Dec 2023 09:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 09:03:20 GMT]]></title><description><![CDATA[<p dir="auto">Oui mais si on ne souhaite pas envoyé la facture dans l'email, celle-ci n'est donc pas générée ? (Donc est-ce à nous de configurer la génération d'une facture, n'est-ce pas fait automatiquement lors d'un changement de statut particulier - renvoi par le mode de paiement (accepté) /paypal/payplug...)</p>
]]></description><link>https://bb.enter-solutions.net/post/1666</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1666</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Wed, 13 Dec 2023 09:03:20 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 09:00:31 GMT]]></title><description><![CDATA[<p dir="auto">Ah bah oui, la facture est générée et envoyée en pièce-jointe pour chaque email dont l'option "facture" est cochée.</p>
]]></description><link>https://bb.enter-solutions.net/post/1665</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1665</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Wed, 13 Dec 2023 09:00:31 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 08:42:30 GMT]]></title><description><![CDATA[<p dir="auto">Je viens de checker d'anciennes commandes, et en effet la plupart n'ont pas de nom. Du coup je ne vois pas en quoi les modifs que j'ai faites ont pu affecter la génération des factures.</p>
<p dir="auto">Édith : il se trouve que j'ai aussi modifié le comportement d'un changement de statut, à savoir l'envoi d'un mail avec la facture. Est-ce ça qui peut déclencher la génération de facture<br />
?</p>
]]></description><link>https://bb.enter-solutions.net/post/1664</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1664</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Wed, 13 Dec 2023 08:42:30 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 08:26:36 GMT]]></title><description><![CDATA[<p dir="auto">Dans OrderHistory:<br />
<img src="/assets/uploads/files/1702455993731-438e208a-eb7f-4a98-9909-4538a44237f0-image.png" alt="438e208a-eb7f-4a98-9909-4538a44237f0-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://bb.enter-solutions.net/post/1663</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1663</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Wed, 13 Dec 2023 08:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 08:24:19 GMT]]></title><description><![CDATA[<p dir="auto">Non, concernant les changements de statuts, il y a un nom qui apparait QUE si c'est un employé qui a changé ce statut. Si c'est un changement automatique effectué par le code il n'y a pas de nom.<br />
Et ce n'est pas le le dernier employé mais celui du contexte en cours.</p>
]]></description><link>https://bb.enter-solutions.net/post/1662</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1662</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Wed, 13 Dec 2023 08:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Wed, 13 Dec 2023 07:27:07 GMT]]></title><description><![CDATA[<p dir="auto">Alors incompréhensible, hier soir les factures se génèrent à nouveau. MAIS (y'a un 'mais'), dans la journée je suis allé dans le BO vérifier les différentes permissions des employés (j'ai créé le week-end dernier des profils pour chacun des employés, ça n'avait jusqu'à présent pas été fait) et ajouter des droits (voir, modifier) sur les modules commandes &amp; CA, alertes par email, paypal, payplug pour l'employé qui envoie les mails (en fait, ce n'est pas l'employé mais son mail qui est dans la conf smtp du BO). Donc ce matin je vois que les factures se génèrent (je verrais pour les dernières factures ce matin si ça suit le mouvement). Chose étrange, auparavant lors des changements de statut, il était indiqué le nom du superadmin à côté. Maintenant, c'est celui du dernier employé créé (== dernier profil aussi).</p>
]]></description><link>https://bb.enter-solutions.net/post/1660</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1660</guid><dc:creator><![CDATA[Olivier75009]]></dc:creator><pubDate>Wed, 13 Dec 2023 07:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 12 Dec 2023 16:41:42 GMT]]></title><description><![CDATA[<p dir="auto">Ajoute cette ligne (18165):<br />
<img src="/assets/uploads/files/1702399273602-ff2f7c33-d96e-4f7b-9a5f-10ea188c2048-image.png" alt="ff2f7c33-d96e-4f7b-9a5f-10ea188c2048-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://bb.enter-solutions.net/post/1659</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1659</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Tue, 12 Dec 2023 16:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to Factures ne se génèrent plus depuis 06&#x2F;12 [RÉSOLU] on Tue, 12 Dec 2023 16:39:32 GMT]]></title><description><![CDATA[<p dir="auto">Lol, tu les accumules^^<br />
Tu as des templates pdf particuliers ? (et tu as le mode debug activé)<br />
Parce que cette variable est définie plus haut</p>
<pre><code>if (($dom[$key]['value'] == 'table') AND isset($dom[$key]['cols']) AND ($dom[$key]['cols'] &gt; 0)) {
						// available page width
						if ($this-&gt;rtl) {
							$wtmp = $this-&gt;x - $this-&gt;lMargin;
						} else {
							$wtmp = $this-&gt;w - $this-&gt;rMargin - $this-&gt;x;
						}
						// get cell spacing
						if (isset($dom[$key]['attribute']['cellspacing'])) {
							$clsp = $this-&gt;getHTMLUnitToUnits($dom[$key]['attribute']['cellspacing'], 1, 'px');
							$cellspacing = array('H' =&gt; $clsp, 'V' =&gt; $clsp);
						} elseif (isset($dom[$key]['border-spacing'])) {
							$cellspacing = $dom[$key]['border-spacing'];
						} else {
							$cellspacing = array('H' =&gt; 0, 'V' =&gt; 0);
						}
</code></pre>
]]></description><link>https://bb.enter-solutions.net/post/1658</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1658</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Tue, 12 Dec 2023 16:39:32 GMT</pubDate></item></channel></rss>