Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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 ...
0
votes
0answers
21 views

No webhooks log for woocommerce

I'm trying to investigate an issue with some specific WooCommerce webhooks which don't appear to be firing when creating an order. I was advised to have a look at the logs for my webhooks. However, ...
1
vote
1answer
58 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
19 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
14 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
338 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 ...
3
votes
2answers
4k views

error_log() output for print_r() appearing on page

I am trying to debug a plugin and am using error_log() in various places to see what various things are. I am using the following: error_log( print_r( $variable ) ); When I look at debug.log, all I ...
0
votes
1answer
44 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
29 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
316 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
25 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
0answers
56 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
192 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
897 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
47 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
88 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 ...
0
votes
3answers
544 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
2k 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
985 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
43 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
170 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
804 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 ...
6
votes
1answer
5k 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
123 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
90 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
684 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
2answers
3k 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
228 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
3k 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 ...
6
votes
3answers
2k 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 ...