olaflexemo
Forum Replies Created
-
replacing line 110 with the following snippet seems to have helped fix it:
if ( $conditions[$if_conditions[$index]][‘condition’] ?? false ) {
$singleCondition .= call_user_func_array($conditions[$if_conditions[$index]][‘condition’], $params) ? $bit1 : $bit2;
} else {
$singleCondition .= $bit2;
}same here… php 8.1.9
You’re a star!
Thanks a lot!!!
Hi Gioni,
thanks for the reply!
Yes, indeed either a list or at least a single user ID would help me a great deal.
Forum: Plugins
In reply to: [Redis Object Cache] WP-Admin breaks when object-cache.php moves…anything in the wp log?
Forum: Plugins
In reply to: [WP-Stateless - Google Cloud Storage] stateless wordpress instanceHi @alimuzzamanalim, i was just wondering if you saw my last update since the post is marked as resolved…?
Forum: Plugins
In reply to: [Redis Object Cache] Object cache disabled on container start@castle9mm I’m trying to share the redis content between these (horizontally scaled) instances too. So they all use the same KEY_SALT value and they all are instantiated from the very same container image. I’m still working on it though and have other challenges to overcome before I get into testing if a shared redis setup like that will work. But it’s great to hear that this works – thanks! ?? How do you scale the containers, docker swarm or kubernetes or something else?
Forum: Plugins
In reply to: [Redis Object Cache] Object cache disabled on container start@castle9mm Sorry for being unclear… I was not suggestion for you to use persistent storage but was wondering if it’s of any value at all if it’s just being used as opcache.
It can be used as php session store but I believe that WordPress is not using the PHP session store mechanisms but I could be wrong there. In that case I believe persistence might make sense.
I don’t have any persistent storage setup either and use just a single container for it too. But I want to be able to server multiple WordPress instances. They are all running the same site, so I hope it will actually work fine for them to share the same redis instance.Forum: Plugins
In reply to: [WP-Stateless - Google Cloud Storage] stateless wordpress instanceHi there again,
as it turns out, the issue with the links to embedded images not being replaced by the plugin when content is being consumed via the WP REST API was fixed by the following change:
line 182 of wp-stateless/lib/classes/class-bootstrap.php
change:
add_filter( 'the_content', array( $this, 'the_content_filter' ) );
to
add_filter( 'the_content', array( $this, 'the_content_filter' ), 99 );
This ensures that the filter is being applied after the shortcode of the wonderplugin tab that we use has been applied.
Is it possible to integrate that change into the plugins code base?Next issue to solve is the problem with uploading/synching of pdf (non-image) files.
Thanks,
olafForum: Plugins
In reply to: [Redis Object Cache] Object cache disabled on container start@castle9mm another point i’m not so clear about (being new to redis) is it necessary to provide persistent storage to the redis instance? I run redis in a separate container but have no persistent volumes linked to it, so each time the container restarts, redis starts as if it was fresh out of the box. Is there an advantage in it to have it’s local db persist across container restarts? Doesn’t matter actually where redis sits, same is true for a redis instance running on the WordPress instance.
Thanks,
olafForum: Plugins
In reply to: [Redis Object Cache] Object cache disabled on container startThanks for that! That’ll help me cut further digging short!
I have a script that pulls down publicly available plugins and installs them into the image. I will just add aRUN cp
command in the Dockerfile right after the redis plugin installation is complete to copy the file into the wp-content directory. That way i have always the current version in place.Thanks a lot!
Forum: Plugins
In reply to: [WP-Stateless - Google Cloud Storage] stateless wordpress instanceThanks, I just did that a few minutes ago.
Forum: Plugins
In reply to: [WP-Stateless - Google Cloud Storage] stateless wordpress instanceHi there one last time ??
do you mean to use the contact us form here:
https://www.usabilitydynamics.com/contact-us
Just wondering as this page requires me to provide a project budget $ amount.Thanks
Forum: Plugins
In reply to: [WP-Stateless - Google Cloud Storage] stateless wordpress instanceOne more question springs to mind though:
we use mindmap files in our system and store them in the media library too. i added the file name extension (.mind) to the supported file types list on the settings page. Do I need to run a sync with option 3 to take care of these or are they regarded as non-image files (option 2)? Or is Option three synchronising files that are outside the upload directory?And sorry to be a pain but after completing a synch using option 1 I just tried running a sync using option 2 but all i get is a long list with error messages:
Unknown failure reason
.
A sync using option 3 doesn’t do anything, it just says:
Status: Processing files (0 total)...
and sits there at 0%.Forum: Plugins
In reply to: [WP-Stateless - Google Cloud Storage] stateless wordpress instanceHi Alimuzzaman,
thanks again for your prompt reply! Much appreciated!
No need to apologise as you have been extremely helpful! ??Thanks again