Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
88 views

ISO Plugin: Audit Trail with Diff of Content Changes

I have tried the mainstream auditing plugins out there and they all fall short of giving me the most critical feature: A diff view of a theme file that was edited. I've tried WP Activity Log (premium) ...
RomoCode's user avatar
0 votes
1 answer
221 views

How can I check if a visitor can read a post?

I know how to check capabilities for logged in users, with $can_read = current_user_can('read',$post->ID); But the above code returnes false when the user is not logged. So how can I check if the ...
gordie's user avatar
  • 482
0 votes
0 answers
750 views

Plugin Update History

is there a way to check the update history of plugins, i.e. when a certain plugin was updated and from which version to which? Thanks.
user1192748's user avatar
2 votes
1 answer
994 views

Get WP CLI to hide debug warnings and notices in JSON output, same setting as website

Summary: WP CLI can be used to get a JSON output of all the plugins installed on a site, but the output gets corrupted due to warnings although log levels are set to low. Problem Unfortunately, I have ...
Thomas Ebert's user avatar
0 votes
2 answers
73 views

Which data is written and stored in the database when read-only (non-posting, non-commenting) users visit the site?

With a default Wordpress install, with no plugin installed, does the read-only visiting of the website generates write operations in the database? By read-only, I mean: visitors come and don't post ...
Basj's user avatar
  • 85
0 votes
0 answers
292 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?
freedom667's user avatar
0 votes
0 answers
20 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.
Mohit sharma's user avatar
2 votes
1 answer
401 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 ...
vegemite4me's user avatar
1 vote
1 answer
1k 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 ...
Elroy Flynn's user avatar
0 votes
1 answer
221 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 ...
J.BizMai's user avatar
  • 820
1 vote
1 answer
2k 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 ...
Pavel Janicek's user avatar
4 votes
1 answer
1k 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?...
maryyyyyyy's user avatar
1 vote
1 answer
478 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.
Justin J James's user avatar
0 votes
0 answers
23 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 ...
JBird_35's user avatar
1 vote
1 answer
556 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 ...
Utsav Madaan's user avatar
1 vote
1 answer
671 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 ); ...
emeraldjava's user avatar
0 votes
0 answers
27 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. ...
noname7619's user avatar
0 votes
1 answer
3k 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 ...
Lokomotywa's user avatar
0 votes
1 answer
210 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 ...
galingong's user avatar
  • 180
0 votes
1 answer
44 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 ...
Mostafa Soufi's user avatar
0 votes
3 answers
1k 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 ...
Locko's user avatar
  • 3
0 votes
1 answer
46 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 ...
learning_13's user avatar
1 vote
1 answer
135 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=' ...
apoorv's user avatar
  • 57
6 votes
2 answers
4k 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 ...
dingo_d's user avatar
  • 1,939
4 votes
2 answers
2k 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 ...
Uriahs Victor's user avatar
1 vote
1 answer
30 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 ...
GregJarm's user avatar
  • 113
3 votes
0 answers
80 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 ...
Parth Maniar's user avatar
3 votes
1 answer
198 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 ...
Pat Gilmour's user avatar
1 vote
3 answers
2k 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($...
gdaniel's user avatar
  • 3,243
0 votes
2 answers
5k 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 ...
wasil's user avatar
  • 103
0 votes
2 answers
2k 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=' ....
Neil's user avatar
  • 185
0 votes
1 answer
51 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),...
vobs's user avatar
  • 13
0 votes
1 answer
191 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 ...
Alex Herrmann's user avatar
1 vote
0 answers
1k 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 ...
Michal Majernik's user avatar
0 votes
1 answer
4k views

Undefined constant error in pluggable.php

Ok, so to preface this question, I think this error is caused by the plugin I am developing. I actually am trying to create a v2 of the plugin, and every time I try to overwrite the plugin files in ...
zen's user avatar
  • 171
14 votes
1 answer
9k 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 ...
ylluminate's user avatar
3 votes
1 answer
3k 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 ...
Evan Rose's user avatar
0 votes
2 answers
138 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 ...
Lemmy's user avatar
  • 101
3 votes
1 answer
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 ...
Synetech's user avatar
  • 311
1 vote
1 answer
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 ...
Trip's user avatar
  • 191
0 votes
2 answers
102 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 ...
GavinR's user avatar
  • 3,100
2 votes
1 answer
784 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.
a_fan's user avatar
  • 945
0 votes
3 answers
10k 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.
Andrew Warner's user avatar
4 votes
4 answers
277 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 ...
wyrfel's user avatar
  • 3,075
6 votes
4 answers
5k 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 ...
NetConstructor.com's user avatar
8 votes
3 answers
4k 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 ...
Jan Fabry's user avatar
  • 30.4k