Questions tagged [logging]
The logging tag has no usage guidance.
41
questions
0
votes
0answers
17 views
My account staying logged when the browser closed
I want to logout with browser closing. Actually my account seems logged out in front-end but appears logged-in in back-end.
How can I logged out when I close browser?
0
votes
0answers
11 views
how to make a code which save admin each time login and logout activity inside a table
I want to built a small plugin that will save admin each time login and logout activity inside a table. I try many codes but unable to save the login and logout activity. please help.
Thank you.
0
votes
1answer
42 views
Does Wordpress provide different levels of logging?
(I come from a Java development background, so please excuse my lack of PHP and WordPress knowledge.)
My understanding of logging in WordPress is that it must first be enabled in wp-config.php and ...
0
votes
1answer
95 views
error log is going to the wrong location, WP_DEBUG_LOG is ignored
My WordPress error log is going to /var/log/php-fpm/www-error.log. That's not where I want it. In fact, it took me too long to figure that out. (I'm new to WP and PHP).
I've tried to redirect it with ...
0
votes
1answer
19 views
Write/saved logs in Wordpress
I´m doing a plugin which includes a query to import data from external API into custom post types/taxonomies/medias etc...
The query can be really heavy.
I had to make logs to know exactly what ...
0
votes
0answers
16 views
Best way to see where action originated from?
I'm trying to enhance the logging I have in the plugin. I'm using CloudWatch as a logging solution, and I have implemented monolog so that I can easily log when an action happened (email sent, images ...
1
vote
1answer
425 views
Is there a way to see history of WordPress database changes?
One of my WordPress pages went suddenly "blank". Basically to the point that it shows as if there is clean install of wordpress. Files in wp-content/uploads are there, but all the posts from database ...
3
votes
1answer
331 views
Does the debug.log do log rotation?
This is more like of an inquiry.
So I enabled my WP_DEBUG_LOG to true.
It does work though, debug.log is in my wp-content's directory.
But does it also do log rotation like different file for each day?...
1
vote
1answer
89 views
Can I hook error_log(…)?
Is there a hook for error_log(...) ?
On my development environment I would like to var_dump the results instead of having to check the log file each time.
0
votes
0answers
22 views
WordPress Multisite VMware copy for dev use not allowing loggin
New job and new project. I inherited a WordPress Multisite were the developers were working on the live site. Thinking I would be the smart new guy. I asked the sysadmin to make a VM copy, assign a ...
1
vote
1answer
192 views
Same log message keeps on printing to debug.log file thousand of times
So i was debugging my PHP code while working with Wordpress site by writing to debug.log with error_log($message) or trigger_error($message).
My message in these log statements keeps on printing ...
0
votes
1answer
171 views
Debug log file with rolling datestamp in filename?
We currently have this config for our logging in our wordpress wp-config.php file
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
@ini_set( 'display_errors', 1 );
@ini_set( 'log_errors', 1 );
...
0
votes
0answers
15 views
Debug info from request handler
I'm adding custom request handler using add_action and register_rest_root. Sometimes it's hanging and I'm stuck without any output. I would like to use something like
echo "Label";
to debug my code. ...
0
votes
1answer
1k views
Debugging - logging database queries
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SAVEQUERIES', true);
these are lines from my wp-config.php file. What I expect now, that I can view ...
0
votes
1answer
109 views
Logging search queries for logged-in users
How would it be possible, to create a log file and update it with the search queries of users, who are logged in?
I'd probably use fopen() and fwrite() php functions for saving the log files, but ...
0
votes
1answer
33 views
Several times request to load plugins when sending one request
When we sending 1 request to load any page (Home, Single or etc), WordPress running more than several times.
For example you can adding the below code in the main plugin file or functions.php in ...
0
votes
3answers
584 views
Sidebar button click redirect when user is not logged in instead displays it
in my web I have a button (.x-btn.widgetbar) that displays a section of widgets in the upper right as in this example.
I have modified the icon to change based on whether the user is registered or ...
0
votes
1answer
27 views
How to send logs to plugin owner for a plugin?
I am developing a plugin(that is already on WordPress) and wanted to know that how to do set up to get error logs from customers? Also, any idea on how to omit logs that should only be shown to ...
1
vote
1answer
84 views
buddypress activity social share
Hello Guys I am using buddypress and I am sharing activity on social network like facebook and google and I am using url like
https://www.facebook.com/sharer/sharer.php?t=' . $activity_title . '&u=' ...
6
votes
2answers
1k views
How to stop certain warning logging in error.log?
bbPress has an annoying error about bbp_setup_current_user was called incorrectly. bbPress topic and bbPress ticket #2412, and it looks like nothing will change to fix it.
On the site we used to use ...
4
votes
2answers
1k views
Keep Users Logged In As Long As I Like
I'm implementing a Kiosk webapp based off WordPress and I have some conditionals which are key, they work based on whether user is logged in or not.
I'm aware that after user clicks "remember me" it ...
1
vote
1answer
29 views
Logging Count of Those Who Read Whole Post (ie reach the bottom)
I want to log when a visitor to a post reads to the bottom. I figure the code would work similar to an infinite scroll (measuring window and the location of an element in that window) but I don't know ...
3
votes
0answers
72 views
Custom and browser agent logging in wordpress [closed]
I wanted to log browser agent, screen size, timezone (including current system time). This is my first go at any web server (wordpress is my first install). I wanted to do this without plugins by ...
2
votes
1answer
132 views
Log of Heartbeat Calls
I've read that Heartbeat can slow a WP site down and I'm assuming if our admins/store managers have a lot of admin windows/tabs open, this will exacerbate the issue.
If yes, is there a condition to ...
1
vote
3answers
1k views
How to dump/log default values that are passed to hooks/filter functions?
Here's a quick example of I am trying to achieve:
I am using this filter:
add_filter('manage_edit-member_columns', 'set_custom_edit_member_columns');
function set_custom_edit_member_columns($...
0
votes
2answers
3k views
How to catch all PHP errors with custom error handler?
I would like to know is there any way to catch all PHP errors (not only WP Errors) in Wordpress without modifying core?
The reason I am asking is that I would like to manually catch all errors and ...
0
votes
2answers
1k views
I restricted wordpress by logged users. It's possible exclude a page?
Here is my code for restrict my wordpress site:
function restrict_access_if_logged_out(){
if (!is_user_logged_in() && !is_home()){
$redirect = home_url() . '/wp-login.php?redirect_to=' ....
0
votes
1answer
45 views
search does not yield access restricted results
If the user is logged out and tries to search something, he is redirected to the login page. How is it possible to have the search always show all of the results (including the excerpts and the image),...
0
votes
1answer
178 views
How to hook into action/filter call
I'm about to create a very simple logging plugin.
Every time an action or filter is fired I need to log it to the file. The idea is that we will be able to see exactly which actions and filters are ...
1
vote
0answers
976 views
wp_set_current_user (remote logging) doesnt work on server
I am figting with one interesting problem. I am logging in user with authorization on remote server. The problem is that it is working fine on a localhost but not on a server.
Here is code I am ...
8
votes
1answer
6k views
Control verbosity level of WP DEBUG?
I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere?
Just an fyi, here is what I have in ...
3
votes
1answer
2k views
$wpdb->insert Database Error Duplicate Entry Error Logging
Is there an equivalent to INSERT IGNORE in the wpdb class? As I'm fetching and inserting a twitter feed and the field in which I store the tweet ID is keyed UNIQUE, I am aware that duplicates are ...
0
votes
2answers
125 views
Wordpress + Buddpyress - troubleshooting server overloading
I have a Wordpress+Buddypress installation which is regularly going down - the number of HTTPD on the server and the server CPU load both peak suddenly and the server fails to recover. A restart of ...
3
votes
1answer
1k views
Using separate Apache log files for multisite
A while back I left Blogger and downloaded my blogs to my system. I hosted them there with each individual blog as a VirtualHost for a while. Later, I imported them into WordPress and am hosting them ...
1
vote
1answer
3k views
Preferred Method of debugging a wordpress SQL calls?
What is your preferred method of debugging Wordpress Applications when writing custom behind-the-scenes SQL calls, etc. ?
Coming from a Rails background, I usually tail a log file that displays not ...
0
votes
2answers
97 views
Log Author Actions
Is there a place where actions like post creation/deletion, page creation/deletion, modification, etc. is saved? Is this stored in the Apache logs?
If this is not saved, is there a way (plugin?) to ...
2
votes
1answer
720 views
PHP logging framework to be used with WordPress
There are different PHP logging frameworks out there e.g. Log4php, KLogger. I want to choose one based on its experience with WordPress. Please suggest me one.
0
votes
3answers
5k views
How do I show a different homepage to logged in and non-logged in users?
Basically, I want to show non-logged in users a page that says 'register or log in.' But I want to show logged in users a standard homepage will all my posts.
4
votes
4answers
236 views
Core framework/helpers for logging stuff?
I'm writing two plugins at the moment which need to (optionally) log stuff...lots of stuff...somewhere. Since i don't like the 'you need to have proper permissions in this and that folder' messages of ...
6
votes
4answers
4k views
What is the best way to monitor PHP functions/executions?
I am trying to find the best way to monitor which PHP code/functions, MySQL requests and/or plugins are slowing down pages on a site.
I know there are a bunch of different options out there including ...
7
votes
3answers
3k views
How do I log plugin (cron) actions?
Is there a recommended way to log (failed) cron actions from your plugin? For example, I have a plugin that synchronizes with an external service every hour. I want to log how much was changed, but ...