Getting an error when trying to pay affiliates

  • Posts: 9
  • Thank you received: 0
5 years 7 months ago #297212

-- HikaShop version -- : 5.5.1
-- Joomla version -- : 3.8.11
-- PHP version -- : 5.6.37
-- Browser(s) name and version -- : Chrome 68.0.3440.106
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Class 'Text' not found in /administrator/components/com_hikashop/views/user/tmpl/pay.php on line 19

When I click on the pay now button, I get this error - Fatal error: Class 'Text' not found in /administrator/components/com_hikashop/views/user/tmpl/pay.php on line 19

The affiliate payment process worked fine until we updated to HikaShop 3.5.1...

Thanks in advance for your assistance...

Blessings,
Rufus

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 7 months ago #297214

Hello,

Thank you for the report.
You can re-download HikaShop 3.5.1 package (not 5.5.1) to get the fix.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 9
  • Thank you received: 0
5 years 7 months ago #297223

Sorry, for the type-o and confusion... We are using HikaShop version 3.5.1, not 5.5.1.

Thanks,

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
5 years 7 months ago #297237

Hi,

Note that there was a mis communication on our end and the package was only updated now on our end. So if you downloaded it before, you need to download it again and install it again to get the patch.

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

  • Posts: 9
  • Thank you received: 0
5 years 7 months ago #297274

Hello Nicolas,

Downloaded and installed the latest version (3.5.1) of HikaShop as of yesterday and still getting the same error...

Rufus

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

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
5 years 7 months ago #297285

Hello,

the best way to progress on the subject, you have to go directly to the file (\YourWebSite\administrator\components\com_hikashop\views\user\tmpl\pay.php) and check that you have this around line 2 to 12 :

<form action="index.php?option=com_hikashop&ctrl=user" method="post" name="adminForm" id="adminForm">
<?php
echo JText::sprintf('PAY_X_TO_X', $this->currencyHelper->format($this->user->accumulated, $this->user->user_currency_id), @$this->user->name.' ('.$this->user->user_partner_email.')') .
'<br/>';
echo JText::sprintf('REDIRECTION_FOR_PAYMENT', $this->method) .
'<br/>';
echo JHTML::_('hikaselect.booleanlist', "pay", '', 0) .
'<br/>';
echo JText::_('AFFILIATE_PAYMENT_WARNING') .
'<br/>';
?>


And if not, and especially the red part, correct it to have the same code and see if that solve your issue.

Regards

Last edit: 5 years 7 months ago by Philip.

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

  • Posts: 9
  • Thank you received: 0
5 years 7 months ago #297324

Hello Philip,
I changed the part of the code which was different:
from echo Text::_('AFFILIATE_PAYMENT_WARNING') . to echo JText::_('AFFILIATE_PAYMENT_WARNING') .
This edit cleared the error, however the process does not continue once the proceed button is clicked. Displays a message - WARNING ! Turning on this option will disable HikaShop pages on your website frontend !
When I click ok it does nothing...
Please advise...

Rufus

Attachments:

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

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
5 years 7 months ago #297337

Hello,

Can you provide elements to be able to reproduce your issue on your website ?
Like affiliate account references and a step by step process.

Note : Use our Contact us form to provide secret references and don't forget to add in your message an Url link to this topic.

Awaiting news from you.

Regards

Last edit: 5 years 7 months ago by Philip.

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
5 years 7 months ago #297375

Hi,

We were able to reproduce that new issue and made a patch again.
Download again the install package on our website and install it on yours and you'll get that patch too.
Alternatively, in that same file, you can change the line:

<input type="button" name="pay_confirm" class="btn" value="<?php echo JText::_('PROCEED');?>" onclick="if(alert('<?php echo JText::_('STORE_OFFLINE_WARNING',true); ?>')){ document.adminForm.submit(); } else { return fase; }" />
to:
<input type="button" name="pay_confirm" class="btn" value="<?php echo JText::_('PROCEED');?>" onclick="if(confirm('<?php echo JText::_('PROCESS_CONFIRMATION',true); ?>')){ document.adminForm.submit(); } else { return false; }" />

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

  • Posts: 9
  • Thank you received: 0
5 years 7 months ago #297382

Thanks Nicolas,
Problem solved...
You guys are the greatest!!!

Blessings!
Rufus

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

Time to create page: 0.070 seconds
Powered by Kunena Forum