Andrija Vučinić
Forum Replies Created
-
Forum: Plugins
In reply to: [Page Optimize] Elementor builder breaksHey, haven’t had the time to look yet.
Forum: Plugins
In reply to: [Memcached Object Cache] Fatal error: Cannot redeclare wp_cache_add()Oh, ok, sorry for my stupidity! I’ve successfully installed
memcache.Don’t worry. 🙂 Glad it works now!
Thank you for your patience and support!
<3
Forum: Plugins
In reply to: [Memcached Object Cache] Fatal error: Cannot redeclare wp_cache_add()The current result is
wp-adminthrowingThere has been a critical error on this website.What does the PHP error log show for this now that you’ve moved the file?
I have uploaded a simple PHP script to test if
memcacheis working and it’s fully functional (on the same page you can find aphpinfothat confirms thatmemcache 3.2.0is installed and fully functional).This is what I’ve been trying to tell you. 🙂
There are two PECL extensions for memcached backend:
- memcache – https://pecl.php.net/package/memcache – the one this plugin uses
- memcached – https://pecl.php.net/package/memcached – the one you have, but is not supported
Hope that helps.
Forum: Plugins
In reply to: [Memcached Object Cache] Fatal error: Cannot redeclare wp_cache_add()Hey,
plantemania@server:~$ php -m | grep memcache
memcachedSo this isn’t the correct extension. It should return
memcachenotmemcacheD.As for the fatal:
Fatal error: Cannot redeclare wp_cache_add() (previously declared in /home/plantemania/public_html/wp-includes/cache.php:41) in /home/plantemania/public_html/wp-content/plugins/object-cache.php on line 19Did you by chance also install the plugin? If yes, uninstall and just copy
object-cache.phptowp-content. No idea what thewp-content/plugins/object-cache.phpfile is (notice the/plugins).Yeah, seems related to this https://core.trac.ww.wp.xz.cn/changeset/54448. Will take a look in the coming weeks.
For now, you can probably just add:
function wp_cache_supports( $feature ) { if ( $feature === 'flush_runtime' ) { return true; } return false; }Forum: Reviews
In reply to: [Memcached Object Cache] Fatal errorDid you look at the installation guide? 🙂 https://ww.wp.xz.cn/plugins/memcached/#installation
Forum: Reviews
In reply to: [Memcached Object Cache] Fatal errorHi, what is not working? 🙂 How did you install?
Forum: Plugins
In reply to: [Memcached Object Cache] Memcached issue with WHMMaybe @orloxgr can help you, since he managed to install the extension on WHM.
Hey,
that is correct. The message means it’s not loaded into PHP (doesn’t matter if installed or not).
As for easiest way on CentOS, I think you can do it like this:
yum install php-pear pecl install memcacheNot 100% sure, since I don’t have such a setup to test on.
Forum: Plugins
In reply to: [Memcached Object Cache] Critical errorNps. No ETA on the SASL support tho.
Forum: Plugins
In reply to: [Memcached Object Cache] Critical error> Nov 23 11:40:41 library php: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/wordpress-live/wp-content/object-cache.php on line 176
Seems to timeout. If you’re using username/password (which the plugin doesn’t support yet) you can try this solution: https://ww.wp.xz.cn/support/topic/add-support-for-memcached-sasl/#post-16175580
Forum: Plugins
In reply to: [Memcached Object Cache] Memcached issue with WHM> Then maybe you should rename the extension to memcache or state that it works with memcache only instead of memcached
The back end is memcached. The PHP extension is memcache. I agree there’s confusion, but it’s in the installation section.
But you’re right. Most of the confusion is either memcache/memcached or people not reading
Installationand activating the plugin. 🙂Forum: Plugins
In reply to: [Memcached Object Cache] Memcached issue with WHMHi,
> Please note that memcached is supposedly better.
I could agree with newer or better maintained. The APIs for these 2 extensions are different. It would require a pretty big rewrite to make this one work with
memcachedinstead ofmemcache.> I am pretty sure the plugin is using the memcached but for some reason it wants also memcache also installed.
This is not correct. It is using the
memcacheextension.Glad you made it work!
Forum: Reviews
In reply to: [Memcached Object Cache] Great plugin!Thanks! <3 appreciated.
Forum: Plugins
In reply to: [Memcached Object Cache] Critical error> May main problem is that our WordPress site encounters a critical error when the object-cache.php is copied to the wp-content folder.
Could you please paste me the php error log?