Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

V9.2.0 Notification...
 
Notifications
Clear all

V9.2.0 Notification definition: undefined class name index

4 Posts
2 Users
0 Reactions
2,285 Views
(@yalovali)
Posts: 7
Active Member
Topic starter
 
[#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

 


 
Posted : 30 Jun 2021 13H37
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

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


 
Posted : 02 Jul 2021 13H24
(@yalovali)
Posts: 7
Active Member
Topic starter
 

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.

 


 
Posted : 02 Jul 2021 15H49
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

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


 
Posted : 08 Jul 2021 17H30
Share:

Scroll to Top