<?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[Erreur module block_cart en php8.2 mais pas en php7.4]]></title><description><![CDATA[<p dir="auto">Bonjour,<br />
je suis en train d'essayer de monter la version de php sur un site prestashop.</p>
<p dir="auto">J'ai un soucis avec le module block_cart quand je veux passer en php8.2, alors que sous php7.4 cela ne pose aucun soucis.<br />
(Bloc panier v14 - par PrestaShop updated by Eolia)</p>
<p dir="auto">L'erreur que j'ai se trouve dans un fichier cache smarty.</p>
<p dir="auto">Cette ligne génère l'erreur ci-dessous :<br />
&lt;?php $_smarty_tpl-&gt;_assignInScope('free_ship', count($_smarty_tpl-&gt;tpl_vars['cart']-&gt;value-&gt;getDeliveryAddressesWithoutCarriers(true,$_smarty_tpl-&gt;tpl_vars['errors']-&gt;value)));?&gt;</p>
<p dir="auto">Fatal error: Uncaught Error: Attempt to modify property "value" on null</p>
<p dir="auto">(httpdocs/cache/smarty/compile/cb/20/12/cb20123965304d8a0f541e19cc61cca45d224bc7_0.file.blockcart.tpl.php on line 260)</p>
<p dir="auto">J'ai installé une version vierge et tout fonctionne, donc je pense qu'il y a un soucis avec un autre module, ou une configuration, mais je ne sais pas trop par où chercher.</p>
<p dir="auto">Merci d'avance si quelqu'un peut me mettre sur la piste</p>
]]></description><link>https://bb.enter-solutions.net/topic/1165/erreur-module-block_cart-en-php8-2-mais-pas-en-php7-4</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 06:29:48 GMT</lastBuildDate><atom:link href="https://bb.enter-solutions.net/topic/1165.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Mar 2024 14:00:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 17:30:20 GMT]]></title><description><![CDATA[<p dir="auto">Ben non, regardez mieux, vous n'avez pas la même ligne (isset est différent de not empty)</p>
<p dir="auto">Tous les modules natifs de Phenix sont compatibles PHP 8.3 mais si votre thème a ses propres tpls je ne peux rien vous garantir.</p>
]]></description><link>https://bb.enter-solutions.net/post/1910</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1910</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Thu, 09 May 2024 17:30:20 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 17:02:07 GMT]]></title><description><![CDATA[<p dir="auto">j'ai bien la premiere ligne sur le fichier :<br />
if isset($wishlists) &amp;&amp; count($wishlists) &gt; 1}</p>
<p dir="auto">oui on est en train de voir que c'est pas une super idée. Vu que les modules étaient en partie natif, j'ai pensé que ca allait quand meme fonctionné sur la version phenix</p>
]]></description><link>https://bb.enter-solutions.net/post/1909</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1909</guid><dc:creator><![CDATA[Greg69]]></dc:creator><pubDate>Thu, 09 May 2024 17:02:07 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 16:50:38 GMT]]></title><description><![CDATA[<p dir="auto">Vous avez quoi au debut de votre fichier /themes/votre_theme/modules/blockwishlist/blockwishlist_button.tpl ?</p>
<p dir="auto">Normalement vous devriez avoir soit:</p>
<pre><code>{if !empty($wishlists) &amp;&amp; count($wishlists) &gt; 1}
</code></pre>
<p dir="auto">Soit</p>
<pre><code>{if isset($wishlists) &amp;&amp; is_countable($wishlists) &amp;&amp; count($wishlists) &gt; 1}
</code></pre>
<p dir="auto">C'est bien joli de vouloir changer de version PHP mais si votre thème ou vos modules ont plus de 5 ans vous prenez le risque de les débuguer un par un sachant qu'à l'époque PHP 8 n'existait pas du tout et était inconnu des développeurs.</p>
]]></description><link>https://bb.enter-solutions.net/post/1908</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1908</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Thu, 09 May 2024 16:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 16:43:46 GMT]]></title><description><![CDATA[<p dir="auto">en plus long ça donne cela :<br />
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /htdocs/monsite.site/cache/smarty/compile/51/ce/6e/51ce6e2db5d85c7c51dc25788166c1e589b872b9_0.file.blockwishlist_button.tpl.php:25 Stack trace: #0 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_template_resource_base.php(123): content_663cf5a2323543_86080725(Object(Smarty_Internal_Template)) #1 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template)) #2 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_template.php(218): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template)) #3 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template-&gt;render(false, 0) #4 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_templatebase.php(122): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #5 /htdocs/monsite.site/classes/module/Module.php(2589): Smarty_Internal_TemplateBase-&gt;fetch() #6 /htdocs/monsite.site/modules/blockwishlist/blockwishlist.php(149): ModuleCore-&gt;display('/htdocs/gregsit...', 'blockwishlist_b...') #7 /htdocs/monsite.site/classes/Hook.php(691): BlockWishList-&gt;hookDisplayProductListFunctionalButtons(Array) #8 /htdocs/monsite.site/classes/Hook.php(632): HookCore::coreCallHook(Object(BlockWishList), 'hookdisplayProd...', Array) #9 /htdocs/monsite.site/config/smarty.config.inc.php(220): HookCore::exec('displayProductL...', Array, NULL) #10 /htdocs/monsite.site/config/smarty.config.inc.php(432): smartyHook(Array, Object(Smarty_Internal_Template)) #11 /htdocs/monsite.site/cache/smarty/compile/d6/48/ad/d648ad39e0b02e016ec1f7be28ac4316bb85dc9b_0.file.product-list.tpl.php(346): SmartyLazyRegister-&gt;__call('smartyHook', Array) #12 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_template_resource_base.php(123): content_663cf5a2310703_16196701(Object(Smarty_Internal_Template)) #13 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template)) #14 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_template.php(218): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template)) #15 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_template.php(387): Smarty_Internal_Template-&gt;render() #16 /htdocs/monsite.site/cache/smarty/compile/eb/c0/7f/ebc07f31a72735915984e75bf312676460948919_0.file.category.tpl.php(154): Smarty_Internal_Template-&gt;_subTemplateRender('file:./product-...', NULL, NULL, 0, 3600, Array, 0, false) #17 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_template_resource_base.php(123): content_663cf5a2237786_26004306(Object(Smarty_Internal_Template)) #18 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template)) #19 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_template.php(218): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template)) #20 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template-&gt;render(false, 0) #21 /htdocs/monsite.site/tools/smarty/sysplugins/smarty_internal_templatebase.php(122): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #22 /htdocs/monsite.site/classes/controller/FrontController.php(956): Smarty_Internal_TemplateBase-&gt;fetch('/htdocs/gregsit...') #23 /htdocs/monsite.site/classes/controller/Controller.php(239): FrontControllerCore-&gt;display() #24 /htdocs/monsite.site/classes/Dispatcher.php(415): ControllerCore-&gt;run() #25 /htdocs/monsite.site/index.php(27): DispatcherCore-&gt;dispatch() #26 {main} thrown in /htdocs/monsite.site/cache/smarty/compile/51/ce/6e/51ce6e2db5d85c7c51dc25788166c1e589b872b9_0.file.blockwishlist_button.tpl.php on line 25</p>
]]></description><link>https://bb.enter-solutions.net/post/1907</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1907</guid><dc:creator><![CDATA[Greg69]]></dc:creator><pubDate>Thu, 09 May 2024 16:43:46 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 16:40:09 GMT]]></title><description><![CDATA[<p dir="auto">Elle était pas commentée, on l'a commenté. Ca a améliorer la chose mais on a eu autre chose qui a été noté. Ci joint l'erreur :</p>
<p dir="auto">Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /htdocs/monsite.site/cache/smarty/compile/51/ce/6e/51ce6e2db5d85c7c51dc25788166c1e589b872b9_0.file.blockwishlist_button.tpl.php:25 Stack trace: #0</p>
]]></description><link>https://bb.enter-solutions.net/post/1906</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1906</guid><dc:creator><![CDATA[Greg69]]></dc:creator><pubDate>Thu, 09 May 2024 16:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 16:26:30 GMT]]></title><description><![CDATA[<p dir="auto">Cette ligne est commentée dans le thème default_boostrap (sauf si vous ne l'avez pas mis à jour)</p>
]]></description><link>https://bb.enter-solutions.net/post/1903</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1903</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Thu, 09 May 2024 16:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Thu, 09 May 2024 16:25:05 GMT]]></title><description><![CDATA[<p dir="auto">j'ai le meme souci et on a essayé de commenter mais ca n'a pas fonctionné<br />
theme de base : bootstrap</p>
]]></description><link>https://bb.enter-solutions.net/post/1902</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1902</guid><dc:creator><![CDATA[Greg69]]></dc:creator><pubDate>Thu, 09 May 2024 16:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Mon, 04 Mar 2024 19:05:06 GMT]]></title><description><![CDATA[<p dir="auto">c'était bien ça.<br />
je pense que c'est un thème qui a été bricolé. En plus le site avait été vérolé, d'où l'utilisation de votre patch. Et le désir de le mettre à jour avec votre solution.</p>
<p dir="auto">à priori, ça à l'air d'être fonctionnel maintenant. Je ferai des tests avec mon client demain pour vérifier que tout est en place.</p>
<p dir="auto">merci bcp pour l'aide et votre réactivité</p>
]]></description><link>https://bb.enter-solutions.net/post/1762</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1762</guid><dc:creator><![CDATA[tcdsmax]]></dc:creator><pubDate>Mon, 04 Mar 2024 19:05:06 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Mon, 04 Mar 2024 19:01:28 GMT]]></title><description><![CDATA[<p dir="auto">Alors normalement cette ligne est commentée (avec des étoiles)<br />
{<em>assign var='free_ship' value=!count($cart-&gt;getDeliveryAddressesWithoutCarriers(true))</em>}</p>
<p dir="auto">Mais je ne comprends pas, je croyais que vous n'étiez pas sur le thème par défaut ???</p>
]]></description><link>https://bb.enter-solutions.net/post/1761</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1761</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Mon, 04 Mar 2024 19:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Mon, 04 Mar 2024 18:56:28 GMT]]></title><description><![CDATA[<p dir="auto">c'est écrit :<br />
From source: /var/www/vhosts/xxxxxxx/httpdocs/themes/default-bootstrap/modules/blockcart/blockcart.tpl</p>
]]></description><link>https://bb.enter-solutions.net/post/1760</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1760</guid><dc:creator><![CDATA[tcdsmax]]></dc:creator><pubDate>Mon, 04 Mar 2024 18:56:28 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Mon, 04 Mar 2024 17:37:59 GMT]]></title><description><![CDATA[<p dir="auto">Si rien ne change, quel est le chemin indiqué dans le fichier du cache smarty svp ? (au début du fichier il y a le chemin du template qui a généré ce cache)</p>
]]></description><link>https://bb.enter-solutions.net/post/1759</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1759</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Mon, 04 Mar 2024 17:37:59 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Mon, 04 Mar 2024 17:23:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eolia" aria-label="Profile: eolia">@<bdi>eolia</bdi></a> a dit dans <a href="/post/1757">Erreur module block_cart en php8.2 mais pas en php7.4</a> :</p>
<blockquote>
<p dir="auto">mez le fichier /themes/votre_theme/modules/blockcart/blockcart-json.tpl qui n'est pas conforme.</p>
</blockquote>
<p dir="auto">je récupère ce site pour justement essayer de le rendre conforme, et effectivement, le thème utilisé n'est pas le thème de base.</p>
<p dir="auto">J'ai supprimé le fichier comme indiqué, j'ai vidé le cache, supprimé le fichier du dossier cache/smarty, mais rien ne change.</p>
<p dir="auto">Est-ce que ce serait plus judicieux de repartir d'une installation de base avec votre solution et de réimporter la base de donnée et intégrer les modules au fur et mesure ?<br />
Ou essayer de comprendre ce qui pose soucis ?</p>
]]></description><link>https://bb.enter-solutions.net/post/1758</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1758</guid><dc:creator><![CDATA[tcdsmax]]></dc:creator><pubDate>Mon, 04 Mar 2024 17:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to Erreur module block_cart en php8.2 mais pas en php7.4 on Mon, 04 Mar 2024 16:20:57 GMT]]></title><description><![CDATA[<p dir="auto">Vous n'êtes pas sur le thème de base je suppose?<br />
Supprimez le fichier /themes/votre_theme/modules/blockcart/blockcart-json.tpl qui n'est pas conforme.</p>
]]></description><link>https://bb.enter-solutions.net/post/1757</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1757</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Mon, 04 Mar 2024 16:20:57 GMT</pubDate></item></channel></rss>