Skip to main content

Incapable de retourner sur mes options payements

More
4 years 1 month ago #344386 by Myck_1977
-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2
-- PHP version -- : 8.0
-- Browser(s) name and version -- : Chrome 105.0.5195.53

Salutation,

Je suis incapable de retourner sur mes options de mode de payements.

Une erreur est survenue
0 bccomp: bcmath function argument is not well-formed

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #344391 by nicolas
Bonjour,

Merci d'activer l'option "debug" de la configuration Joomla et de retourner sur cette page.
Cela fournira un message d'erreur plus complet qui nous permettra de comprendre d'où vient le souci exactement.

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #344405 by Myck_1977
Voici le mode debug en deux parties

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #344408 by nicolas
Bonjour,

C'est très étrange.
L'erreur indique que le prix minimum stocké dans la base de données ne serait pas du texte mais un objet PHP.
Veuillez rajouter le code:
Code:
echo '<pre>'; var_dump($row->plugin_params->payment_min_price); echo '</pre>'; continue;
avant la ligne:
Code:
if(isset($row->plugin_params->payment_min_price) && bccomp($row->plugin_params->payment_min_price, 0, 5)) {
du fichier administrator/components/com_hikashop/classes/payment.php
Cela évitera l'erreur et donc vous aurez à nouveau accès au listing des méthodes de paiement, et cela affichera le contenu de la variable $row->plugin_params->payment_min_price qui devrait normalement soit être vide, soit contenir du texte (un prix). Au moins une des méthodes de paiement doit avoir un objet qui s'affichera. Cela permettra peut être de comprendre d'où vient le problème pour proposer un patch propre.

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago - 4 years 4 weeks ago #344447 by Myck_1977
WOW! Vous êtes solide! J'ai fait la procédure et voici le résultat :



Last edit: 4 years 4 weeks ago by Myck_1977.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #344456 by nicolas
Bonjour,

Ok. D'après ce que je comprends, changez la ligne:
Code:
if(isset($row->plugin_params->payment_min_price) && bccomp($row->plugin_params->payment_min_price, 0, 5)) {
en:
Code:
if(!empty($row->plugin_params->payment_min_price) && bccomp($row->plugin_params->payment_min_price, 0, 5)) {
dans le même fichier et cela devrait fonctionner normalement, sans le code que vous avez rajouté précédemment.
Merci de confirmer pour que nous puissions faire le changement de notre coté pour la prochaine version d'HikaShop.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #344477 by Myck_1977
J'ai fait les modifications, malheureusement, revenu comme avant voir les images


Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #344482 by nicolas
Bonjour,

Merci. Alors essayez avec :
Code:
if(isset($row->plugin_params->payment_min_price) && bccomp((string)$row->plugin_params->payment_min_price, 0, 5)) {

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago - 4 years 3 weeks ago #344485 by Myck_1977
Salut !

Désolé même erreur encore même avec :

if(isset($row->plugin_params->payment_min_price) && bccomp((string)$row->plugin_params->payment_min_price, 0, 5)) {

Last edit: 4 years 3 weeks ago by Myck_1977.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #344487 by Myck_1977
I mix the files I think

This attachment is hidden for guests.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #344488 by nicolas
Hi,

Could you provide a backend and FTP accesses so that we could directly look into the problem as we aren't able to reproduce the problem on our end ?
If so please, provide the information along with a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #344512 by Myck_1977
C'est fait ! Vous avez reçus un courriel.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago - 4 years 3 weeks ago #344520 by nicolas
Bonjour,

J'ai reçu les accès, merci. L'accès FTP fonctionne bien, mais pas l'accès backend. Pourriez-vous vérifier ?

PS: je vous recommande de supprimer les captures d'écran de votre site pour l'accès FTP. Si quelqu'un d'autre trouve leur URL il pourrait se connecter au serveur FTP.
Last edit: 4 years 3 weeks ago by nicolas.

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #345081 by Tiktaalik Dev
Hi there,

I can't read French but it seems that this thread is about the same problem I have.
I'm using PHP 8.1 and Hikashop Business 4.6.1.
When I'm attempting to display the list of payment methods I'm getting the following error message
Code:
An error has occurred. 0 bccomp: bcmath function argument is not well-formed Call stack # Function Location 1 () JROOT/libraries/vendor/phpseclib/bcmath_compat/src/BCMath.php:418 2 bcmath_compat\BCMath::__callStatic() JROOT/libraries/vendor/phpseclib/bcmath_compat/lib/bcmath.php:56 3 bccomp() JROOT/administrator/components/com_hikashop/classes/payment.php:538 4 hikashopPaymentClass->fillListingColumns() JROOT/administrator/components/com_hikashop/views/plugins/view.html.php:138 5 PluginsViewPlugins->listing() JROOT/administrator/components/com_hikashop/views/plugins/view.html.php:22 6 PluginsViewPlugins->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639 7 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2404 8 hikashopController->display() JROOT/administrator/components/com_hikashop/controllers/plugins.php:159 9 PluginsController->listing() JROOT/libraries/src/MVC/Controller/BaseController.php:672 10 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2382 11 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73 12 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73 14 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355 15 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143 16 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186 17 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294 18 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61 19 require_once() JROOT/administrator/index.php:32

Were you able to solve this problem?

Thanks in advance for your help!

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #345086 by nicolas
Hi,

Update to HikaShop 4.6.2 and it should fix the problem.
The following user(s) said Thank You: Tiktaalik Dev

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #345099 by Tiktaalik Dev
Just installed the update and it does solve the problem. Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.321 seconds
Powered by Kunena Forum