• I used WinSCP to run the CLI command “wp csp generate” and it appears to start working before generating the error “invalid file ID”. I checked with Siteground to see if they were blocking it and they ran the same command on a separate client and got the same error.

    I’ve reached out to support for WinSCP and they’re miffed as well. Both seem to think this might be an invalid command. They also suggested running it on PuTTY, which I have not done yet because I’m clueless.

    All this stuff is new to me and honestly, I can identify most everything that needs to be given permission but have no idea what should be inline or otherwise. Everything mucks up including the Google fonts, which you already have autofilled. It’s why I wanted to use the other option to generate it for me.

    Any suggestions on a different client to use and/or perhaps the command is incorrect? I’m stumped.

    The page I need help with: [log in to see the link]

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

    (@kevp75)

    The command is correct.

    You should certainly not be relying on it, as I state a few times it is unreliable at best, in fact my plans are to remove it in the next version.

    All that error means is the command encountered an internal URL that was not tied to a WordPress Post ID, and can be ignored.

    Please understand, that I cannot help generate your content security policy for your website. I am a freelancer and helping in this fashion would be a conflict of interest unless I am hired to do so. Please do note, I have found that this can be anywhere from a 20 minute process up to an 8 hour process.

Viewing 1 replies (of 1 total)
  • The topic ‘CLI command generates error’ is closed to new replies.