when auction is finished on php 8.0 no email is triggered to be sent

  • Posts: 412
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
1 year 9 months ago #350094

-- HikaShop version -- : 4.7.1
-- HikaAuction version -- : 3.2.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 7.4

Hello,

I need some help with the hikaauction. I made an action, clicked on the cron job url, first i got an email as admin and as user, with link toward shopping cart. Nice and fine.. But when moving up to php 8.0 cron is executing but no email is sent. is hika auction fully php 8.0 ready? or do i miss something?
I turned back tot php7.4 emails are triggered but now in the winner auction mail but the link towards shopping cart is gone?? i did not touch the emails.. so help please.. :)

Thanks

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 year 9 months ago #350097

Hi,

We have at least several merchants using HikaAuction on PHP8.

What you're describing means that there is a fatal error on PHP 8 during the sending of the emails. But it's hard to say where without the error message.
Normally, if you check the PHP error log of your server, you should find the error messages.
Otherwise, you can temporarily switch to PHP8 again, activate the debug option of the Joomla configuration and manually trigger the cron by opening the URL of the cron in the browser to get the error message directly displayed.

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

  • Posts: 412
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
1 year 9 months ago #350220

Hi

What i discovered was the following. When i set the server on PHP80 i get 2 emails:
1. cron is executed
2. from the server cronjob:

--2023-03-17 15:00:02--  http://www.royal-stamps.com/mycron.php
Resolving www.royal-stamps.com (www.royal-stamps.com)... 2a06:2ec0:ded1:1:0:120:451:1, 185.220.174.94 Connecting to www.royal-stamps.com (www.royal-stamps.com)|2a06:2ec0:ded1:1:0:120:451:1|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.royal-stamps.com/index.php?option=com_hikashop&ctrl=cron [following]
--2023-03-17 15:00:02--  https://www.royal-stamps.com/index.php?option=com_hikashop&ctrl=cron
Connecting to www.royal-stamps.com (www.royal-stamps.com)|2a06:2ec0:ded1:1:0:120:451:1|:443... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2023-03-17 15:00:04 ERROR 500: Internal Server Error.
When i set server on PHP74 i get 3 emalis
1. cron is executed
2. Auction Winner notification
3. from the server cron:
--2023-03-17 14:50:01--  http://www.royal-stamps.com/mycron.php
Resolving www.royal-stamps.com (www.royal-stamps.com)... 2a06:2ec0:ded1:1:0:120:451:1, 185.220.174.94 Connecting to www.royal-stamps.com (www.royal-stamps.com)|2a06:2ec0:ded1:1:0:120:451:1|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.royal-stamps.com/index.php?option=com_hikashop&ctrl=cron [following]
--2023-03-17 14:50:01--  https://www.royal-stamps.com/index.php?option=com_hikashop&ctrl=cron
Connecting to www.royal-stamps.com (www.royal-stamps.com)|2a06:2ec0:ded1:1:0:120:451:1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/dev/null’

     0K                                                        8.80M=0s

2023-03-17 14:50:03 (8.80 MB/s) - ‘/dev/null’ saved [136]

And on PHP 80 when i execute url in browser
I see only 0 - Unknown format specifier "C" in the middel of the screen while on top cron exectued?

Hope you can help.
Mark

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 year 9 months ago #350225

Hi,

The "500 Internal Server Error" confirms that there is a PHP error somewhere.
In such case, PHP will output an error message, AND will log the error message in the PHP error log.
So if you can look into the PHP error log, you'll find the "fatal error" message relative to the issue and that will allow us to tell you what to do.
You can also run the cron URL in the browser. The message "0 - Unknown format specifier "C"" is the abreviated error message. This is what Joomla displays when the "debug" setting of the Joomla configuration is turned off.
Did you make sure to activate that setting before running the cron URL in your browser ?
Also, some templates have a custom error page, hiding the full error message. So if you don't get the full error message even though you have the debug setting activated, please rename the file templates/YOUR_TEMPLATE/error.php via FTP and try again.

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

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