• Resolved nerdoflinux

    (@nerdoflinux)


    Whenever I try to use NinjaFirewall, I get the erro:

    Cannot retrieve user options from database (#3)

    I’m on a WordPress multisite install, if that helps

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Can you run the database test script and paste the result here?

    Thread Starter nerdoflinux

    (@nerdoflinux)

    Version: 1.3
    Found /var/www/nerdoflinux/wp-config.php.
    Opening it for reading.
    Looking for DB_NAME, DB_USER, DB_PASSWORD, DB_HOST and $table_prefix:
    DB_NAME: found ‘[hidden]’
    DB_USER: found ‘[hidden]’
    DB_PASSWORD: found
    DB_HOST: found ‘localhost’
    table_prefix: found ‘wp_’
    Attempting to connect to the DB: OK
    Attempting to read NinjaFirewall’s options (nfw_options) from the DB: OK
    Calling fetch_object: Error:
    Exiting.
    I removed the DB Name and User for security reasons. I suspect the problem is because its a multisite, so the DB prefix is wp_4_options(that’s what other plugins say)

    Plugin Author nintechnet

    (@nintechnet)

    I understand the issue. See this discussion: https://ww.wp.xz.cn/support/topic/cannot-retrieve-user-options-from-database-2-3/#post-6218177
    Follow the same instructions, except that you need to use this code (instead of wp_x2_):

    /*
    $table_prefix  = 'wp_4_';
    */
    
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot retrieve user options from database (#3)’ is closed to new replies.