jorge

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Recurring invoices #1323
    jorge
    Participant

    I’ve made another fix, as this led to break the “normal” invoice e-mail functionality. So now I check that the $to variable is an array before converting it:

     public function setTo($to)
        {
            if (is_array ($to)){
             $to = implode(";", $to);
            }
    ...
    
    in reply to: Recurring invoices #1322
    jorge
    Participant

    Hello, I managed to make it work:

    In Inc/Claz/Email.php

    function setTo($to)

    is assuming that $to is a string, but it has already been converted to array in previous function at Cron.php (getEmailSendAddresses).

    To make it work I added $to = implode(“;”, $to); to the begining of setTo function:

     public function setTo($to)
        {
             $to = implode(";", $to);
    
    in reply to: Recurring invoices #1314
    jorge
    Participant

    This is what the logs are saying:

    
    [12-Jan-2021 20:09:13 Europe/Madrid] PHP Notice:  Undefined index: tax_id in /var/www/vhosts/mydomain.es/httpdocs/fact2/Inc/Claz/Invoice.php on line 1344
    [12-Jan-2021 20:09:13 Europe/Madrid] PHP Warning:  explode() expects parameter 2 to be string, array given in /var/www/vhosts/mydomain.es/httpdocs/fact2/Inc/Claz/Email.php on line 424
    [12-Jan-2021 20:09:13 Europe/Madrid] PHP Warning:  array_filter() expects parameter 1 to be array, null given in /var/www/vhosts/mydomain.es/httpdocs/fact2/Inc/Claz/Email.php on line 424
    [12-Jan-2021 20:09:13 Europe/Madrid] PHP Notice:  Array to string conversion in /var/www/vhosts/mydomain.es/httpdocs/fact2/Inc/Claz/Email.php on line 435
    [12-Jan-2021 20:09:13 Europe/Madrid] Email::setTo() - Invalid TO address[Array]
    [12-Jan-2021 20:09:13 Europe/Madrid] to is empty
    [12-Jan-2021 20:09:13 Europe/Madrid] Email::send() - One or more required fields is missing

    the “To” field should not be empty, as there is an e-mail in the e-mail field of the client. My mail has a “.es” domain (Not sure if could be related).

    in reply to: Recurring invoices #1313
    jorge
    Participant

    Hmmm, it looks like there is something more.
    I have tried to create a new invoice to do the recurring, as I realized that I had done the testing with an imported one, but it doesn’t work.
    So I’m going to see what else is going on and I’ll keep you updated. Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)