Skip to main content
Question

WordPress error: Error executing Custom Action to https://zapier.com/app/extensions/api/v1/actions/24368/run:


Hey, I am trying to set up a Zap that changes the wordpress (WP) user role when a tag is added in ActiveCampaign (AC).
The AC-trigger part is easy and works.

But the WP part is making me tear my hair out:

Already the first part fails 

Failed to create a get user by email (custom action) in WordPress

Error executing Custom Action to https://zapier.com/app/extensions/api/v1/actions/24368/run: {"errors":[{"status":500,"code":"generic_error","title":"Error during execution: Invalid URL","detail":"Error during execution: Invalid URL"}]}

 

Did this topic help you find an answer to your question?

17 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @LilyWatteau 

For us to have full context, please post screenshots with how your WP Zap step is configured.


  • Author
  • New
  • 9 replies
  • February 4, 2024

Hey Troy, thank you, here are the steps I did: I really hope you can help figure out why it is not working! <3


  • Author
  • New
  • 9 replies
  • February 4, 2024

sorry, I had forgotten to change the domain. But the error is the same:

 


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

Is your website domain “yourwebsite.com”?

 


  • Author
  • New
  • 9 replies
  • February 4, 2024

No it is not, but  I noticed and changed that (see the reply with only two screenshots.  It still gave me the same error.


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

You would need these Zap steps:

  • Action: WordPress - Find User
    • by Email
  • Action: WordPress - Update User

 

 

WordPress API:

https://developer.wordpress.org/rest-api/reference/users/#list-users

https://developer.wordpress.org/rest-api/reference/users/#update-a-user

 

Try removing /{{user_email}} from the URL.

Instead add a Query Paramater

Left side: search

Right side: {{user_email}}

 

 


  • Author
  • New
  • 9 replies
  • February 4, 2024

Thank you, Troy!

We have partial success. No more error message and it seems to find the user. It even seems to think it changed “something” in wordpress.

However … the actual user role has not been updated. 

Any idea why that may be happening?

It is getting latish here. If we don’t hear from each other tonight: Good night and I am hoping to continue tomorrow.

Your help is more appreciated than you can imagine. I lost my whole day on this and was completely lost!

Take care,
Ann.


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

We would need to see screenshots with how your query parameters are configured.

 

 


  • Author
  • New
  • 9 replies
  • February 5, 2024

Like this?
 


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

Needs to be like this:

{{user_email}}

 

Right side: {{user_email}}


  • Author
  • New
  • 9 replies
  • February 5, 2024

When I include the brackets then I get the error message again.

It only works, I fI leave the brackets away.


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

May be best to consider hiring a Certified Zapier Expert to help: https://zapier.com/experts

 

Some things to try…

Show screenshots of the DATA IN you are testing with.

 

Remove the trialing / after users in the URL

 

Remove the additional header.

 


  • Author
  • New
  • 9 replies
  • February 5, 2024

Well I am testing Zapier to see whether I want to got with it or with another service. Doesn’t make sense to pay an expert, if I may not sign up for it in the end.

I cannot believe that I should be the only person ever to want to change wordpress user role.

I will try your suggestions and see.

My other zap  “create user” was so quick and easy. I thought that Zapier was maybe the right service for me. Now I am not so sure.


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

Using App APIs in Zaps is an advanced approach and the intricacies of doing so depends on the App API requirements.


  • Author
  • New
  • 9 replies
  • February 5, 2024

It surely is. But IMO it should not require anything advanced to change a wordpress user role. It seems odd that this is not standardly available.

The create wp user exists and it was such a breeze to use. :-D

Anyhow, thank you so much for your help! I appreciate your time and effort very much.


Troy Tessalone
Forum|alt.badge.img+14

@LilyWatteau 

Feedback and feature requests can be submitted via a ticket to Zapier Support to be properly logged: https://zapier.com/app/get-help


  • Author
  • New
  • 9 replies
  • February 5, 2024

ok I just added it as a request. Thank you, Troy.


Reply