Skip to main content
Question

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

  • Feb 4, 2024 4:39 PM UTC
  • 17 replies
  • 252 views

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"}]}

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

17 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 4, 2024 6:27 PM UTC

Hi @LilyWatteau 

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


  • Author
  • New
  • Feb 4, 2024 7:43 PM UTC

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
  • Feb 4, 2024 7:47 PM UTC

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

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 4, 2024 8:06 PM UTC

@LilyWatteau 

Is your website domain “yourwebsite.com”?

 


  • Author
  • New
  • Feb 4, 2024 8:07 PM UTC

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
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 4, 2024 8:19 PM UTC

@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
  • Feb 4, 2024 10:20 PM UTC

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
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 4, 2024 10:37 PM UTC

@LilyWatteau 

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

 

 


  • Author
  • New
  • Feb 5, 2024 2:03 PM UTC

Like this?
 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 5, 2024 3:57 PM UTC

@LilyWatteau 

Needs to be like this:

{{user_email}}

 

Right side: {{user_email}}


  • Author
  • New
  • Feb 5, 2024 4:40 PM UTC

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

It only works, I fI leave the brackets away.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 5, 2024 4:50 PM UTC

@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
  • Feb 5, 2024 5:03 PM UTC

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
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 5, 2024 5:30 PM UTC

@LilyWatteau 

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


  • Author
  • New
  • Feb 5, 2024 5:34 PM UTC

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
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Feb 5, 2024 5:37 PM UTC

@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
  • Feb 5, 2024 5:42 PM UTC

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