Daniel Bachhuber
Forum Replies Created
-
Forum: Plugins
In reply to: [WP LCache] uninstall WP Lcache completelyHi @eblow,
In order to uninstall the plugin, you’ll need to first remove the
object-cache.php
file in yourwp-content
folder. Once you’ve done so, you can deactivate and uninstall the plugin.Hope this helps!
Hi @brucensmith,
You can modify the prompt text (and other strings) on the
document_feedback_strings
filter. Here’s an example:add_filter( 'document_feedback_strings', function( $strings ) { $strings['prompt'] = "What did you think of the answer?"; return $strings; } );
Hope this helps!
Hi @etasigroup:
I wanted to reduce my database size, since I saw that your plugin had created a table which is now more than 1gb and using CPU and other server resources very heavily.
Sorry to hear that you’re experiencing this. You might want to check out this issue about making sure your old sessions are automatically cleared.
Please let me know how should I remove this plugin from my website, I mean deactivating it will remove the table (the plugin had created) or provide me the steps to completely remove the plugin without leaving behind any residual.
If you decide you no longer need WP Native PHP Sessions, you can deactivate and delete the plugin, and then delete the sessions table.
Forum: Plugins
In reply to: [WP Redis] Multiple sites?@strarsis Oh, I don’t know which would be better, to be honest. I’d imagine they’re roughly comparable in terms of performance.
I think
CACHE_DB
is passed in the initial connection request. I wasn’t aware of a second look up.Forum: Plugins
In reply to: [WP Redis] Multiple sites?Hi @strarsis,
To use the same Redis server with multiple, discreet WordPress installs, you can use the
WP_CACHE_KEY_SALT
constant to define a unique salt value for each install.Forum: Plugins
In reply to: [WP Redis] Disabling Redis OC for REST APIHi @darktwen,
Something like this as your
wp-content/object-cache.php
file might work (untested):<?php if ( false === stripos( $_SERVER['REQUEST_URI'], '/wp-json/rnlab-app-control/' ) ) { require_once __DIR__ . '/plugins/wp-redis/object-cache.php'; }
It will conditionally load the actual
object-cache.php
based on the request URI.I’m not sure how reliably this will work though, if at all.
Forum: Plugins
In reply to: [WP Redis] Disabling Redis OC for REST APIHi @darktwen,
I think Redis Object Caching is a different plugin than WP Redis.
In either case, I wouldn’t recommend conditionally disabling your persistent object cache. The data in the object cache could get out of sync with the data in the database.
Forum: Plugins
In reply to: [WP SAML Auth] “mail” attribute is expected, but missing, in SAML response.Huh. Glad you were able to figure it out!
Forum: Plugins
In reply to: [WordPress Native PHP Sessions] pass session variable to thankyou pageAh, good find! Glad to hear you were able to figure it out 🙂
Forum: Plugins
In reply to: [WordPress Native PHP Sessions] pass session variable to thankyou pageHi @blurredj,
Sorry, but it’s hard to know whether you’re missing something without being able to see the code, test it out, etc.
One important detail is that you’ll need to call
session_start()
before you try to set or retrieve session data. Here’s a more comprehensive tutorial on the topic.Forum: Plugins
In reply to: [WP SAML Auth] “mail” attribute is expected, but missing, in SAML response.Hi @chibao,
Nothing stands out immediately as the problem, unfortunately.
The error you’re seeing is generated here: https://github.com/pantheon-systems/wp-saml-auth/blob/93f5db94c35276962dfaaf7dd5faf197ce58ed62/inc/class-wp-saml-auth.php#L317-L320
Maybe try putting
var_dump( $attributes ); exit;
immediately above and see what’s in that array?Forum: Plugins
In reply to: [WordPress Native PHP Sessions] another ini_set(): A session is active.In mu-plugins I found a wpnps-loader.php with the same content like in 000-loader.php
It sounds like this was the cause. Let me know if you need any more help on this.
Forum: Plugins
In reply to: [WordPress Native PHP Sessions] another ini_set(): A session is active.Hi @blindtexth:
Out of sheer curiosity, how do I disable this plugin?
If you delete the plugin, you’ll also need to delete the
wp-content/mu-plugins/000-loader.php
file. When the plugin is deleted, the000-loader.php
file is trying to load the main plugin loader file that doesn’t exist.on one of my sites I get the warning:
‘ini_set(): A session is active. You cannot change the session module’s ini settings at this time’Unfortunately, it seems the problem is only related to, but not caused by, WP Native PHP Sessions.
The underlying problem is that a PHP session is starting very early, and then some other code is trying to change the session configuration after the session has started. Ninja Firewall seems it could be a candidate. Honestly though, it could be any code running on your site.
Forum: Plugins
In reply to: [WP SAML Auth] redirect_to possible?Yes. If you include the
redirect_to
parameter on the original redirect towp-login.php
, then it will be respected at the end of the authentication flow.Forum: Plugins
In reply to: [WP SAML Auth] redirect_to possible?Hi @stupidchief,
You can use the
login_redirect
filter to apply some conditional behavior on where the user goes after they successfully log in. Here’s a code snippet similar to your use case: https://developer.wordpress.org/reference/hooks/login_redirect/#comment-2074Hope this helps!