• Hi!

    My plugin is somehow crashing the wordpress site on localhost:8889/. I’m using @wordpress/env and have set WP_DEBUG to true, but no debug.log file is generated, probably because of the docker config. How do I debug the issue that my plugin is causing? Is there an escape hatch?

    My plugin works just fine in the development site at localhost:8888/

    View post on imgur.com

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you try setting WP_DEBUG_DISPLAY as true in your config:

    "config": {
        "WP_DEBUG_DISPLAY": true
      }
    

    That should hopefully, show you the errors on the page.

    Thread Starter widgetic

    (@widgetic)

    @welcher yeah have that too but to no avail..
    excerpt from my .wp-env.json

    "env": {
       8 ~ │     "tests": {
       9 ~ │       "config": {
      10 ~ │         "WP_DEBUG": true,
      11 ~ │         "WP_DEBUG_LOG": "/wp-errors.log",
      12 ~ │         "WP_DEBUG_DISPLAY": true,
      13 ~ │         "WP_MEMORY_LIMIT": "1024M"
      14 ~ │       }
      15 ~ │     }
      16 ~ │   }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank new post page with my plugin?’ is closed to new replies.