My error when writing a plugin for uploads

and yes, I can debug. But it just jumps directly from this line to destruct

enter image description here

the end of my wp-config.php EDIT:

// Enable WP_DEBUG mode
define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

(yes i did restart)

My webcontent folder

enter image description here

So now what?

How do I find out what is the problem?

EDIT it’s not file permission as I can do
error_log("errrorrrr ", 3 , "..../debug.log")

In my plugin I wrote the line

throw new \Exception("foo");

I want to get to see the error in my debug.log file

5

Insert this into your wp-config.php

// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings 
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Before

/* That's all, stop editing! Happy blogging. */

Leave a Reply

Your email address will not be published. Required fields are marked *