sms not sending

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • czv
    replied
    fixed in new version. thanks

    Leave a comment:


  • item
    replied
    Hi,
    i am not sure,
    can you look log ?
    i have a custom smsSender .. who worked without issue...until upgrade php 8.3 i think. just see now.

    error log in my case is :
    InjectableFactory: Could not create 'Espo\Entities\Sms', the dependency 'entityType' is not resolved.;
    and with try
    Typed property Espo\Core\Sms\SmsSender::$sender must not be accessed before initialization

    Maybe try with advanced pack..

    espoCrm : 8.1.1
    php :
    8.3.2
    Edit : it's not php 8.3.2 .. 8.2.x do same error. i have forget on witch espoCrm version i have do this working..maybe 8 or last 7.x
    Edit 2 : same script work with $email = $this->emailFactory->create();

    Last edited by item; 01-31-2024, 10:44 PM.

    Leave a comment:


  • czv
    replied
    php version is PHP 8.3.2-1+ubuntu20.04.1+deb.sury.org+1
    Espocrm version Version 8.1.1
    SMS Providers 1.6.0

    Leave a comment:


  • victor
    replied
    Hi czv,

    Please elaborate:
    Which updates are we talking about?
    What versions of PHP, EspoCRM, SMS Providers extension are you using?
    Which SMS provider do you use?​

    Leave a comment:


  • czv
    started a topic sms not sending

    sms not sending

    Hello, after some update it doesn't send sms anymore

    bpmn script:
    $darbuotojas = assignedUser.name;
    $telefonas = assignedUser.phoneNumber;
    $rmaaktas = rmanr;
    $preke = rmamodel;
    $smsBody = string\concatenate(
    'RMA aktas: ', $rmaaktas, '\n',
    'Sveiki, Jūsų įrenginys ' , $preke,' užregistruotas remontui.', '\n',
    'Prekės priėmimo perdavimo aktas ir prisijungimas prie RMA portalo išsiųstas į Jūsų el. paštą. ', '\n',
    'Priskirtas darbuotojas: ', $darbuotojas, '\n',
    'Tel. Nr.: ', $telefonas, '\n'
    );

    $smsId = record\create(
    'Sms',
    'to', entity\attribute('contact.phoneNumber'),
    'body',$smsBody,
    'parentType', 'Remontai','parentId', id
    );
    ext\sms\send($smsId);​


    error code:

    [2024-01-31 12:24:23] ERROR: Process 65ba3bf7644b1ed8b element ha7a6v2x5s: Typed property Espo\Core\Sms\SmsSender::$sender must not be accessed before initialization

    please help
Working...