• Resolved ericscoles

    (@ericscoles)


    I’m able to create new snippets, and can change their active status from the Code Snippets listing screen. However, any attempt to save edits to an existing snippet returns a blank page displaying a ‘forbidden’ error.

    This occurs for all admin users of the site.

    What I’ve tried so far:

    The one relevant tip I found at the WPCode site [https://wpcode.com/docs/how-to-fix-wpcode-permissions-error/] suggests this is usually a permissions error – can anyone point to where the permissions are documented, so I can try to manually update in the database?

    At this time I’m not able to reproduce the behavior on our staging site. (Possibly relevant: Plugin had been removed at some point on that site – no record of that so not sure when or why – so when it was installed/activated on staging, it was a fully new download, not just deactivate/reactivate. Old snippets were still in the database from the previous install, though, so it wasn’t a complete blank slate. Could deactivating & then deleting the source module potentially cause the permissions to get reset when it’s reinstalled/activated, even if they didn’t get reset by the deactivate/activate process?)

    Does anyone have any comments on what I’ve done so far, or other troubleshooting suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @ericscoles,

    From what you are describing, the issue seems to be from a firewall restriction at server level, before WordPress or even PHP are loaded.

    I suggest looking for firewall restrictions or rules from your hosting provider or asking them for support in whitelisting the URLs that WPCode is using for saving changes to snippets.

    Thread Starter ericscoles

    (@ericscoles)

    Thanks for getting back. Looks like mod_security; hosting provider will have to put in exceptions one IP address at a time.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘‘Forbidden’ error when saving existing snippet’ is closed to new replies.