siddjain
Forum Replies Created
-
Hi @delyandelov could you provide details of the fix? I disabled and re-enabled the memcache option within the plugin but it does not change object-cache.php file. What is supposed to happen upon disabling and re-enabling?
I did that. It does not change anything (why should it?)
Step 1: disable memcache option within the plugin:
Step 2: ensure the Memcached service in SiteTools is activated – it already was
Step 3: enable memcache option within the plugin
the file object-cache.php does not change. It still has this code which causes the errors:
$this->global_prefix = '';
$this->blog_prefix = '';
if ( function_exists( 'is_multisite' ) ) {
$this->global_prefix = ( is_multisite() || defined( 'CUSTOM_USER_TABLE' ) && defined( 'CUSTOM_USER_META_TABLE' ) ) ? '' : $table_prefix;
$this->blog_prefix = ( is_multisite() ? $blog_id : $table_prefix ) . ':';
}
$this->cache_hits =& $this->stats['get'];
$this->cache_misses =& $this->stats['add'];Also I am puzzled why the issue happens when trying to upgrade to PHP 8 because the errors don’t seem to be PHP related. They seem to be WP related.
https://www.php.net/manual/en/migration80.deprecated.php
https://www.php.net/manual/en/migration80.incompatible.php
What is the difference between enabling memcache from site tools vs. the speed optimizer plugin? There seem to be two ways of doing the same thing and is confusing.
- This reply was modified 2 months, 2 weeks ago by siddjain.
@pdosev I am running into same warning message when trying to upgrade SG site from PHP 7 to PHP 8. I checked the object-cache.php file and it has this code:
$this->global_prefix = '';
$this->blog_prefix = '';
if ( function_exists( 'is_multisite' ) ) {
$this->global_prefix = ( is_multisite() || defined( 'CUSTOM_USER_TABLE' ) && defined( 'CUSTOM_USER_META_TABLE' ) ) ? '' : $table_prefix;
$this->blog_prefix = ( is_multisite() ? $blog_id : $table_prefix ) . ':';
}
$this->cache_hits =& $this->stats['get'];
$this->cache_misses =& $this->stats['add'];I am already using version 7.6.4 of speed optimizer plugin released on Aug 14th 2024. Can you please help me? Is object-cache.php part of speed optimizer plugin? It looks to me that it is part of memcached which is separate.
@slaffik were you able to fix it? Thanks all for your help.
Hi Xue!
Thanks. I unchecked that option, but now the user does not receive an account creation email. Is there some setting I can modify so that newly registered users get a welcome email when they create an account? Thanks for your help.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Jetpack upgrade errorran into same problem today. tried reinstalling, same error.
$ wp plugin activate jetpack
Fatal error: Uncaught Error: Call to undefined method Automattic\Jetpack\Connection\Error_Handler::check_api_response_for_errors() in wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php:44
Stack trace:
#0 wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php(75): Automattic\Jetpack\Connection\Client::remote_request(Array, ‘<?xml version=”…’)
#1 wp-content/plugins/jetpack/modules/protect.php(340): Jetpack_IXR_Client->query(‘jetpack.protect…’, Array)
#2 wp-content/plugins/jetpack/modules/protect.php(176): Jetpack_Protect_Module->get_protect_key()
#3 wp-content/plugins/jetpack/modules/protect.php(824): Jetpack_Protect_Module->maybe_get_protect_key()
#4 wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php on line 44- This reply was modified 1 year, 11 months ago by siddjain.
Forum: Plugins
In reply to: [WooCommerce] How can I avoid disclosing my SSN to Woocommerce?Thanks Xue for your help!
Forum: Fixing WordPress
In reply to: Blank screen when I try to edit any posthttps://core.wp-a2z.org/oik_file/wp-admin/edit-form-blocks-php/:
wp_add_inline_script(
‘wp-api-fetch’,
sprintf( ‘wp.apiFetch.use( wp.apiFetch.createPreloadingMiddleware( %s ) );’, wp_json_encode( $preload_data ) ),
‘after’
);Forum: Fixing WordPress
In reply to: Blank screen when I try to edit any postin our case the blank screen is happening because the wp.apiFetch.createPreloadingMiddleware adds such a massive size argument that the HTML response back to the browser is getting truncated. we don’t know who is truncating it – whether its PHP-FPM or NGINX. We are using WordPress 5.5. How can this be fixed?
Forum: Fixing WordPress
In reply to: Plugin to monitor QPSThat’s the one I thought of trying but the plugin author told me it does not give QPS
Forum: Developing with WordPress
In reply to: Bash script to edit wp-config.php and turn on debuggingYes my question is does anyone have the code to do it? I tried using sed but did not succeed.
Forum: Fixing WordPress
In reply to: Admin pages don’t obey siteurlwordpress files are on
/var/www/html
. we have a special setup in which a request first comes to a proxy server. so request forfoo.com/bar/wp-content/resource.php
will come to a proxy server. this server forwards the request to wordpress and when it forwards the request it strips off thebar
from the request so the request to wordpress server appears as/wp-content/resource.php
andwp-content
is under/var/www/html
.Forum: Fixing WordPress
In reply to: Admin pages don’t obey siteurlyes that is correct. both are set to
foo.com/bar
.Forum: Developing with WordPress
In reply to: Where is have_posts defined?Thanks Joy and @bcworkz.
When I look inside the
wordpress:php7.4-fpm-alpine
docker image which is what I am using to run wordpress, I see that it runs thephp-fpm
Fast CGI server.Now
php-fpm
is a general Fast CGI server that has no relation to wordpress. So when a page like index.php is loaded, where is this server loading the wordpress core which is then processing index.php?Next question I have is that is the loading of wordpress core happening on every request? That would be a performance bottleneck.
- This reply was modified 4 years, 6 months ago by siddjain.
Forum: Plugins
In reply to: [WP Abstracts] Activating this plugin causes the site header to disappear!Thanks Kevon. That works. It was driving me nuts! Thanks for this plugin.
Forum: Plugins
In reply to: [WP Abstracts] Error when trying to create an abstractSolved it using the FAQ
Q. When I click the ‘New Abstract’ menu I’m redirected to the home page.
A. Enable the ‘Post name’ or ‘Custom Structure’ option as your Permalinks. Go to WordPress Settings->Permalinks to make this change.