How to determine the DirectAdmin WordPress backup date?
If WP_DEBUG and WP_DEBUG_LOG are set WP will log its own errors to a file in /wp-content, otherwise it only logs to the webserver’s error log.
If WP_DEBUG and WP_DEBUG_LOG are set WP will log its own errors to a file in /wp-content, otherwise it only logs to the webserver’s error log.
Although a little clunky I’ve found a passable solution to this problem using mod_security. To implement this, enable modsecurity in Apache (presumably with a2enmod security). Then edit the config file. On my Ubuntu based systems this is at /etc/modsecurity/modsecurity.conf and as follows: Ensure SecRequestBodyAccess is On (and I assume SecRuleEngine to DetectionOnly). You may also … Read more
It seems you need to change language on Apache config itself as it dictates which language to use for logging and other stuff. There seems to be no relation with WordPress language settings as it only translate content for selected language by gettext utility. So both are different and need to set differently. You can … Read more
Assuming that I have the utility plugin, and the my_error_log() function is there, how can I call it from anywhere in my other plugins? By calling it, there are no special steps How can I be sure I can call it? Are plugins functions available across my WordPress code? Yes, plugins are not sandboxed, everything … Read more
ISO Plugin: Audit Trail with Diff of Content Changes
Nevermind, I found the solution. I included pluggable.php in the plugin which is a no-no to start with. And then I used wp_get_current_user() incorrectly.
If you setting the posts to private in WordPress, you can add this to your functions.php file: function include_private_in_search( $query ) { // not an admin page and is the main query if (!is_admin() && $query->is_main_query()){ $query->set( ‘post_status’, array ( ‘publish’, ‘private’ ) ); } } add_action( ‘pre_get_posts’, ‘include_private_in_search’ ); Then you can format the … Read more
wanted to know that how to do set up to get error logs from customers? If you want to do this, your best option is to use a 3rd party service that logs errors (whether it be PHP/JS/Web server errors). I’m not sure if you can choose what type of bugs you want to show … Read more
You could use the get_search_query(); function. More in developer.wordpress
Debug info from request handler