Incapable de retourner sur mes options payements

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344386

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

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344391

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.

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344405

Voici le mode debug en deux parties

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344408

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:

echo '<pre>';
var_dump($row->plugin_params->payment_min_price);
echo '</pre>';
continue;
avant la ligne:
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.

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344447

WOW! Vous êtes solide! J'ai fait la procédure et voici le résultat :



Attachments:
Last edit: 2 years 2 months ago by Myck_1977.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344456

Bonjour,

Ok. D'après ce que je comprends, changez la ligne:

if(isset($row->plugin_params->payment_min_price) && bccomp($row->plugin_params->payment_min_price, 0, 5)) {
en:
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.

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344477

J'ai fait les modifications, malheureusement, revenu comme avant voir les images


Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344482

Bonjour,

Merci. Alors essayez avec :

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.

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344485

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

Attachments:
Last edit: 2 years 2 months ago by Myck_1977.

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

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344487

I mix the files I think

File Attachment:

File Name: payment.zip
File Size:5 KB

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344488

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.

  • Posts: 18
  • Thank you received: 2
2 years 2 months ago #344512

C'est fait ! Vous avez reçus un courriel.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344520

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: 2 years 2 months ago by nicolas.

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

  • Posts: 3
  • Thank you received: 0
  • Hikashop Business
2 years 1 month ago #345081

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

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 1 month ago #345086

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.

  • Posts: 3
  • Thank you received: 0
  • Hikashop Business
2 years 1 month ago #345099

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.143 seconds
Powered by Kunena Forum