HTTP: 500 Internal Server Error Invalid subscription json data

Dear Team,

I have Upgraded our sugar CRM 11.0.6 to 12.0.3 & we are Getting CRM after login screen (

HTTP: 500 Internal Server Error

Invalid subscription json data

Please help what can i do for this issue 

  • I attached httpd log, php log, sugarcrm log respectively , for your reference -

    httpd Log --

    [Tue May 07 09:31:06.261326 2024] [http2:warn] [pid 2441] AH02951: mod_ssl does not seem to be enabled
    [Tue May 07 09:31:06.281817 2024] [mpm_prefork:notice] [pid 2441] AH00163: Apache/2.4.41 () configured -- resuming normal operations
    [Tue May 07 09:31:06.281868 2024] [core:notice] [pid 2441] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    [Tue May 07 10:33:50.764321 2024] [proxy_fcgi:error] [pid 2518] (70007)The timeout specified has expired: [client 10.134.75.181:62174] AH01075: Error dispatching request to : (polling), referer: 192.168.147.150/.../
    [Tue May 07 11:03:26.341279 2024] [mpm_prefork:notice] [pid 2441] AH00170: caught SIGWINCH, shutting down gracefully
    [Tue May 07 11:03:32.657099 2024] [suexec:notice] [pid 21280] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue May 07 11:03:32.670012 2024] [lbmethod_heartbeat:notice] [pid 21280] AH02282: No slotmem from mod_heartmonitor
    [Tue May 07 11:03:32.670077 2024] [http2:warn] [pid 21280] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
    [Tue May 07 11:03:32.670082 2024] [http2:warn] [pid 21280] AH02951: mod_ssl does not seem to be enabled
    [Tue May 07 11:03:32.674263 2024] [mpm_prefork:notice] [pid 21280] AH00163: Apache/2.4.41 () configured -- resuming normal operations
    [Tue May 07 11:03:32.674293 2024] [core:notice] [pid 21280] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    [Tue May 07 12:01:03.615213 2024] [mpm_prefork:notice] [pid 21280] AH00170: caught SIGWINCH, shutting down gracefully
    [Tue May 07 12:01:09.973935 2024] [suexec:notice] [pid 31567] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue May 07 12:01:09.991655 2024] [lbmethod_heartbeat:notice] [pid 31567] AH02282: No slotmem from mod_heartmonitor
    [Tue May 07 12:01:09.991707 2024] [http2:warn] [pid 31567] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
    [Tue May 07 12:01:09.991712 2024] [http2:warn] [pid 31567] AH02951: mod_ssl does not seem to be enabled
    [Tue May 07 12:01:09.995238 2024] [mpm_prefork:notice] [pid 31567] AH00163: Apache/2.4.41 () configured -- resuming normal operations
    [Tue May 07 12:01:09.995269 2024] [core:notice] [pid 31567] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    PHP Log --

    [07-May-2024 05:56:44 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 881
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 881
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 881
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 881
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 881
    [07-May-2024 05:56:45 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:46 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 881
    [07-May-2024 05:56:46 UTC] PHP Warning: Undefined array key "quantity" in /var/www/html/sugarcrm/include/Entitlements/SubscriptionManager.php on line 882
    [07-May-2024 05:56:48 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/sugarcrm/modules/dg_SLA_History/dg_SLA_History_sugar.php on line 19
    [07-May-2024 05:56:48 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/sugarcrm/ModuleInstall/ModuleScanner.php on line 1128
    [07-May-2024 06:33:28 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/sugarcrm/custom/modules/Leads/clients/base/layouts/convert-main/convert-main.php on line 1
    [07-May-2024 06:36:41 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/sugarcrm/modules/dg_SLA_History/clients/base/filters/basic/basic.php on line 1
    [07-May-2024 06:38:28 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/sugarcrm/cache/modules/dg_SLA_History/dg_SLA_Historyvardefs.php on line 3
    [07-May-2024 06:39:16 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/sugarcrm/include/SubPanel/SubPanelDefinitions.php on line 696



    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    SgarCRM Log --

    Tue May 7 08:04:02 2024 [15947][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:04:02 2024 [15947][1][FATAL] Job 5dfd9d26-0c48-11ef-b6a4-0217b7a1b466 (Hint News Job) failed in CRON run, Job 5dfd9d26-0c48-11ef-b6a4-0217b7a1b466 (Hint News Job) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:04:02 2024 [15947][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:04:02 2024 [15947][1][FATAL] Job 5e1f24a0-0c48-11ef-b134-0217b7a1b466 (Hint Init Job) failed in CRON run, Job 5e1f24a0-0c48-11ef-b134-0217b7a1b466 (Hint Init Job) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:04:02 2024 [15947][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:04:02 2024 [15947][1][FATAL] Job 5e232e56-0c48-11ef-8930-0217b7a1b466 (Hint Register Config Job) failed in CRON run, Job 5e232e56-0c48-11ef-8930-0217b7a1b466 (Hint Register Config Job) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:01 2024 [16094][1][FATAL] Job runs too frequently, throttled to protect the system.
    Tue May 7 08:05:02 2024 [16088][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] Job 81466b5a-0c48-11ef-8bbe-0217b7a1b466 (Apply Subscription Entitlements When They Are Changed) failed in CRON run, Job 81466b5a-0c48-11ef-8bbe-0217b7a1b466 (Apply Subscription Entitlements When They Are Changed) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] Job 816a84a4-0c48-11ef-9ae5-0217b7a1b466 (Hint News Job) failed in CRON run, Job 816a84a4-0c48-11ef-9ae5-0217b7a1b466 (Hint News Job) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] Job 816ea3fe-0c48-11ef-96c6-0217b7a1b466 (Hint Init Job) failed in CRON run, Job 816ea3fe-0c48-11ef-96c6-0217b7a1b466 (Hint Init Job) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] /var/www/html/sugarcrm/modules/SchedulersJobs/SchedulersJob.php Error: 8192: Creation of dynamic property SchedulersJob::$errors is deprecated
    Tue May 7 08:05:02 2024 [16088][1][FATAL] Job 81728924-0c48-11ef-b456-0217b7a1b466 (Hint Register Config Job) failed in CRON run, Job 81728924-0c48-11ef-b456-0217b7a1b466 (Hint Register Config Job) failed, errstr: Creation of dynamic property SchedulersJob::$errors is deprecated

  • Hi  ,

    it seems to be a memory exhaustion... try to increase your memory allocation on php.ini 

    memory_limit = 1024M
    

    SugarCRM | Principal Developer Advocate

  • In Linux systems the scheduler jobs normally use a php setting "cli" which is different from the "apache" setting.

    The default memory size for the cli setting is often 128M. So, be sure to change the php.ini for the cli setting to this 1024M

  • you can point the same custom init to both , that will solve the issue on Sugarcrm configuration. 

    Rodrigo Manara

    Sr. Developer