Function ‘displayError’ finished with error! Cannot read properties of undefined (reading ‘toString’)

Hello. I’m trying to set up automation for creating new posts using ChatGPT and WordPress, but I keep encountering this error. Why don’t you have a real solution to this problem?

1 Like

Are you using any function called displayError() ??? @Aleksei

Regards,
Msquare Automation - Platinum Partner of Make
@Msquare_Automation

1 Like

I am having the same problem. File data and file name are correcly mapped.Still, I got this error message. Somebody found a solution?

They may be correctly mapped but not in the right format. What do your inputs look like on the WordPress module?

Hi, file name is file.jpeg

I tried to change it to uiid or insert .jpg / .jpeg at the end of the string, just like this topic suggested, but still not working :frowning:

Just for the record: it turned out that the endsite admin blocked the accessibility of the page, and that caused this error message. After switching back the access rights, it’s working again.

2 Likes

@Janos Hi. What do you mean ? I don’t understand. And I can’t solve this problem.

I mean: contact the guy who runs the website, the one who has admin rights. Maybe your access rights are limited to edit the page via an API call and that’s causing the problem.

This is not a solution to the problem. I have admin access to the site and am making a request to add a post as an administrator in WordPress. However, I still get the same error.
I tried creating new users with the Administrator role and post creation permissions, but I was unable to switch to the new user when making the request. I also deleted the Make plugin and reinstalled it, but nothing helped. This is a bug on Make’s side. Or, provide a clear, step-by-step solution to resolve this issue.

An interesting point: the posts are being created correctly—the title, category, content and required status are all added. But why does an error appear in Make? If the user didn’t have permission to create posts (must have the Administrator role), the posts wouldn’t be created at all. This makes the situation very strange. And the strangest part is that there seems to be no solution.

Hi Aleksei, I don’t know what’s causing that problem. All I can tell you that in _my_case the problem was that my writing permissons were restricted by the WP endpage admin, but after he updated that, it started working, and I got no error message like this eve since :confused:

I figured it out! At least for me. After days of troubleshooting, reading through the forms, recreating the entire scenario from scratch and reach out to support, who never even responded :roll_eyes:

I figured out that I got this issue because of the name of the image file I was using as my header image. I have a spreadsheet of city names and they all worked until I got to the name “Bailey’s Prairie”. I have the city name to be in the image file name but the apostrophe in the name is not a character allowed in the file name :man_facepalming:

So this silly little apostrophe cost me days of troubleshooting lol Hope this helps someone.