Mass Action stopped working

  • Posts: 425
  • Thank you received: 3
  • Hikashop Business
4 years 11 months ago #215343

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4
-- Error-message(debug-mod must be tuned on) -- : none

Hi I have been using a mass action for quite a while now and for the last 2 days it has stopped working? when applying the action the page just goes blank and hangs? see below my configuration


.

Attachments:

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

  • Posts: 24396
  • Thank you received: 3757
  • MODERATOR
4 years 11 months ago #215344

Hi,

If you have a full blank page ; please check your PHP error log because you should have a PHP fatal error.
Just like that and regarding your screenshot, I could suppose that you have an override for the notification email and that override might contains an error.

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: 425
  • Thank you received: 3
  • Hikashop Business
4 years 11 months ago #215385

Hi Jerome,
Yes I have added this (with the correct email address) that I found in a post.

<?php if($data->order_status=="confirmed"){ $mail->bcc_email = 'xyz@xyz'; } ?>

I guess this is preventing it from working correctly? what I have noticed is that is does change the status of 1 order then freezes, is there some more code needs adding to prevent this?

thanks

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

  • Posts: 70485
  • Thank you received: 10576
  • MODERATOR
4 years 11 months ago #215387

Hi,

Turn on the "error reporting" and "debug mode" setting of the Joomla configuration. That should display an error message on the blank page when you process the mass action. Please provide it and we"ll be able to tell you what's going on.
The issue is probably that the mass action system finds too many orders and sending emails can take a lot of work on the server, so above a few orders to process at the same time, it will crash if the server's restrictions on memory and execution time are too low. A simple solution in that case is to reduce the limit value of your mass action (the 100 value) to only a few orders (2 or 3 for example) and that should then work properly if the issue comes from that.

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

  • Posts: 425
  • Thank you received: 3
  • Hikashop Business
4 years 11 months ago #215441

Hi Orders are never greater than 20 at a time. Here are 2 screen dumps of the errors.



Attachments:

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

  • Posts: 70485
  • Thank you received: 10576
  • MODERATOR
4 years 11 months ago #215448

Hi,

The error message says that you've modified the html version of the order status notification email incorrectly and broke it. So when the system tries to send the email, it crashes.

Fix your modifications there or remove the customization of that email and it will work.

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

  • Posts: 425
  • Thank you received: 3
  • Hikashop Business
4 years 11 months ago #215516

Hi, Ok then, I found this in a post form you stating to put it in that email in HTML (with the correct email address of course)

<?php if($data->order_status=="confirmed"){ $mail->bcc_email = 'xyz@xyz'; } ?>

So where in the HTML should it be placed for it to work correctly?

thanks

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

  • Posts: 24396
  • Thank you received: 3757
  • MODERATOR
4 years 11 months ago #215536

Hi,

You should not place the code in another "<?php ?>" block.
Otherwise you have to remove the "<?php" and the "?>" in your code line ; which delimit the PHP code content.

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: 425
  • Thank you received: 3
  • Hikashop Business
4 years 11 months ago #215711

Thanks Jerome, I really should have known that, bit of a school boy error on my part.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum