by Fanatical Labs

Save Your Team Countless Hours. SugarChimp syncs your lists in both directions so that you can work in your preferred application. Segment and Group your MailChimp subscribers based on SugarCRM data so you can market to the right people at the right time. Fully compatible with all versions and editions of Sugar and SuiteCRM.

Cancel at any time!
Free Trial

#714 - Cannot call the function SugarChimp

Closed Bug? created by bini00 5 years ago

Hey there

i have installed this plugin but the scheduler for sugarchimp doesnt seem to work. --> part of Logfile
I think its the same error like this: https://www.sugaroutfitters.com/support/sugarchimp/630

What can I do?

[DEBUG] ----->SchedulersJob calling function: SugarChimp
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Resolving job cd8c39f7-2ab8-ab07-e10b-53e88055e149 as failure: Kann diese Funktion nicht aufrufen: SugarChimp
Mon Aug 11 10:36:14 2014 [12606][1][DEBUG] Hook called: SchedulersJobs::job_failure
Mon Aug 11 10:36:14 2014 [12606][1][DEBUG] Loading Preferences DB kkroll
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Query:SELECT contents FROM user_preferences WHERE assigned_user_id='1' AND category = 'global' AND deleted = 0
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Query Execution Time:0.0020170211791992
Mon Aug 11 10:36:14 2014 [12606][1][DEPRECATED] Formatting correction: SchedulersJobs->failure_count had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Mon Aug 11 10:36:14 2014 [12606][1][DEBUG] Hook called: SchedulersJobs::before_save
Mon Aug 11 10:36:14 2014 [12606][1][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Query:UPDATE job_queue
                    SET assigned_user_id='1',name='SugarChimp',date_modified='2014-08-11 08:36:14',scheduler_id='c16d0e4e-52ae-4dd6-5823-53e87f2a783a',execute_time='2014-08-11 08:36:00',status='done',resolution='failure',message='Kann diese Funktion nicht aufrufen: SugarChimp\n',target='function::SugarChimp',data=NULL,requeue=0,retry_count=NULL,failure_count=1,job_delay=0,client='CRONAhs5s8dm53P7h8rX628%:12606',percent_complete=NULL
                     WHERE job_queue.id = 'cd8c39f7-2ab8-ab07-e10b-53e88055e149' AND deleted=0
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Query Execution Time:0.0018379688262939
Mon Aug 11 10:36:14 2014 [12606][1][DEBUG] SecuritySuite: Get SecuritySuite Enabled Modules: SELECT lhs_module, rhs_module FROM relationships WHERE deleted=0 AND (lhs_module = 'SecurityGroups' OR rhs_module='SecurityGroups')
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Query:SELECT lhs_module, rhs_module FROM relationships WHERE deleted=0 AND (lhs_module = 'SecurityGroups' OR rhs_module='SecurityGroups')
Mon Aug 11 10:36:14 2014 [12606][1][INFO] Query Execution Time:0.00096297264099121
Mon Aug 11 10:36:14 2014 [12606][1][DEBUG] Hook called: SchedulersJobs::after_save
Mon Aug 11 10:36:14 2014 [12606][1][DEBUG] Creating new instance of hook class AssignGroups without parameters
Mon Aug 11 10:36:14 2014 [12606][1][FATAL] Job cd8c39f7-2ab8-ab07-e10b-53e88055e149 (SugarChimp) failed in CRON run

Thank you and best regards

Stefan

  1. fanaticallabs member avatar

    Fanatical Labs Provider Affiliate

    5 years ago

    Hi Stefan, sorry for the issue. There are a couple things that we can check to see what the issue is.

    1) Can you confirm that you are running PHP 5.3 or higher? If you are not running PHP 5.3 or higher, SugarChimp will not function. You will need to upgrade before using SugarChimp.

    2) If you go to custom/modules/Schedulers/Ext/ScheduledTasks/scheduledtasks.ext.php do you see a line that has the following code "function SugarChimp()"? If not, try running a Quick Repair & Rebuild in Sugar (Admin > Repair). Then check the file again to see if it exists. If it still doesn't exist, let me know.

    Thanks!

  2. bini00 member avatar

    bini00

    5 years ago

    Hey,

    thank you for the fast answer.

    1) Yes I can confirm that PHP runs in version 5.4.17
    2) You are right, there is no line "function SugarChimp", even if i make a rebuild. Should I delete this file?

    Thank you and best regards

    • fanaticallabs member avatar

      Fanatical Labs Provider Affiliate

      5 years ago

      1) Very good, glad to see more PHP 5.4s running out there :)

      2) That's pretty interesting. I would backup the file and then delete the file and run a repair and rebuild to see if it's regenerated. You'll then need to check if the "function SugarChimp" line exists.

      If it still doesn't exist, you can manually add it by unzipping the installable SugarChimp package, and find the file extensions/custom/modules/Schedulers/ScheduledTasks/SugarChimp.php You'll want to copy and paste the entire file (except for line 1 with the <?php) to the bottom of your custom/modules/Schedulers/Ext/ScheduledTasks/scheduledtasks.ext.php file.

      If this file is not getting regenerated on repair and rebuilds, you're probably safe that this won't change that much, but doing it this way may cause issues down the road where this change will disappear if the file does happen to get rebuilt. There are probably underlying permission issues that are preventing this from being updated.

      Let me know how it goes. Thanks!

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "Does a great job of syncing all of our registrant information. They go the extra mile with one-on-one support!"

    Read More Reviews

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.