#3615 - SugarChimp does not sync to MailChimp
Hi SugarChimp-Team,
the hole installation worked "perfect". The module can see the list in sugar and in mailchimp. So I think sugarchimo can connct to mailchimp. But it dies not sync a sample list of contacts to mailchimp. I looked into the sceduler and the only thing I see where a problem can be is, there is no entry in a field where I have to enter a URL (after I clicked on edit).
my sugarCRM instance: SugarCRM Professional, Version 7.9.2.0 (Build 1090) - onpremise
my SugarChimp MailChimp Connection: yes SugarChimp Version: 7.11.0a SugarChimp Edition: ultimate
Last Ran: Has not run yet Interval: alle5Minuten Scheduler Status: Active view scheduler Your Webhook URL: https://mydomain.com/index.php?module=SugarChimp&entryPoint=SugarChimpWebhook
Any ideas?
Best Regards from Munich Germany, Daniel
6 years ago
Hello Daniel,
I believe you've got the right idea and most everything is working and connected as expected. The problem here is that your Sugar Scheduler is not running. Schedulers are your automated, behind the scenes processes that run in SugarCRM. They need to be setup as a cron job on your server. Whoever administers your SugarCRM should be able to help you get your schedulers working.
Let me know if you have any questions getting the schedulers up and running for SugarCRM. If you believe other schedulers are running but not SugarChimp, we can look into why that might be as well.
Kind Regards, Jon
6 years ago
Hi Jon,
other schedulers are running since four years :P. I guess this is not the problem. Any other ideas?
BR, Daniel
6 years ago
Here from the sugarcrm.log
6 years ago
Alright, thanks for sharing this. Since our schedulers are failing in the CRON run, we can usually get an idea of what is happening directly from the job_queue table in Sugar. If you have access to this, you can look at the messages from the sugarchimp job failures directly from the table. Let me know if you need any help finding those. If they are not helpful, then we could look to see if we can find any errors on the php/apache logs as well.
Let me know what you find.
Thanks, Jon
6 years ago
php_error.log
6 years ago
Nothing worth noting in the PHP logs. Were you able to look at the job_queue table to see if any error messages are displaying there? These forums are public, so you might want to send any other logs over to the support@sugarchimp.com email and I can check them from there.
Thanks, Jon
6 years ago
Hi Jon,
at the job_queue table I can only find a"all" the other job. But there is nothing in there about SugarChimp.
Here you can see the config from the crons. I still miss sthe "URL"
6 years ago
Stop Stop I was wrong.
job_queue:
cut out
The translation for "Kann Funktion SugarChimp nicht aufrufen" is something like "can not call function SugarChimp". But I don´t think this means a php/function
6 years ago
Hello,
I think we may have found the culprit. Indeed, it is an issue calling the SugarChimp function. Can you change the Scheduler dropdown for Job away from URL and set it to "SugarChimp - send Sugar Updates to MailChimp". This "Job" selection should call function::SugarChimp(). The Smartlist scheduler needs to be changed in the same way, except to the "SugarChimp - SmartList" Job.
I do not know why this has happened, as they should have defaulted to the correct functions originally. If you are not able to find those jobs, then we may have an installation issue where the SugarChimp did not get added correctly. Let me know.
Thanks, Jon
6 years ago
Good Morning Jon,
and thats the problem. There is no job called "SugarChimp - send Sugar Updates to MailChimp". This was one of my first views.
Can I set this job manually and how?
BR, Daniel
6 years ago
...and the same is for the "SmartList".
:(
6 years ago
another info
like you can see, if I am not in an edit-modus there is a function::SugarChimp
6 years ago
Can you look to see if there are files called SugarChimp.php and SmartList.php in custom/Extension/modules/Schedulers/Ext/ScheduledTasks? This is where the files that contain the SugarChimp and SmartList functions should be. If they are not there, then we need to try to reinstall SugarChimp, perhaps doing an uninstall and reinstall will work.
Let me know what you find.
Thanks, Jon
6 years ago
Hi Jon,
no these files aren´t on my server.
I deinstalled and reinstalled the module but with no success. Can I copy manually?
BR, Daniel
6 years ago
Hello Daniel,
We can certainly copy those files over manually, however I worry that there may be issues with other pieces of the installation that have failed since this piece will not install correctly. Lets check another file that should have been updated during our installation in Sugar. If it is here, then I say we manually add the missing scheduler files and see what we get. Otherwise, we need to work on server permissions or php/apache settings because files in multiple locations are missing.
We add lines to the custom/modules/Contacts/logic_hooks.php file. If this file is on your server, can you copy its content and paste it here to see if our SugarChimp Logic Hooks were installed for the Contacts module?
If that looks good, then I'll email you the proper files for the scheduled tasks.
Thanks, Jon
6 years ago
Hi Jon,
logic_hooks.php in custom/modules/Contacts/
6 years ago
I copied the both files into custom/Extension/modules/Schedulers/Ext/ScheduledTasks and did a quick repair...
did not helped. the job can not be in the list of scheduled tasks...
6 years ago
It could be an issue with the language file not being correct to show the job in the dropdown option. Either way, I think it would be best to schedule a call for early next week so that we can look at Sugar together. Can you find a time to do this here: https://calendly.com/fanaticallabs/sugarchimp-support
I look forward to getting things cleared up.
Kind Regards, Jon
6 years ago
Hello there,
Were you able to schedule a call for us to look at things together? Are there any updates to your current situation?
Thanks, Jon
6 years ago
Hello Daniel,
I am going to update this support case here for notes on what we found on the call:
Your SugarChimp/SmartList schedulers are failing because Sugar is "Unable to find function SugarChimp". The other custom scheduler workflow job is working just fine. We are having problems creating/deleting files on the server with the appropriate permissions. However, even after manually adding the correct files to custom/Extension/ we are still not able to get the scheduler working. (checked custom/modules/Schedulers/Ext/Scheduledtasks/ to be sure it is populated with the correct data, and it is). We also ensured the language files are populated correctly, and they are.
I will get back to you early next week with any updates to see if we can get your scheduler working correctly. Thanks for your patience as we get this figured out.
Kind Regards, Jon
6 years ago
Hello Daniel,
I'm going to add to the case what we found on our last call again:
We ran: php -f custom/modules/Schedulers/Ext/Scheduledtasks/scheduledtasks.ext.php
That let us know that we were unable to reach the SmartList directory (failed to open stream). Checking permissions, custom directories have the setgid ('s') on them, even after running the proper chmod scripts. We then copied the data over to reset permissions without the 's', and got past that issue. Continuing down this troubleshooting path, we got stuck because the custom/include/Fanatical/Loader.php file uses a built-in Sugar function "get_custom_file_if_exists()" while fails. Our custom directory is unable to see open the built-in include/utils.php for Sugar.
As we got off the call, you are going to look into the issue more to see if you can fix the permissions problems. If not, we will look to schedule another call next week with more things to try.
Thanks, Jon
6 years ago
Hello Daniel,
I'm going to go ahead and close this case out. If you are still having issues or have more questions, you can respond to this case or create a new one.
Kind Regards, Jon