ERROR: APY Connection Wordpress to N8N

Hi,

I Need help!

Describe the problem/error/question

I’m experiencing an issue connecting n8n to my WordPress site via the REST API. Here’s a structured overview of the problem and what I’ve tried so far:


Website

  • Domain: https://deaimeesters.com

  • WordPress version: 6.8.3

  • Plugins installed (currently all deactivated for testing): Yoast SEO, Easy Accordion, Litespeed Cache (removed), WPForms Lite, Ultimate FAQ Accordion, Popup Maker, WM Mail SMTM, WP CLI Login Command Server


n8n Setup

  • Node: WordPress

  • Resource: Post

  • Operation: Get Many

  • Credentials: WordPress Admin + Application Password + URL: (https://deaimeesters.com/wp-json/wp/v2/posts)

    Problem / Error

  • When executing the node in n8n, I receive the error:

CreateListFromArrayLike called on non-object

And

No fields - item(s) exist, but they're empty

Steps Taken So Far

  1. Deactivated all plugins to rule out plugin interference.

  2. Cleared any caches (Litespeed cache removed).

  3. Confirmed WordPress Admin user exists and an Application Password is generated for API authentication.

  4. Tested endpoint in Postman without authentication → still returns homepage HTML.


Current Status

  • Endpoint still returns the homepage HTML instead of JSON.

  • n8n cannot retrieve posts due to this issue.

{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "fb41a96d-7a81-45b4-be4c-b1ca5257ba84",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "operation": "getAll",
        "returnAll": true,
        "options": {}
      },
      "type": "n8n-nodes-base.wordpress",
      "typeVersion": 1,
      "position": [
        208,
        0
      ],
      "id": "338874b7-0b88-44fd-9bbd-d78831374c5d",
      "name": "Get many posts",
      "credentials": {
        "wordpressApi": {
          "id": "wrBnAtIn57WqdU0X",
          "name": "Wordpress account"
        }
      }
    }
  ],
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get many posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "1ddd1cb5022722f0b813f5bff507a91d557b32665482d3db2eff5b79ef8b16de"
  }
}
Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

Hi there!

I tried to check your restful endpoint for WordPress at deaimeesters – Zeker van je volgende stap

But getting homepage that clearly shows the issue with your htaccess rules or blocking rules with nginx or Apache you are using.

I’m really interested to look into this issue in details.

That would be nice! What do u need for info to look into it?

@Joost_Glaser
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
Add enable this in your wp-config file and then share your .htaccess}
Also I need to look into the server error log.
Also could you please confirm whether you are using nginx or apache.

For security reasons you can dm me logs here in community messaging option.

Thanx Adarsh,

Thank you very much for taking the time to help investigate the issue with our WordPress – n8n integration. I really appreciate your support!

I’ve sent the files via a DM. Other relevant info you can find below.

Server and WordPress Information:

  • Web server: Litespeed (Apache-compatible)

  • WP_DEBUG: enabled

  • WP_DEBUG_LOG: enabled

  • Error log file: php-error.log (attached)

  • Configuration file: .htaccess (attached)

Please let me know if you need any additional details or steps from my side to help resolve the issue. I truly appreciate your time and expertise.

Thank you again for your assistance!

Warm regards,