WordPress Publish Error: Cannot Read 'toString' of Null

I keep getting this error when trying to publish to Wordpress: “Function ‘displayError’ finished with error! Cannot read properties of null (reading ‘toString’).”

blueprint.json (60.3 KB)

For some reason, the category and/or the tags keep getting this error, and because of it it won’t publish to Wordpress. Any idea how to fix it?

Thanks,
Julien

Welcome to the Make community!

Those fields accept more than one value. Therefore, the values must be contained within an array.

To do this, you can use the built-in function add

{{ add(array; value1; value2; ...) }}

e.g.: (paste this into the field)

{{ add(emptyarray; 5) }}

For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Thanks! Unfortunately, it doesn’t work. My best guess is that the module is trying to fetch the list of categories and tags, and it can’t, so it display the error, preventing it from publishing the article:

I don’t even need to populate categories and tags. Do you have an idea to “bypass” these 2 fields, so the module can publish the article?

Thanks,J

You could just use the special emptyarray variable if you don’t want to set any categories or tags.