I´m making a plugin on a website. For some reasons, I got a 500 INternal Server Error. This website use the plugin wordfence and that´s really complicate to see what is happening. What I could test and know :
- The problem is inside my plugin
I´m sure is link to my plugin because if I rename this plugin folder, the admin dashboard comes back.
- Server log show me this a problem inside the header
AH02429: Response header name 'Cache-Control ' contains invalid characters, aborting request, referer: https://mywebsite.test.com/wp-admin
The code which makes only a conflict for the administration side when I´m logged in
Debug.log - everything is all right before
The last log I can show in debug.log is a function called by the
I spent hours to try to find the cause without success. I tried to add my email as administrative website email to receive errors messages but any email was sent.
I´m a bit lost.
What is the best way to debug for this kind of situation ? Someone has got an idea ?