Suitcrm and mautic integration

I have many Mautic/Suite CRM installs setup and syncing on Godaddy VPS with Cpanel. They all work. If you’d like me to set one up for you, you can reach out to me personally.

Thank you everyone I figure it out
I will write out the process I used to get it working very soon

That’s a good work. We would like to know how you fix it. :partying_face: :raised_hands:

So, I follow the process recommended by @rsp to fix the database issue. After replacing the line @pstevens post suggested I was thrown with the error (iiisetInternalEntity not exits) Since he was not familiar with such error, I asked ChatGPT for explanation.

The error message:

ERROR: INTEGRATION ERROR: Sugarcrm - Method iiisetInternalEntity not exists

indicates that the PHP application is trying to call a method named iiisetInternalEntity on an object or class related to SugarCRM, but that method is not defined or doesn’t exist.

Possible Causes:

  1. Typo in Method Name:
  • The method iiisetInternalEntity may have been mistyped in the code. It could be a misspelling or incorrect capitalization.
  1. Method Does Not Exist:
  • The method may genuinely not exist in the SugarCRM class or object being referenced. This could happen if:
    • The method was removed or deprecated in the version of SugarCRM you’re using.
    • A custom implementation that defines this method is missing or not properly included.
  1. Incorrect Integration Code:
  • The integration script may be trying to use a method that’s either obsolete or from an incorrect/unsupported module or library.
  1. Version Mismatch:
  • The version of SugarCRM being used does not support the method. This can occur when the code was written for a different version of SugarCRM.
  1. Custom Modules or Extensions Missing:
  • If the method iiisetInternalEntity is part of a custom module or plugin, it might not be properly installed, or the code for it might not be accessible.
  1. Namespace or Scope Issue:
  • If the method is defined but not accessible, it might be due to namespace issues or the method being private/protected and not accessible in the current context.

The error message:

ERROR: INTEGRATION ERROR: Sugarcrm - Method iiisetInternalEntity not exists

indicates that the PHP application is trying to call a method named iiisetInternalEntity on an object or class related to SugarCRM, but that method is not defined or doesn’t exist.

Possible Causes:

  1. Typo in Method Name:

    • The method iiisetInternalEntity may have been mistyped in the code. It could be a misspelling or incorrect capitalization.
  2. Method Does Not Exist:

    • The method may genuinely not exist in the SugarCRM class or object being referenced. This could happen if:
      • The method was removed or deprecated in the version of SugarCRM you’re using.
      • A custom implementation that defines this method is missing or not properly included.
  3. Incorrect Integration Code:

    • The integration script may be trying to use a method that’s either obsolete or from an incorrect/unsupported module or library.
  4. Version Mismatch:

    • The version of SugarCRM being used does not support the method. This can occur when the code was written for a different version of SugarCRM.
  5. Custom Modules or Extensions Missing:

    • If the method iiisetInternalEntity is part of a custom module or plugin, it might not be properly installed, or the code for it might not be accessible.
  6. Namespace or Scope Issue:

    • If the method is defined but not accessible, it might be due to namespace issues or the method being private/protected and not accessible in the current context.

How to Debug and Fix:

  1. Check the Method Call:

    • Inspect the code where the iiisetInternalEntity method is being invoked. Confirm that the method name is correctly spelled.
  2. Check SugarCRM Documentation:

    • Verify if iiisetInternalEntity is a standard method in the version of SugarCRM you are using. Look for the method in the SugarCRM API documentation.
  3. Verify Custom Modules:

    • If the method is part of a custom implementation, ensure the module or extension containing it is correctly installed and loaded.
  4. Check for Version Compatibility:

    • Compare the integration code with the version of SugarCRM in use. Update or modify the integration code if necessary to match the API changes.
  5. Log Additional Information:

    • Add debugging logs to inspect the object or class being used when the error occurs. Use var_dump() or similar debugging tools to see the structure of the object.
  6. Consult the SugarCRM API or Developer Community:

    • If this is a custom or obscure method, reach out to the SugarCRM community or check custom integration guides.
  7. Update or Rebuild the Integration:

    • If the method no longer exists or is unsupported, consider revising the integration code to use an alternative method or API functionality provided by SugarCRM.

After this I remove the SugercrmIntegration.php file and create a new one filling it with the information from Mautic Git mautic/plugins/MauticCrmBundle/Integration/SugarcrmIntegration.php at 6.x · mautic/mautic · GitHub.

This time around I deleted the line 913 of the above file and replace with @pstevens recommendation and that solve the problem

2 Likes