• Resolved monkeywisdom

    (@monkeywisdom)


    Hi,

    WPFusion suddenly stopped adding contacts recently. Error log is below. New members are assigned member role ARMember. WPFusion is supposed to add them to Mautic and assign 2 tags.

    Error log:

    I obscured the user email address for privacy.

    September 10, 2023 21:08:31ErrorGot2Cre8Error adding contact: Client id was not found in the headers or bodyuser-registerSeptember 10, 2023 21:08:31InfoGot2Cre8New user registration. Adding contact to Mautic:
    
    user_login: Got2Cre8
    
    user_email: [email protected]
    
    user-registerSeptember 10, 2023 21:08:30ErrorGot2Cre8Error getting contact ID [email protected]: Client id was not found in the headers or bodyunknownSeptember 10, 2023 21:08:30NoticeGot2Cre8User not added to Mautic because role?subscriber?isn't enabled for contact creation.unknownSeptember 10, 2023 21:08:30ErrorGot2Cre8Error getting contact ID [email protected]: Client id was not found in the headers or bodyunknownSeptember 10, 2023 21:08:29NoticeGot2Cre8User not added to Mautic because role?subscriber?isn't enabled for contact creation.unknownSeptember 10, 2023 21:08:29ErrorGot2Cre8Error getting contact ID [email protected]: Client id was not found in the headers or body
    • This topic was modified 1 year, 2 months ago by monkeywisdom. Reason: Privacy
    • This topic was modified 1 year, 2 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author verygoodplugins

    (@verygoodplugins)

    I haven’t seen that one before ??

    It looks like your OAuth configuration got reset or invalidated somehow. Can you try going to Settings ? WP Fusion ? Setup and confirm your Public Key and Secret Key are correct?

    Make sure they’re correct, and then save the settings. You can also click Re-authorize with Mautic to confirm everything is correct in Mautic.

    For more info on the setup process check out our guide at https://wpfusion.com/documentation/installation-guides/how-to-connect-mautic-to-wordpress/

    Let us know if that fixes it for you.

    Thread Starter monkeywisdom

    (@monkeywisdom)

    Hi. No. Setup only asks for Mautic username and password, not keys.

    Plugin Author verygoodplugins

    (@verygoodplugins)

    It sounds like Mautic is now expecting an OAuth connection. Did you update Mautic recently?

    Can you try

    a.) Erasing the Mautic Username
    b.) Save the settings
    c.) Click the Authorize with Mautic button?

    This will upgrade the connection to OAuth and should fix the issue. Mautic recommends this now for security anyway.

    Thread Starter monkeywisdom

    (@monkeywisdom)

    Thanks. I entered an existing public and secret key in the fields. The fields are showing now. Then I clicked save changes. Should that work? Authorize with Mautic just gives me this: “{“errors”:[{“message”:”Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!”,”code”:500,”type”:null}]}”

    • This reply was modified 1 year, 2 months ago by monkeywisdom.
    Plugin Author verygoodplugins

    (@verygoodplugins)

    You should enter the public and secret key, then click Authorize with Mautic. Follow the steps here: https://wpfusion.com/documentation/installation-guides/how-to-connect-mautic-to-wordpress/

    If you’re getting a 500 error, it sounds like something is corrupted in Mautic. Have you updated it recently?

    To start I’d suggest clearing the caches: https://docs.mautic.org/en/troubleshooting

    That usually works but if not you can also do maintenance / cleanup by logging in via SSH and running

    php bin/console mautic:maintenance:cleanup

    If that shows any errors you will need to fix them. This can kind of be a pain.

    For example the last time this happened to me I had to:

    1. Reset file permissions on the server
    2. Upgrade and migrate by running

    php bin/console cache:clear (or rm -rf var/cache/*)
    php bin/console mautic:update:find
    php bin/console doctrine:migration:status
    php bin/console doctrine:migration:migrate

    3. Run cleanup via php bin/console mautic:maintenance:cleanup. This showed errors with the mtc_lead_event_log table.
    4. Delete the table mtc_lead_event_log
    5. Manually re-add the table
    6. Run php bin/console doctrine:migration:migrate again
    7. Run php bin/console doctrine:schema:update --force to rebuild the table scheme of the mtc_lead_event_log table

    This is just an example… if your issue is with a different table or component the steps to fix it will be different. But maybe it’s helpful. In my case this fixed the 500 error and got the API working again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin Stopped Adding Contacts to Mautic’ is closed to new replies.