Forum

V9.2.0 Notification...
 
Notifications
Retirer tout

V9.2.0 Notification definition: undefined class name index

4 Posts
2 Utilisateurs
0 Reactions
2,269 Vu
(@yalovali)
Posts: 7
Active Member
Début du sujet
 
[#7604]

Hi,
Problem occurs when I want to define a notificatoion definition for an opportunity. It gives the error:
ERROR : An error occurred on 2021-06-30 at 12:31:10

On the log side, I got line:
2021-06-30 12:20:48.391 ** ERROR ** [V9.2.0] ERROR **
2021-06-30 12:20:48.391
** ERROR ** [V9.2.0] on file '/var/www/html/model/NotificationDefinition.php' at line (1314)
2021-06-30 12:20:48.391
** ERROR ** [V9.2.0] cause = Undefined index: Opportunity_id

On php side, (with a line of mine to see the objClass Keys)
  1314         errorLog('Keys:'.implode(',',array_keys($objClass)));   notifiedObjectId = $objClass[$className.'_id'];^M

It seems like an upper/lower case problem. But I am reluctant to touch more php code, i am not that qualified with php... 🙂

2021-06-30 12:31:10.421 ** ERROR ** [V9.2.0] Keys:opportunity_id,opportunity_initialenddate,opportunity_iduser
2021-06-30 12:31:10.421
** ERROR ** [V9.2.0] ERROR **
2021-06-30 12:31:10.421 ** ERROR ** [V9.2.0] on file '/var/www/html/model/NotificationDefinition.php' at line (1315)
2021-06-30 12:31:10.421 ** ERROR ** [V9.2.0] cause = Undefined index: Opportunity_id

 


 
Posté : 30/06/2021 1:37 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

I cannot reproduce.
Are you using MySql or Postgres ?
Could you post screenshot of the notification definition you try and insert ?


 
Posté : 02/07/2021 1:24 pm
(@yalovali)
Posts: 7
Active Member
Début du sujet
 

Hello,
My database is postgresql.

About the ticket i have opened, while trying to repeat it for you i figured out that, it repeats only if RULE is empty. 
So I think it is my misuage of the screen.

Any way, the related logs when rule field is empty, are as follows:
2021-07-02 14:34:51.942 ** ERROR ** [V9.2.0] ERROR **
2021-07-02 14:34:51.942
** ERROR ** [V9.2.0] on file '/var/www/html/model/NotificationDefinition.php' at line (1314)
2021-07-02 14:34:51.942
** ERROR ***** [V9.2.0] cause = Undefined index: Opportunity_id

ENTER SOMETHING AS RULE, and no log is created.

 


 
Posté : 02/07/2021 3:49 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Still cannot reproduce but I think I found a fix.
Will be deployed on V.9.2.2


 
Posté : 08/07/2021 5:30 pm
Share:
Retour en haut