Menu

SuiteCRM Master Classes 2018

Welcome, Guest
Username: Password: Remember me

TOPIC: notifications / alerts not working suiteCRM

notifications / alerts not working suiteCRM 1 week 1 day ago #67876

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
Hi, i'm work with suiteCRM version 7.9.17 but i have problems on notification and alerts, the bell it does not activate to remember the scheduled calls among other things, i checked the log and find this error

PHP Fatal error: Cannot redeclare padNumbers() (previously declared in /home/sysgocom/public_html/tvg_crm/include/SugarFields/Fields/CronSchedule/SugarFieldCronSchedule.php:41) in /home/sysgocom/public_html/tvg_crm/include/SugarFields/Fields/CronSchedule/SugarFieldCronSchedule.php on line 41

but i don´'t now if maybei is this problem.

someone has had the same problem or could they tell me if I forgot to act something :(
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 1 week 16 hours ago #67893

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
Do you have these changes in your code?

github.com/salesagility/SuiteCRM/pull/5443/files

they were supposed to fix it...
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 1 week 13 hours ago #67912

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
It does not have those changes my code appears like this:

$this->ss->assign('weekday_vals',json_encode($weekdays));
$this->ss->assign('weekdays',get_select_options($weekdays,''));
$days = $this->getDays();
$this->ss->assign('days',get_select_options($days,''));
function padNumbers($x){
return str_pad($x,2,'0',STR_PAD_LEFT);
}
$minutes = array_map('padNumbers',range(0,59));
$hours = array_map('padNumbers',range(0,23));
$this->ss->assign('minutes',get_select_options($minutes,''));
$this->ss->assign('hours',get_select_options($hours,''));
Last Edit: 1 week 13 hours ago by oAnbin.
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 1 week 12 hours ago #67923

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
Can you try applying them and tell us if it fixes your problem? Meanwhile I'm trying to figure out why the fix isn't in your version 7.9.17...
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 1 week 6 hours ago #67942

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
I made the change, but the notification bell still does not work, I have desktop notifications activated.
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 6 days 19 hours ago #67946

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
Ok, but did the error in the logs go away?

And in Admin / Schedulers, the Reminders job, does it show "Last ran successfully" when? Is it recent? Does the time zone look correct to you?
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 4 days 11 hours ago #68006

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
The error disappeared, the modification seems to work,

but i don´t find the option of Reminders job, can you indicate where this it.
[img size=1348X2718]drive.google.com/file/d/1L1s4SvXIByonLCfZF9NhbkakpOI4m71U/view[/img]
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 4 days 10 hours ago #68010

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
In English it's Admin / Schedulers, as I wrote above. You'll have to figure it out in Spanish, or log in to your system in English.
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 4 days 7 hours ago #68020

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
I found the option of Schedulers but I do not see the option of Reminders job, change of name in this version?
[img size=1366X768]drive.google.com/file/d/1klAvTItTMruVFRi...Hgb/view?usp=sharing[/img]
Last Edit: 4 days 7 hours ago by oAnbin.
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 4 days 6 hours ago #68021

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
Run Email Reminders Notifications (even for the reminders that are not via email)
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 4 days 6 hours ago #68025

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
ok, this is the configuration

[img size=1366X730]drive.google.com/file/d/1R4T1pFKo3MNGO6_...S79/view?usp=sharing[/img]

"Last ran successfully": is never, time zone it seems right
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 2 days 10 hours ago #68122

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
Check the other jobs. Do they all have "last ran successfully" as never, or as a long time ago? If yes, then your problem is that cron.php is probably not running.

If the only job with problems is this one, then you should look for error messages in the logs (php_errors.log and suitecrm.log)
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 2 days 6 hours ago #68136

  • oAnbin
  • oAnbin's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Karma: 0
The "last ran successfully" as never in all,but I already added the cron.php to my cronjobs of my cpanel.
Also check suitecrm.log and error_log and show me this:

-suitecrm.log:
[442466][-none-][FATAL] cron.php: running as is not allowed in allowed_cron_users in config.php. Exiting.

The error does not show me the current username

-error_log

PHP Fatal error: Uncaught exception 'Exception' with message 'cron.php running with user that is not in allowed_cron_users in config.php' in /home/[user]/public_html/tvg_crm/include/utils.php:1762
Stack trace:
#0 /home/[user]/public_html/tvg_crm/cron.php(65): sugar_die('cron.php runnin...')
#1 {main}
thrown in /home/[user]/public_html/tvg_crm/include/utils.php on line 1762

but already modify the config.php file in allowed_cron_users
The administrator has disabled public write access.

notifications / alerts not working suiteCRM 1 day 18 hours ago #68151

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 6511
  • Thank you received: 1005
  • Karma: 229
This is quite strange, but there is another person right now (on the Spanish forums) with the exact same problem as yours... and it's also 7.9.17...

Are you on Windows or Linux? Which Linux?

Which version of PHP?

Your own server, or shared hosting?

Thanks
The administrator has disabled public write access.
Moderators: disytel
Time to create page: 0.073 seconds
Powered by Kunena Forum