Fatal error: Cannot redeclare pollMonitoredInboxesCustomAOP

Hi,

My Scheduler & standard jobs were running fine, however now running latest version Version 7.2.0 Sugar Version 6.5.20 (Build 1001) (upgrade from previous 7.1) on WAMP, PHP 5.3.9, Apache 2.2.21, I now get this error message immediately after clicking Admin, Schedulers.

Fatal error: Cannot redeclare pollMonitoredInboxesCustomAOP() (previously declared in C:\wamp\www\sugar\custom\modules\Schedulers_AddJobsHere.php:41) in C:\wamp\www\sugar\custom\modules\Schedulers\Ext\ScheduledTasks\scheduledtasks.ext.php on line 240
Call Stack

Time Memory Function Location

1 0.0002 679416 {main}( ) …\index.php:0
2 0.1290 25226792 SugarApplication->execute( ) …\index.php:49
3 0.1616 28500360 SugarController->execute( ) …\SugarApplication.php:92
4 0.1668 29456376 SugarController->processView( ) …\SugarController.php:295
5 0.1802 32279288 SugarView->process( ) …\SugarController.php:348
6 0.2859 36357624 SchedulersViewList->display( ) …\SugarView.php:143
7 0.2859 36357624 ViewList->display( ) …\view.list.php:48
8 0.2859 36357624 ViewList->listViewPrepare( ) …\view.list.php:268
9 0.2865 36364832 ViewList->prepareSearchForm( ) …\view.list.php:160
10 0.2908 37071712 SearchForm->setup( ) …\view.list.php:222
11 0.2908 37072336 SearchForm->_build_field_defs( ) …\SearchForm2.php:117
12 0.2910 37101024 call_user_func_array ( ) …\SearchForm2.php:444
13 0.2910 37101280 Scheduler::getJobsList( ) …\SearchForm2.php:444
14 0.2919 37333792 include_once( ‘C:\wamp\www\sugar\modules\Schedulers_AddJobsHere.php’ ) …\Scheduler.php:1003

Also running my Windows batch file (which hasnt changed and was working) to collect email now also fails with a similar error - which must be related…

0.3643 35762256 5. require_once(‘C:\wamp\www\sugar\modules\Schedulers_AddJobsHere.php’) c:\wamp\www\sugar\modules\SchedulersJobs\SchedulersJob.php:503

Im guessing this can be fixed in the PHP?

Thanks

Hi,

We’re having the same problem here on LAMP:

/usr/bin/php -f cron.php 2>&1                                                                                                                                                               :(
PHP Notice:  Undefined index: module in /var/www/modules/AOW_WorkFlow/AOW_WorkFlow.php on line 134
PHP Notice:  Undefined index: module in /var/www/modules/AOW_WorkFlow/AOW_WorkFlow.php on line 134
PHP Fatal error:  Cannot redeclare pollMonitoredInboxesCustomAOP() (previously declared in /var/www/custom/modules/Schedulers/_AddJobsHere.php:43) in /var/www/custom/modules/Schedulers/Ext/ScheduledTasks/scheduledtasks.ext.php on line 287
PHP Notice:  Undefined index: module in /var/www/modules/AOW_WorkFlow/AOW_WorkFlow.php on line 134

(SuiteCRM 7.2 upgrade from 7.1.x )

Also the scheduler page and create new schedule jobs page are empty:

Please advise

Best regards,
Christoph

I had the same problem. I found this solution.

https://w.opensourceawards.org/forum/suitecrm-beta/3566-mariadb-with-beta-scheduler-errors

Upgrading to SuiteCRM 7.2.1 will resolve your scheduler bugs/issues.