• Resolved pjv

    (@pjv)


    I’m running on Ubuntu 14.04. I installed redis-server via apt. I am running wordpress via HHVM v. 3.4.0 (also installed via apt).

    The redis server service is running, object-cache.php has been copied to wp-content, i put the config lines into wp-config.php.

    When I try to activate wp-redis, I get this in the hhvm error log:
    Fatal error: Function already defined: wp_cache_add in.../wp-admin/plugins.php on line 151

    WordPress tells me Plugin could not be activated because it triggered a fatal error.

    Is that really just a function name collision or am I missing something needed to run this under HHVM?

    https://www.ads-software.com/plugins/wp-redis/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Matthew Boynes

    (@mboynes)

    This isn’t a plugin that you activate. Adding object-cache.php to the wp-content directory is the way to activate it.

    That said, I think something else may be amiss for you. I would expect that the fatal error would be from the function being defined in wp-content/object-cache.php, so that leads me to believe that WordPress isn’t reading wp-content/object-cache.php properly.You may need to double-check the permissions on that file.

    Let me know how you make out!

    Cheers,
    Matt

    Thread Starter pjv

    (@pjv)

    I made out ok by switching to this alternative redis object cache plugin: https://www.ads-software.com/plugins/redis-cache/

    No idea what the problem was, but I am sure that wordpress had read permissions for wp-content/object-cache.php.

    Thread Starter pjv

    (@pjv)

    just to follow up on this, the plugin i mentioned above worked, but caused HHVM to hit the CPU really hard. i am not sure whether HHVM didn’t like the redis library embedded in it or what. in any case, i am back with the dropin from WP redis, but just the dropin (object-cache.php) in wp-content. i didn’t install the rest of the plugin at all.

    seems to be working fine now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to activate plugin’ is closed to new replies.