the Cron URL to send emails when an auction is won does not work.

  • Posts: 1
  • Thank you received: 0
  • Hikaauction Standard
1 month 2 weeks ago #359723

-- url of the page with the problem -- : laremateria.com
-- HikaShop version -- : 5.0.2
-- HikaAuction version -- : 4.0.0
-- Joomla version -- : 4.4.2
-- PHP version -- : 8.1.9
-- Browser(s) name and version -- : Google Chrome 122.0.6261.112
-- Error-message(debug-mod must be tuned on) -- : # Function Location
1 () JROOT/libraries/src/Language/Text.php:281
2 sprintf() JROOT/libraries/src/Language/Text.php:281
3 Joomla\CMS\Language\Text::sprintf() JROOT/media/com_hikaauction/mail/auction_finished_winner_notification.preload.php:25
4 include() JROOT/administrator/components/com_hikashop/classes/mail.php:189
5 hikashopMailClass->loadEmail() JROOT/administrator/components/com_hikaauction/classes/mail.php:161
6 hikaauctionMailClass->load() JROOT/administrator/components/com_hikaauction/classes/mail.php:71
7 hikaauctionMailClass->queueProcess() JROOT/administrator/components/com_hikaauction/classes/cron.php:117
8 hikaauctionCronClass->doQueueTask() JROOT/administrator/components/com_hikaauction/classes/cron.php:58
9 hikaauctionCronClass->executeCron() JROOT/components/com_hikaauction/controllers/cron.php:31
10 cronAuctionController->executeCron() JROOT/libraries/src/MVC/Controller/BaseController.php:693
11 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_hikaauction/hikaauction.php:81
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:361
15 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
16 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
17 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
18 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
19 require_once() JROOT/index.php:32

When changing the language on the frontend to Spanish, the Cron URL to send emails when an auction is won does not work.

But when I change the language on the frontend to English it works correctly.

Only that the page has to be in Spanish since the users are from Mexico and that makes it impossible to leave it in English.

On the other hand, as you can see in the photos, I installed the Spanish language in the CMS and in the hikashop component as well as in hikaauctions according to how instructed in the tutorials.

Attachments:

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 month 2 weeks ago #359724

Hi,

HikaAuction has no language file for Spanish so far.
And if I check the file where the error happens, it says that the issue is with the text for the translation key AUCTION_FINISHED_WINNER_EMAIL_MESSAGE which is a translation key of HikaAuction.
So what that means is that you probably made a translation override for AUCTION_FINISHED_WINNER_EMAIL_MESSAGE for the Spanish language in order to translate the text but you made a mistake in it regarding the %s
Here is the English one:

AUCTION_FINISHED_WINNER_EMAIL_MESSAGE="The auction of the product '<a href=\"%s\" >%s</a>' in which you have participated is finished. Congratulations, you won the auction for %s."
As you can see, there are exactly three %s. Yours for the Spanish must have either too much or not enough %s.
Since you didn't provide the error message, only the call stack, I can't say which one for sure.

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

Moderators: Mohamed Thelji
Time to create page: 0.075 seconds
Powered by Kunena Forum