• Resolved gdavide

    (@gdavide)


    I’m using wordpress 6.3.1 with Security Header Generator 4.0.01, when i run “wp csp generate” i get the following error:

    Warning: We have started processing the site.  This can take awhile to complete, please keep this window open until it has finished.
    Warning: Attempt to read property "ID" on null in /nas/content/live/mywebsite/wp-content/plugins/security-header-generator/cli/work/kcp-cspgen-cli-process.php on line 183
    Error: There was an error gathering the resources: Invalid post ID.

    my wordpress is hosted on wpengine.com, but i have a standard shell user access.

    I’ve enabled WP_DEBUG* on wp-config.php, but i can’t get more datails more than i’ve posted above. MY posts use the Elementor plugin, i don’t know if this could be a problem.

    How can i solve the problem? thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevin Pirnie

    (@kevp75)

    So.. like I said in the description, I can’t guarantee it will get everything. By the looks of it, the cli was not able to get one of your posts by it’s ID.

    Did you run it a couple times, like I mention?

    Please make sure to run it a few times, I cannot guarantee that it will get everything, but, in my tests on my own sites it did.

    Please understand, for it to be 100% accurate is impossible. So much so, that I am planning on removing it.

    Plugin Author Kevin Pirnie

    (@kevp75)

    No reponse. Also, latest version removes CLI.

    Closing out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attempt to read property “ID” on null in kcp-cspgen-cli-process.php’ is closed to new replies.